Skip to content

Notes on compiling preForth on Fedora 40 (x86_64) #17

@cstrotm

Description

@cstrotm
  • Compiling preForth and SeedForth on Fedora 40 (x86_64)

  • Installing devtools

    sudo dnf install gcc make git

  • Installing "fasm" binary from homepage

  • Installing i686 libraries

    sudo dnf install glibc-devel.i686 glibc-devel

  • Adjust Makefile

   # assemble and link executable on linux
   %.Linux: %.asm
        fasm $< $@.o
        LDEMULATION=elf_i386 ld -melf_i386 -o $@ \
           -dynamic-linker /lib/ld-linux.so.2 \
           /usr/lib/crt1.o /usr/lib/crti.o \
           $@.o \
           -lc /usr/lib/crtn.o
  • Build preForth and seedForth

    make clean
    make
    ./seed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions