LinuxSir.cn,穿越时空的Linuxsir!

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

5.1.1的LFS装GCC-3.3.3的时候遇到麻烦,请大家指教

[复制链接]
发表于 2004-7-5 10:39:50 | 显示全部楼层 |阅读模式
mkdir ../gcc-build
cd ../gcc-build

../gcc-3.3.3/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/lfs-packages/tmp/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 -O2   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

系统是fedora2,已经升级到最新。
 楼主| 发表于 2004-7-6 19:42:14 | 显示全部楼层
版主呢?这个问题很难吗?
发表于 2004-7-7 11:36:09 | 显示全部楼层
/tools/bin/ld: unrecognized option '--as-needed'

这个参数无法识别
发表于 2004-7-7 11:36:12 | 显示全部楼层
/tools/bin/ld: unrecognized option '--as-needed'

这个参数无法识别
 楼主| 发表于 2004-7-7 11:37:32 | 显示全部楼层
这个参数可能是在什么地方加的?
发表于 2004-7-7 11:39:44 | 显示全部楼层
你把这个参数去掉在试试
发表于 2004-7-7 20:34:27 | 显示全部楼层
下载binutils-2.15.tar.gz,重做binutils的编译
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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