Cross compile glibc 2.14 failed

DAVID ZHOU zhouwei926@gmail.com
Thu Dec 29 19:25:00 GMT 2011


Hey,

I am run into error when doing arm tool chain cross compile glibc 2.14:

arm-linux-gcc   -nostdlib -nostartfiles -r -o
/home/user/toolchains/build-dir/build-glibc-2.14/elf/librtld.os
'-Wl,-(' /home/user/toolchains/build-dir/build-glibc-2.14/elf/dl-allobjs.os
/home/user/toolchains/build-dir/build-glibc-2.14/elf/rtld-libc.a -lgcc
'-Wl,-)' \
          -Wl,-Map,/home/user/toolchains/build-dir/build-glibc-2.14/elf/librtld.os.map
arm-linux-gcc   -nostdlib -nostartfiles -shared         \
          -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both
-Wl,-z,defs -Wl,--verbose 2>&1 |  \
          LC_ALL=C \
          sed -e '/^=========/,/^=========/!d;/^=========/d'    \
              -e 's/\. = .* + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \
          > /home/user/toolchains/build-dir/build-glibc-2.14/elf/ld.so.lds
arm-linux-gcc   -nostdlib -nostartfiles -shared -o
/home/user/toolchains/build-dir/build-glibc-2.14/elf/ld.so           \
          -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both
-Wl,-z,defs       \
          /home/user/toolchains/build-dir/build-glibc-2.14/elf/librtld.os
-Wl,--version-script=/home/user/toolchains/build-dir/build-glibc-2.14/ld.map
             \
          -Wl,-soname=ld-linux.so.2 -T
/home/user/toolchains/build-dir/build-glibc-2.14/elf/ld.so.lds
/home/user/toolchains/build-dir/build-glibc-2.14/elf/librtld.os:(.ARM.exidx+0x0):
undefined reference to `__aeabi_unwind_cpp_pr0'
/home/user/toolchains/build-dir/build-glibc-2.14/elf/librtld.os:(.ARM.exidx+0x18):
undefined reference to `__aeabi_unwind_cpp_pr1'
collect2: ld returned 1 exit status
make[2]: *** [/home/user/toolchains/build-dir/build-glibc-2.14/elf/ld.so]
Error 1
make[2]: Leaving directory `/home/user/toolchains/src-dir/glibc-2.14/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/home/user/toolchains/src-dir/glibc-2.14'
make: *** [all] Error 2
Can anyone help me ? Thanks very much in advance!

David.



More information about the Gcc-help mailing list