elks icon indicating copy to clipboard operation
elks copied to clipboard

tools/build.sh failed Undefined symbols for architecture arm64: "_host_hooks"

Open anchorz opened this issue 1 year ago • 4 comments

since I would like to verify ELKS on Apple Silicon I open the issue here:

clang: warning: argument unused during compilation: '-no-pie' [-Wunused-command-line-argument] Undefined symbols for architecture arm64: "_host_hooks", referenced from: c_common_no_more_pch() in c-pch.o

(https://dev.haiku-os.org/attachment/ticket/17191/apple_silicon.patch)

anchorz avatar Dec 02 '23 06:12 anchorz

Hello @anchorz,

Thank you for the bug report on building ia16-elf-gcc. The toolchain itself is actually maintained by @tkchia over at https://github.com/tkchia/gcc-ia16; this should probably be reported there. Lets see what @tkchia has to say about it.

I'm not well-versed on gcc internals - have you tried the referenced Apple Silicon patch on this build?

Thank you!

ghaerr avatar Dec 02 '23 17:12 ghaerr

Yes, this patch works. Still ELKS has some problem with apple M1 arm64. Is there a chance you could try to build elks on apple hardware?

anchorz avatar Dec 02 '23 19:12 anchorz

Unfortunately, I only have x86 apple hardware and don't have way to test or I gladly would. Could you elaborate a bit on the problems you're having? I would like to know whether the toolchain builds ELKS, and/or whether ELKS then won't run on QEMU on Aarch64, or more precisely what errors you are seeing.

ghaerr avatar Dec 02 '23 19:12 ghaerr

Hello @anchorz,

Thank you. I do not have an Apple M1 either unfortunately, so I would also like to know more about what specific problems you are having with building (or running) ELKS.

Thank you!

tkchia avatar Dec 02 '23 22:12 tkchia