错误:
rebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8//x86_64-linux/bin/ld: error: unsupported reloc 42/43 against global symbol Always crash in aleatory code and never finish compile code without error
clang: error: linker command failed with exit code 1 (use -v to see invocation)
暂时解决办法:
I've replaced prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin/ld
with the symlink to /usr/bin/ld.gold, and this fixed the compilation issue. I'm sure if the result is actually working, however
本文记录了一次遇到的编译错误,错误提示为不支持的重定位类型42/43,导致代码随机崩溃且无法正常完成编译。通过将预编译的链接器替换为系统自带的ld.gold版本,成功解决了此问题。
7万+

被折叠的 条评论
为什么被折叠?



