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

Hardcoded x86_64 ld #251

Closed
jschwartzenberg opened this issue Aug 17, 2024 · 5 comments
Closed

Hardcoded x86_64 ld #251

jschwartzenberg opened this issue Aug 17, 2024 · 5 comments

Comments

@jschwartzenberg
Copy link
Member

Trying to build on an i386 system, results in:

x86_64-linux-gnu-ld -melf_i386 -static -Map=../fdppkrnl.35.10.map -o ../fdppkrnl.35.10.elf \
        --emit-relocs  -T/home/julius/checkouts/fdpp/fdpp/kernel/kernel.ld kernel.o entry.o io.o console.o serial.o printer.o execrh.o nlssupt.o procsupt.o dosidle.o int2f.o nls_hc.o intr.o irqstack.o cpu.o plt.o cdata.o floppy.o rdpcclk.o wrpcclk.o wratclk.o
bash: regel 1: x86_64-linux-gnu-ld: opdracht niet gevonden
make[2]: *** [makefile:60: ../fdppkrnl.35.10.elf] Fout 127
make[2]: Map '/home/julius/checkouts/fdpp/fdpp/kernel' wordt verlaten
make[1]: *** [makefile:61: fdppkrnl.35.10.elf] Fout 2
make[1]: Map '/home/julius/checkouts/fdpp/fdpp' wordt verlaten
make: *** [makefile:3: all] Fout 2

Running the correct ld manually allows fdpp to compile without issues:

$ cd fdpp/kernel/
$ ld -melf_i386 -static -Map=../fdppkrnl.35.10.map -o ../fdppkrnl.35.10.elf         --emit-relocs  -T/home/julius/checkouts/fdpp/fdpp/kernel/kernel.ld kernel.o entry.o io.o console.o serial.o printer.o execrh.o nlssupt.o procsupt.o dosidle.o int2f.o nls_hc.o intr.o irqstack.o cpu.o plt.o cdata.o floppy.o rdpcclk.o wrpcclk.o wratclk.o
$ cd -
$ make
...

I guess #146 might solve this.

@stsp
Copy link
Member

stsp commented Aug 17, 2024

Can you install package binutils-x86-64-linux-gnu?

@jschwartzenberg
Copy link
Member Author

Yes, it's indeed there!

@stsp
Copy link
Member

stsp commented Aug 17, 2024

Where?
You mean, its installed but doesn't work?

@jschwartzenberg
Copy link
Member Author

I didn't check with it yet. But is there a reason to use its ld instead of the regular one?

@stsp
Copy link
Member

stsp commented Aug 17, 2024

Yes: on non-x86 arches.
But you can as well use configure.meson.
It should find the right linker.

@stsp stsp closed this as completed Aug 18, 2024
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