QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 918|回复: 5

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

[复制链接]
发表于 2005-1-9 11:38:59 | 显示全部楼层 |阅读模式
我是用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
请帮看看是什么地方不对,谢谢
发表于 2005-1-9 11:41:32 | 显示全部楼层
you must set the environment variable cc to a working compiler

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

使用道具 举报

 楼主| 发表于 2005-1-9 11:47:41 | 显示全部楼层
是设置环境这一步吗
回复

使用道具 举报

发表于 2005-1-9 12:20:15 | 显示全部楼层
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=87226

看一下好了
回复

使用道具 举报

发表于 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 ^_^
回复

使用道具 举报

 楼主| 发表于 2005-1-9 19:21:25 | 显示全部楼层
谢谢各位 的帮忙
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-10-5 04:32 , Processed in 0.052779 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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