首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Gcc编译“无法计算目标文件的后缀:无法编译”

Gcc编译“无法计算目标文件的后缀:无法编译”
EN

Stack Overflow用户
提问于 2012-07-16 17:57:14
回答 1查看 44.3K关注 0票数 27

实际上,我正在阅读LFS书籍(7.1版),我在第53页被阻止了。为了编译gcc,我尝试了以下命令:

代码语言:javascript
复制
./configure --target=$LFS_TGT --prefix=$LFS/build/gcc-build --disable-nls\
--disable-shared --disable-multilib --disable-decimal-float --disable-threads\
--disable-libmudflap --disable-libssp --disable-libgomp --disable-libquadmath\
--disable-target-libiberty --disable-target-zlib\
--enable-languages=c\
--without-ppl --without-cloog\
--with-mpfr-include=$LFS/source/mpfr/src
--with-mpfr-lib=$LFS/source/mpfr/src/.libs\
--with-gmp-include=/mnt/LFS/source/gmp\
--with-gmp-lib=/mnt/LFS/source/gmp/.libs\
--with-mpc-include=/mnt/LFS/source/mpc/src\
--with-mpc-lib=/mnt/LFS/source/mpc/src/.libs

运行gcc的配置脚本(当然我已经编译了mpfr、mpc和gmp )。但是一旦我启动了:

代码语言:javascript
复制
make -j4

我得到以下错误:

代码语言:javascript
复制
checking for suffix of object files... configure: error: in `/mnt/LFS/source/gcc-4.6.2/x86_64-lfs-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1

我试着在谷歌上搜索,并尝试了我找到的解决方案,但都不起作用。有人知道我为什么会得到这个错误吗?

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11502045

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档