[oe-commits] [openembedded-core] 26/51: world-broken: Add libunwind for musl/arm

git at git.openembedded.org git at git.openembedded.org
Wed Aug 10 09:47:51 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 2e9a88a21d21f2f71769899888fbbc994bc708f0
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Sun Aug 7 23:47:58 2016 -0700

    world-broken: Add libunwind for musl/arm
    
    gcc and libunwind race and when libunwind wins
    results are build fails for gcc as described
    this is only seen on musl/arm since on musl
    /usr/include is search before gcc fixed headers
    and unwind.h is in fixed headers. So it works
    ok on glibc but not on musl due to reversed search
    order.
    
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/conf/distro/include/world-broken.inc | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/meta/conf/distro/include/world-broken.inc b/meta/conf/distro/include/world-broken.inc
index a5f6371..d4bdddf 100644
--- a/meta/conf/distro/include/world-broken.inc
+++ b/meta/conf/distro/include/world-broken.inc
@@ -47,3 +47,10 @@ EXCLUDE_FROM_WORLD_pn-perf_libc-musl = "1"
 
 # error: 'RTLD_NEXT' was not declared in this scope
 EXCLUDE_FROM_WORLD_pn-gcc-sanitizers_libc-musl = "1"
+
+# gcc fails to build when libuwind is staged before building gcc since
+# it then finds the unwind.h header from libunwind and not from libgcc
+# and on arm specially they are different since libgcc defines some functions
+# as macros which are functions in libunwind and it fails during linking
+# libbacktrace/backtrace.c:76: undefined reference to `_Unwind_GetIP'
+EXCLUDE_FROM_WORLD_pn-libunwind_libc-musl_arm = "1"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list