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

Apple silicon support? #23

Closed
novuscy opened this issue Dec 16, 2020 · 5 comments · Fixed by #30
Closed

Apple silicon support? #23

novuscy opened this issue Dec 16, 2020 · 5 comments · Fixed by #30

Comments

@novuscy
Copy link

novuscy commented Dec 16, 2020

It seems that there are some build errors on Apple M1 hardware:

==> /opt/homebrew/opt/make/bin/gmake install TARGET=x86_64-linux-musl
Last 15 lines from /Users/novuscy/Library/Logs/Homebrew/musl-cross/01.gmake:
  "_host_hooks", referenced from:
      gt_pch_save(__sFILE*) in libbackend.a(ggc-common.o)
      gt_pch_restore(__sFILE*) in libbackend.a(ggc-common.o)
      toplev::main(int, char**) in libbackend.a(toplev.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[3]: *** [../../src_gcc/gcc/lto/Make-lang.in:81: lto1] Error 1
gmake[3]: *** Waiting for unfinished jobs....
rm gcc.pod
gmake[3]: Leaving directory '/private/tmp/musl-cross-20201216-52153-xax24d/musl-cross-make-0.9.9/build/local/x86_64-linux-musl/obj_gcc/gcc'
gmake[2]: *** [Makefile:4361: all-gcc] Error 2
gmake[2]: Leaving directory '/private/tmp/musl-cross-20201216-52153-xax24d/musl-cross-make-0.9.9/build/local/x86_64-linux-musl/obj_gcc'
gmake[1]: *** [Makefile:222: obj_gcc/gcc/.lc_built] Error 2
gmake[1]: Leaving directory '/private/tmp/musl-cross-20201216-52153-xax24d/musl-cross-make-0.9.9/build/local/x86_64-linux-musl'
gmake: *** [Makefile:183: install] Error 2
@jlricon
Copy link

jlricon commented Jan 1, 2021

Upstream gcc is broken, that needs updating

@ghost
Copy link

ghost commented Mar 3, 2021

https://doesitarm.com/formula/gcc/ prediction of a stable release seems to be mid 2021 or later. There is a unstable version for the one who dares.

@FiloSottile
Copy link
Owner

This is blocked upstream richfelker/musl-cross-make#116

@messense
Copy link

FYI, you can try https://github.com/messense/homebrew-macos-cross-toolchains , it works on Apple Silicon.

@ghost
Copy link

ghost commented Jun 6, 2021

Any update on this issue?

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

Successfully merging a pull request may close this issue.

4 participants