[OE-core] eglibc build fails with 'cannot find -lgcc_eh'

Enrico Scholz enrico.scholz at sigma-chemnitz.de
Wed Aug 22 13:24:12 UTC 2012


Hi,

with recent oe-core + oe-meta, a build from scratch fails in eglibc
with:

| .../tmp/sysroots/x86_64-oe-linux/usr/bin/armv5te-linux-gnueabi/arm-linux-gnueabi-ld.bfd: cannot find -lgcc_eh
| collect2: error: ld returned 1 exit status
| make[2]: *** [.../tmp/work/armv5te-linux-gnueabi/eglibc-2.15-r13+svnr19294/build-arm-linux-gnueabi/iconv/iconv_prog] Error 1
| make[2]: *** Waiting for unfinished jobs....
| make[2]: Leaving directory `.../tmp/work/armv5te-linux-gnueabi/eglibc-2.15-r13+svnr19294/eglibc-2_15/libc/iconv'
| make[1]: *** [iconv/others] Error 2

-lgcc_eh seems to be required because a check for -Wl,-as-needed failed.
But this test result is bogus, because check failed due to missing -lgcc_s
and not because of the linker flag.

Any idea how to solve this?



Enrico




More information about the Openembedded-core mailing list