免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 6521 | 回复: 4
打印 上一主题 下一主题

CentOS6.2 64位上面gcc编译错误, 请教错误信息. [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-04-30 09:43 |只看该作者 |倒序浏览
本帖最后由 zuiwei 于 2012-05-02 09:32 编辑

我在CentOS6.2 64位上面下载了gnu官网的gcc4.7的tar包。
我之前编译安装了对应的gmp, mpc, mpfr这3个包,安装完了都ldconfig了。

然后在gcc源码目录里面config没有问题。
make了40多分钟以后,报错:

make[3]: Leaving directory `/home/a/下载/gcc-4.7.0/host-x86_64-unknown-linux-gnu/gcc'
Checking multilib configuration for libgcc...
Configuring stage 1 in x86_64-unknown-linux-gnu/libgcc
configure: loading cache ./config.cache
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking for x86_64-unknown-linux-gnu-ar... ar
checking for x86_64-unknown-linux-gnu-lipo... lipo
checking for x86_64-unknown-linux-gnu-nm... /home/a/下载/gcc-4.7.0/host-x86_64-unknown-linux-gnu/gcc/nm
checking for x86_64-unknown-linux-gnu-ranlib... ranlib
checking for x86_64-unknown-linux-gnu-strip... strip
checking whether ln -s works... yes
checking for x86_64-unknown-linux-gnu-gcc... /home/a/下载/gcc-4.7.0/host-x86_64-unknown-linux-gnu/gcc/xgcc -B/home/a/下载/gcc-4.7.0/host-x86_64-unknown-linux-gnu/gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include   
checking for suffix of object files... configure: error: in `/home/a/下载/gcc-4.7.0/x86_64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] 错误 1
make[2]: Leaving directory `/home/a/下载/gcc-4.7.0'
make[1]: *** [stage1-bubble] 错误 2
make[1]: Leaving directory `/home/a/下载/gcc-4.7.0'
make: *** [all] 错误 2 config.log.gz (6.54 KB, 下载次数: 3)



这是个什么错误呢? configure: error: cannot compute suffix of object files: cannot compile

论坛徽章:
0
2 [报告]
发表于 2012-05-01 13:39 |只看该作者
See `config.log' for more details.

得把这个贴出来。

论坛徽章:
0
3 [报告]
发表于 2012-05-02 09:33 |只看该作者
albeta 发表于 2012-05-01 13:39
See `config.log' for more details.

得把这个贴出来。


在顶楼的帖子里面已经贴出来了。

论坛徽章:
0
4 [报告]
发表于 2012-05-02 10:39 |只看该作者

论坛徽章:
0
5 [报告]
发表于 2012-05-04 22:10 |只看该作者
config.log里头没有啥有意义的内容啊,怪事了。你机器上装了gcc没?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP