LinuxSir.cn,穿越时空的Linuxsir!

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

编译GCC3.3.1时出错.老大帮我看看啊

[复制链接]
发表于 2006-5-17 13:38:11 | 显示全部楼层 |阅读模式
执行../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.
*** This configuration is not supported in the following subdirectories:
     target-libstdc++-v3
    (Any other directories should still work fine.)
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 -O2   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
发表于 2006-5-17 16:53:49 | 显示全部楼层
你在做 LFS 5.x 吗?
回复 支持 反对

使用道具 举报

发表于 2006-5-17 16:58:41 | 显示全部楼层
主系统太新,对应的LFS太旧。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-19 10:22:05 | 显示全部楼层
是在做5.0
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-19 13:36:39 | 显示全部楼层
我在redhat AS4 上编译GCC不行,可能是内核太新了吧,刚才换了个thiz 7.0的可以了
回复 支持 反对

使用道具 举报

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

本版积分规则

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