LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
123
返回列表 发新帖
楼主: woodok

1st time gcc complie error

[复制链接]
发表于 2004-11-28 21:38:09 | 显示全部楼层
这个我就不知道了,帮不了你了,我反正后面都没出问题
发表于 2004-11-28 21:48:50 | 显示全部楼层
 楼主| 发表于 2004-11-29 09:59:24 | 显示全部楼层
duanxiangqaz  多谢你的热心帮助
黯然销魂:抱歉 ,水平不够 你给的链接基本上看不懂。
libc.so.6 有冲突 , 和
/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.
有多大关系 ?
发表于 2004-11-29 11:35:35 | 显示全部楼层
Inconsistency detected by ld.so: rtld.c: 1221: dl_main: Assertion `pt_load_num || (void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
我是回答这个问题的。是bug。

你的那个问题,别用fc2就可以了,因为fc2的 binutils太新了。。或者参考unstable中的编译方法,加那个cc参数。不过我没测试过,不知道是否能用。
发表于 2004-11-29 12:01:33 | 显示全部楼层
那可能是和斑竹说的一样,我用的是bootcd6.0,可能是环境版本太高了
 楼主| 发表于 2004-11-29 13:46:46 | 显示全部楼层
多谢 版主和duanxiangqaz  我再 试试 unstable的
实在不行 就用rh9 了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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