arm eabihf with static libgcc fails to build

Waldemar Brodkorb wbx at openadk.org
Thu Jun 26 11:12:07 UTC 2014


Hi,

I recently switched my toolchain to use a static libgcc.
Gcc is build with --enable-shared='libstdc++', so there is no
libgcc_eh.a, because exception handling code is included in
libgcc.a.

Build fails with:
/adk/uclibc/toolchain_qemu-arm_uclibc/usr/bin/arm-openadk-linux-uclibcgnueabihf-gcc
-Wl,-EL -shared -Wl,--warn-common -Wl,--warn-once -Wl,-z,combreloc
-Wl,-z,relro -Wl,-z,now -Wl,--hash-style=gnu -Wl,-z,defs
-Wl,-e,_start -Wl,-z,now -Wl,-Bsymbolic -Wl,--export-dynamic
-Wl,--sort-common -Wl,--discard-locals -Wl,--discard-all
-Wl,--no-undefined  -Wl,-soname=ld-uClibc.so.0 -nostdlib -o
lib/ld-uClibc-0.9.34-git.so  -Wl,--whole-archive
ldso/ldso/ld-uClibc_so.a -Wl,--no-whole-archive
/adk/uclibc/toolchain_qemu-arm_uclibc/usr/lib/gcc/arm-openadk-linux-uclibcgnueabihf/4.8.3/libgcc.a
libgcc_eh.a 
arm-openadk-linux-uclibcgnueabihf-gcc: error: libgcc_eh.a: No such
file or directory

When removing the libgcc_eh stuff from the Makefile, I get:
toolchain_build_qemu-arm_uclibc/w-gcc-4.8.3-1/gcc-4.8.3/libgcc/config/arm/unwind-arm.c:494:
multiple definition of `__aeabi_unwind_cpp_pr0'

It conflicts with the stubs in
libc/sysdeps/linux/arm/aeabi_unwind_cpp_pr1.c.

So what is the right thing to fix this issue?

best regards
 Waldemar



More information about the uClibc mailing list