我试图通过brew安装文件/musl/musl/musl,在这个阶段面临一个错误:
==> /opt/homebrew/opt/make/bin/gmake install TARGET=x86_64-linux-musl
Last 15 lines from /Users/galshalom/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-20210510-41370-xpfsk6/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-20210510-41370-xpfsk6/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-20210510-41370-xpfsk6/musl-cross-make-0.9.9/build/local/x86_64-linux-musl'
gmake: *** [Makefile:183: install] Error 2在网上找不到合适的解决方案。
发布于 2022-01-17 18:38:20
brew编辑musl-十字
为gcc-10.3.0及以下版本修补程序do # Apple硅构建修复程序
url "https://github.com/richfelker/musl-cross-make/commit/3dd050fa.patch?full_index=1“
sha256 "6ecb5d306b2307e058ec0538862bbddec9fcb7a1c4f9cae5c55d29fb39dc34d8“
结束
brew重新安装musl-十字
https://stackoverflow.com/questions/67467106
复制相似问题