LinuxSir.cn,穿越时空的Linuxsir!

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

安装gcc-3.3.3第一遍出错!!!

[复制链接]
发表于 2005-8-25 20:10:49 | 显示全部楼层 |阅读模式
执行完
$../gcc-3.3.1/configure --prefix=/tools \
    --with-local-prefix=/tools \
    --disable-nls --enable-shared \
    --enable-languages=c
出现如下错误

Configuring for a i686-pc-linux-gnu host
Created "makefile" in /mnt/lfs/sources/gcc-build using "mt-frag"
/tools/bin/ld:unrecognized option '--as-needed'
/tools/bin/ld:use the --help option for usage information
collect2:ld returned 1 exit status
***The command 'gcc -o conftest -g -02 conftest.c' failed.
***You must set the environment variable CC to a working compiler.

$
请问是怎么回事?往下我该怎么办?
发表于 2005-8-26 14:09:03 | 显示全部楼层
老兄,我和你遇到一样的问题啊。顶
回复 支持 反对

使用道具 举报

发表于 2005-8-26 16:03:45 | 显示全部楼层
LFS版本是?。。。

如果是比较老的,那host别太新。
回复 支持 反对

使用道具 举报

发表于 2005-8-30 15:23:11 | 显示全部楼层
ld -v
看看ld的版本,要2.1.15以上,否则更新ld
OK
回复 支持 反对

使用道具 举报

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

本版积分规则

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