+ -
当前位置:首页 → 问答吧 → 编译glibc出错, Need linker with .init_array/.fini_array support.

编译glibc出错, Need linker with .init_array/.fini_array support.

时间:2008-06-15

来源:互联网

BUILD_CC="gcc" CC="${BUILD_TARGET}-gcc -Wl,--hash-style=gnu" AR="${BUILD_TARGET}-ar" \
RANLIB="${BUILD_TARGET}-ranlib" \
CFLAGS="-march=$(cut -d- -f1 <<< ${BUILD_TARGET}) -mtune=generic -g -O2" ../glibc-2.7/configure \
--prefix=/usr --libexecdir=/usr/lib/glibc --host=${BUILD_TARGET} --build=${BUILD_HOST} \
--disable-profile --enable-add-ons --with-tls --enable-kernel=2.6.18 --with-__thread \
--with-binutils=${TARGET_DIR}/systools/bin --with-headers=${TARGET_DIR}/usr/include \
--cache-file=config.cache


checking for ld --version-script... no
*** WARNING: You should not compile GNU libc without versioning. Not using
*** versioning will introduce incompatibilities so that old binaries
*** will not run anymore.
*** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer).
checking for .previous assembler directive... yes
checking for .protected and .hidden assembler directive... yes
checking whether __attribute__((visibility())) is supported... yes
checking for broken __attribute__((visibility()))... no
checking for broken __attribute__((alias()))... no
checking whether to put _rtld_local into .sdata section... no
checking for .preinit_array/.init_array/.fini_array support... no
configure: error: Need linker with .init_array/.fini_array support.
slfs:/slfs/build/glibc-build$


glibc-2.7

作者: pinkme005   发布时间: 2008-06-15

binutils版本太低,NND。。换成2.18.0的就OK了。。

作者: pinkme005   发布时间: 2008-06-15

binutils版本太低,那再LIVECD怎样省升级呢,麻烦哦。。救命啊,在等。。。。

作者: fengandy   发布时间: 2008-07-26

我直接用的lfslivecd,第一次编译没问题,第二次出了这个问题!!

作者: btiger2000   发布时间: 2009-07-02