检查目标文件的后缀... configure:error:无法计算目标文件的后缀:无法编译 [英] checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile

查看:195
本文介绍了检查目标文件的后缀... configure:error:无法计算目标文件的后缀:无法编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 检查目标文件的后缀... configure:error:在创建ARM工具链时,出现以下错误:无法计算目标文件的后缀:无法编译
有关更多详细信息,请参阅config.log。
make [1]:*** [configure-target-libgcc]错误1
make [1]:离开目录`<路径> /gcc-4.3.2-arm-elf'
make:*** [all]错误2

可能是什么问题?

解决方案

您是否阅读过 http://gcc.gnu.org/wiki/FAQ#configure_suffix



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



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



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



While building ARM toolchain , I got the following error

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

what might be the problem?

解决方案

Did you read http://gcc.gnu.org/wiki/FAQ#configure_suffix ?

Have you installed GMP, MPFR and MPC? Are they in your library search path?

See http://gcc.gnu.org/wiki/InstallingGCC and make sure you've followed the basic instructions. By far the simplest way to build GCC (including as a cross compiler) is to follow these instructions:

  • Alternatively, after extracting the GCC source archive, simply run the ./contrib/download_prerequisites script in the GCC source directory. That will download the support libraries and create symlinks, causing them to be built automatically as part of the GCC build process.

这篇关于检查目标文件的后缀... configure:error:无法计算目标文件的后缀:无法编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆