LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 774|回复: 3

gcc-4.0.1的问题

[复制链接]
发表于 2005-9-8 11:15:05 | 显示全部楼层 |阅读模式
我编译了gcc-4.0.1完后,运行了gcc-config切换成gcc-4.0.1的编译环境,并且执行source /etc/profile,完成前述工作后成功编译了glibc-2.3.5-20050722,可是这时我想重新emerge gcc,出现错误,得到如下提示:

checking for gcc... gcc
checking whether the C compiler (gcc -O2 -march=pentium4 -Wl,-O1) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

!!! ERROR: sys-devel/gcc-4.0.1 failed.
!!! Function gcc_do_configure, Line 1128, Exitcode 1
!!! failed to run configure
!!! If you need support, post the topmost build error, NOT this status message.

无法编译下去,编译其它软件也出现同样的错误,请问我少作了哪些步子?
切换回原来的环境也出现类似的错误,我该如何恢复?
谢谢!
:thank  :thank  :thank
发表于 2005-9-8 17:24:08 | 显示全部楼层
Have you ever emerged the latest version of binutils?
回复 支持 反对

使用道具 举报

发表于 2005-9-8 19:58:34 | 显示全部楼层
我也碰到过这个这个问题。。最后只能放弃gcc4.01~~

至今没找到解决办法。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-8 22:24:56 | 显示全部楼层
binutils已经是最新版的,版本号为2.6.1啊!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表