Skip to content

Notes on compiling preForth on Ubuntu 2404LTS #18

@cstrotm

Description

@cstrotm

I was able to compile PreForth and seedForth under Ubuntu 24.04LTS with these steps:

apt install emacs-nox git build-essential tmux fasm gforth
dpkg --add-architecture i386
apt update
apt install libc6-dev-i386

git clone https://github.com/uho/preForth
cd preForth/src

edit Makefile and change the "ld" linker command to:

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

Then compile:

make clean
make

and start seedForth

./seed
..................................................
.
seedForth/interactive 2.2.0
---------------------------
380005 bytes free
0 echo ! 0 input-echo !
⓪
①
......................
ready
② ......
③ .....
➍


The 10001 st prime is 104743
Adjust your terminal to have 1 lines.
Δ has codepoint 916
Δ..
Interactive decompiler: Use single letter commands n d l c b s

ok: if line, ok: next line
ok: else line, ok: other line
ok: afterwords .
18 headers removed

Welcome!  ok 
>   ok 
>   ok 
>

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