LinuxSir.cn,穿越时空的Linuxsir!

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

[debug&question]LFS chapter 5.6 Glib-2.5.1 出错, needed linker with .i

[复制链接]
发表于 2008-3-6 02:32:08 | 显示全部楼层 |阅读模式
pwd 为 $LFS/sources/glibc-build
在做以下 config 时出错了:
../glibc-2.5.1/configure --prefix=/tools --disable-profile --enable-add-ons --enable-kernel=2.6.0 --with-binutils=/tools/bin --without-gd --with-headers=/tools/include --without-selinux

errormsg为:
configure:error: Need linker with .init_array/.fini_array support.

不知道是什么原因,在公司没有遇到问题的,就猜想是之前的compilation有错,从新compile了 linux header和binutils, gcc太久了,没有从新compile。
结果在做一次Glibc还是出相同的错。

然后已经凌晨两点了,就干脆logout user lfs把--with-binutils=/tools/bin拿掉,这样的话就是用system的path来做这个config(我不肯定),但结果是config成功。所以初步认为是binutils的问题。

然后重点来了,写道这里,心想gcc也是system path的哦,然而我确定gcc是compile过了!!我没有删除gcc-build的folder,就su lfs 在source profile,确定path回到LFS的样子,cd它做一个make install,在回到glibc-build中做那个config,结果是,过了!!!!

来论坛想问题,结果在写问题的当儿找到问题,冤枉路是走了,问题算解决了,可是既然写了就不要浪费,别人可能有用。
 楼主| 发表于 2008-3-6 02:41:23 | 显示全部楼层
post 了以后,system在做make了,妈的,glibc之前的linux header make的时候gcc是还没有install的,可是glibc的SBU要7.多啊!!!!!!!
又白了个乌龙,如果glibc可以过,不懂以后会发生什么事情。。。决定ctrl+c,做多一次linux header,才回来做glibc。唉。。。。。。。
为什么呢?我真的不知道make linux header有没有检查gcc,影像中只是把include copy而已,我的linux程度很弱啊!!!!!!!!!!
回复 支持 反对

使用道具 举报

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

本版积分规则

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