编译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
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
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28