|
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,结果是,过了!!!!
来论坛想问题,结果在写问题的当儿找到问题,冤枉路是走了,问题算解决了,可是既然写了就不要浪费,别人可能有用。 |
|