我正在尝试使用本教程构建一个交叉编译器: http://wiki.osdev.org/OS_Specific_Toolchain
在成功构建 binutils、all-gcc、newlib 之后
我在 build-gcc 中 make 的最后一部分出现错误
checking for shl_load... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
Makefile:8970: recipe for target `configure-target-libstdc++-v3' failed
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory `/usr/src/build-gcc'
Makefile:870: recipe for target `all' failed
make: *** [all] Error 2
请帮忙...
最佳答案
我不知道你配置命令选项。但是,如果您已提供 --enable-language=c,请将其更改为 --enable-languages=c。或者您可能正在使用 c 和 c++ 语言编译 bootstrap。在这种情况下会发生此错误。
关于c - GCC_NO_EXECUTABLES ---交叉编译工具链后不允许进行链接测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12880394/