Skip to content

Ports: GCC fails with linker error on aarch64 macOS #25773

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

Open
linusg opened this issue Mar 9, 2025 · 2 comments
Open

Ports: GCC fails with linker error on aarch64 macOS #25773

linusg opened this issue Mar 9, 2025 · 2 comments

Comments

@linusg
Copy link
Member

linusg commented Mar 9, 2025

[gcc/build] ld.lld: error: undefined symbol: host_detect_local_cpu(int, char const**)
[gcc/build] >>> referenced by gcc.cc
[gcc/build] >>>               gcc.o:(static_spec_functions)
[gcc/build] ld.lld: error: undefined symbol: host_detect_local_cpu(int, char const**)
[gcc/build] >>> referenced by gcc.cc
[gcc/build] >>>               gcc.o:(static_spec_functions)
[gcc/build] ld.lld: error: undefined symbol: host_detect_local_cpu(int, char const**)
[gcc/build] >>> referenced by gcc.cc
[gcc/build] >>>               gcc.o:(static_spec_functions)
[gcc/build] aarch64-pc-serenity-clang++: error: linker command failed with exit code 1 (use -v to see invocation)
[gcc/build] aarch64-pc-serenity-clang++: error: linker command failed with exit code 1 (use -v to see invocation)
[gcc/build] aarch64-pc-serenity-clang++: error: linker command failed with exit code 1 (use -v to see invocation)

It appears the patch from #13390 was dropped in d0edf26.

@nico
Copy link
Contributor

nico commented Mar 9, 2025

@BertalanD That was your patch (part of #14055). Oversight?

@NoobZang
Copy link
Contributor

#if defined(__aarch64__) && ! defined(__APPLE__) does not work on my macos but #if defined(__aarch64__) && defined(__linux__) works

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

No branches or pull requests

3 participants