首页 > 解决方案 > 在 Mac M1 中使用 make 时出现“ld:未找到架构 arm64 的符号”

问题描述

好的,所以我想在我的系统上构建一个交叉编译器。我正在设置环境以在 OSdev 上工作。在构建 GCC-Cross 编译器时,我面临以下错误:

ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [full-stamp] Error 1
make: *** [all-build-fixincludes] Error 

我已经下载了 GCC 文件并设置了要构建的配置。我在使用命令时收到此错误

sudo make all-gcc    

这是生成文件:https ://pastebin.com/cbBqwPBn

提前非常感谢。在过去的几天里,我一直被困在这个问题上。

这是 MacBook Air M1 64 位。我正在关注这个以供参考。

标签: macosgccmakefileoperating-systemclang++

解决方案


推荐阅读