+ -
当前位置:首页 → 问答吧 → [debug&question]LFS chapter 5.6 Glib-2.5.1 出错, needed linker with .init_****

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

时间:2008-03-06

来源:互联网

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,结果是,过了!!!!

来论坛想问题,结果在写问题的当儿找到问题,冤枉路是走了,问题算解决了,可是既然写了就不要浪费,别人可能有用。

作者: bluecolour   发布时间: 2008-03-06

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程度很弱啊!!!!!!!!!!

作者: bluecolour   发布时间: 2008-03-06

热门下载

更多