检查目标文件的后缀... configure:error:无法计算目标文件的后缀:无法编译

meg*_*han 8 gcc toolchain

在构建ARM工具链时,我收到以下错误

checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory `<path>/gcc-4.3.2-arm-elf'
make: *** [all] Error 2
Run Code Online (Sandbox Code Playgroud)

可能是什么问题?

Jon*_*ely 11

你读过了http://gcc.gnu.org/wiki/FAQ#configure_suffix吗?

你安装了GMP,MPFR和MPC吗?它们在您的图书馆搜索路径中吗?

请参阅http://gcc.gnu.org/wiki/InstallingGCC并确保您已遵循基本说明. 到目前为止,构建GCC(包括作为交叉编译器)的最简单方法是遵循以下指令:

  • 或者,在提取GCC源存档后,只需./contrib/download_prerequisites在GCC源目录中运行该脚本.这将下载支持库并创建符号链接,使它们作为GCC构建过程的一部分自动构建.