Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cstrotm opened this issue May 28, 2024 · 4 comments
Open

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

cstrotm opened this issue May 28, 2024 · 4 comments

Comments

@cstrotm
Copy link

cstrotm commented May 28, 2024

  • 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 $< [email protected]
        LDEMULATION=elf_i386 ld -melf_i386 -o $@ \
           -dynamic-linker /lib/ld-linux.so.2 \
           /usr/lib/crt1.o /usr/lib/crti.o \
           [email protected] \
           -lc /usr/lib/crtn.o
  • Build preForth and seedForth

    make clean
    make
    ./seed

@znmeb
Copy link

znmeb commented Jun 13, 2024

I have Fedora 40 (Silverblue - can run any Linux in a container) - does this work there? I'm having trouble getting it to work with Ubuntu 24.04 LTS.

@cstrotm
Copy link
Author

cstrotm commented Jun 13, 2024

Fedora Silverblue is an immutable OS image system. You would need to use a toolbox container to install and run PreForth/SeedForth.

I can check with Ubuntu 24.04 LTS later today and report if I can get PreForth working there (should work)

@znmeb
Copy link

znmeb commented Jun 13, 2024

Yes, I know all about the immutable thing - that's why I picked it! I'm actually on Universal Blue Bluefix DX, which is a superset of Sliverblue. I have a Fedora 40 distrobox, a Rawhide distrobox, about three Ubuntu 24.04 distroboxes and an Arch distrobox at the moment. Plus Ubuntu 24.04 in Windows Subsystem for Linux. I'll try this tomorrow on Fedora and Arch.

@cstrotm
Copy link
Author

cstrotm commented Jun 13, 2024

I've added a new issue #18 on how to compile perForth and seedForth on Ubuntu 14.04 LTS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants