LinuxSir.cn,穿越时空的Linuxsir!

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

lfs5.0第一遍编译gcc出错,谁帮忙看一下

[复制链接]
发表于 2006-1-5 10:08:35 | 显示全部楼层 |阅读模式
lfs5.0第一遍编译gcc出错,谁帮忙看一下


复制代码

[lfs@localhost gcc-build]$ ../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/lfs-packages/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.

我的主系统是FC3,gcc3.4.2
发表于 2006-1-5 10:39:03 | 显示全部楼层
lfs5用基于2.4的内核的主系统
回复 支持 反对

使用道具 举报

发表于 2006-1-5 13:46:56 | 显示全部楼层
from the error log, you may not create symbol link between cc and gcc
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-6 15:45:36 | 显示全部楼层
我换成了lfs6.0,已经没问题了,系统都搞定了!
回复 支持 反对

使用道具 举报

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

本版积分规则

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