交叉编译glibc时候出错,寻求帮助
时间:10-02
整理:3721RD
点击:
各位好:
自己在建立arm交叉編譯工具鏈的過程中,交叉編譯glibc的時候出現了如下錯誤:
自己在建立arm交叉編譯工具鏈的過程中,交叉編譯glibc的時候出現了如下錯誤:
- /opt/gcc-arm/lib/gcc/arm-linux-gnueabi/4.6.4/../../../../arm-linux-gnueabi/bin/ld: /cygdrive/v/glibc-build/libc_pic.os: .preinit_array section is not allowed in DSO
- /opt/gcc-arm/lib/gcc/arm-linux-gnueabi/4.6.4/../../../../arm-linux-gnueabi/bin/ld: failed to set dynamic section sizes: 输出不可表示的节
- collect2: ld returned 1 exit status
- ../Makerules:580: recipe for target `/cygdrive/v/glibc-build/libc.so' failed
- make[2]: *** [/cygdrive/v/glibc-build/libc.so] Error 1
- make[2]: 离开目录“/cygdrive/v/glibc-2.17/elf”
- Makefile:233: recipe for target `elf/subdir_lib' failed
- make[1]: *** [elf/subdir_lib] Error 2
- make[1]: 离开目录“/cygdrive/v/glibc-2.17”
- Makefile:9: recipe for target `all' failed
- make: *** [all] Error 2
- gcc - gcc-4.6.4.tar.gz
- glibc-linuxthreads - glibc-linuxthreads-2.5.tar.bz2
- glibc-ports - glibc-ports-2.16.0.tar
- gmp - gmp-5.1.2.tar.bz2
- linux - linux-2.6.32.61.tar
- mpc - mpc-1.0.1.tar.gz
- mpfr - mpfr-3.1.2.zip
- binutils - binutils-2.23.2.tar.bz2
- ../glibc-2.17/configure --host=$TARGET --prefix=$PREFIX/$TARGET --with-tls --disable-profile --enable-add-ons --with-headers=$PREFIX/$TARGET/include libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes libc_cv_arm_tls=yes