vxf155 发表于 2005-1-9 11:38:59

安装LFS5.0时在装GCC-3.3.1出错了,请帮帮忙

我是用mandrakelinux10.1做主系统的
装不能通过GCC-3.3.1时出错了,显示
created "makefile" in /mnt/lfs/sources/gcc-build using "mt-frag"
/tools/bin/ld: unrecongnizad 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
请帮看看是什么地方不对,谢谢 :idea:

linky_fan 发表于 2005-1-9 11:41:32


you must set the environment variable cc to a working compiler

cc链接到gcc的软链接做了没有?

vxf155 发表于 2005-1-9 11:47:41

是设置环境这一步吗

linky_fan 发表于 2005-1-9 12:20:15

http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=87226

看一下好了

6692975 发表于 2005-1-9 13:28:49

如果你使用的gcc是3.4.1的,(MDK10.1o版)建议你用lfs-6.0,并且需要安装上
glibc-static-devel-2.3.3-21mdk
glibc-utils-2.3.3-21mdk
之后就应该很顺利的完成了。
good luck ^_^

vxf155 发表于 2005-1-9 19:21:25

谢谢各位 的帮忙 :wink:
页: [1]
查看完整版本: 安装LFS5.0时在装GCC-3.3.1出错了,请帮帮忙