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

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

Open
anchorz opened this issue Dec 2, 2023 · 4 comments

Comments

@anchorz
Copy link

anchorz commented Dec 2, 2023

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)

@ghaerr
Copy link
Owner

ghaerr commented Dec 2, 2023

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!

@anchorz
Copy link
Author

anchorz commented Dec 2, 2023

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?

@ghaerr
Copy link
Owner

ghaerr commented Dec 2, 2023

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.

@tkchia
Copy link
Collaborator

tkchia commented Dec 2, 2023

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!

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

3 participants