LinuxSir.cn,穿越时空的Linuxsir!

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

求助:6.13. Binutils-2.15.94.0.2.2 出错

[复制链接]
发表于 2005-10-17 10:56:57 | 显示全部楼层 |阅读模式
出错信息:
root:/sources/binutils-build# ../binutils-2.15.94.0.2.2/configure --prefix=/usr\
>     --enable-shared
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /tools/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.


还有 我在第6章 Glibc测试的时候也出现了问题,但我没有在意,好象是 pthread_cancel之类的。

6.12. 再次调整工具链的时候
root:/sources/binutils-build# echo 'main(){}' > dummy.c
root:/sources/binutils-build# cc dummy.c
/tools/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status

麻烦知道的大哥帮我诊断下。
发表于 2005-10-17 11:23:42 | 显示全部楼层
没装gcc。。。。。
回复 支持 反对

使用道具 举报

发表于 2005-10-17 11:34:44 | 显示全部楼层

检查有关内容

查一下你的/usr/bin里有没有gcc, cc,再用ldd查一下gcc和cc的库连接情况。

之后,请说明有关结果
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-17 11:41:24 | 显示全部楼层
谢谢上面老大的回复
我已经自己解决了 就是修改了/tools/lib/gcc/i686-pc-linux-gnu/3.4.3/specs文件中的

原:%{static|static-libgcc:-lgcc -lgcc_eh}%{!static:%{!static-libgcc:%{!shared-libgcc:-lgcc --as-needed -lgcc_s%M

修改后:%{static|static-libgcc:-lgcc -lgcc_eh}%{!static:%{!static-libgcc:%{!shared-libgcc:-lgcc --as-needed -lgcc%M

问题就 解决了:)但我不知道 为什么,还请知道的教教小弟:)
回复 支持 反对

使用道具 举报

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

本版积分规则

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