From a78fabe9c3b6e07edee092e6f02e9bd9690a70e5 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 4 Mar 2019 13:46:26 -0800 Subject: recipes: Link with libgcc when building static versions on arm since llvm libunwind does not provide all the symbols that glibc/libpthread expects when doing static linking it fails with some undefined symbols e.g. /usr/src/debug/glibc/2.29-r0/git/nptl/unwind.c:121: undefined reference to `_Unwind_ForcedUnwind' which is found in libgcc_s.so, ideally one day clang unwind library should get there this is only an issue on glibc, musl works ok Signed-off-by: Khem Raj --- conf/nonclangable.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index 073004e..bcf9add 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf @@ -187,3 +187,10 @@ TUNE_CCARGS_remove_pn-omxplayer_toolchain-clang = "-no-integrated-as" #| clang-7: error: linker command failed with exit code 1 (use -v to see invocation) LDFLAGS_append_pn-ruby_toolchain-clang = " -rtlib=compiler-rt" LDFLAGS_append_pn-m4_toolchain-clang = " -rtlib=compiler-rt" + +#(unwind.o): in function `__pthread_unwind': +#/usr/src/debug/glibc/2.29-r0/git/nptl/unwind.c:121: undefined reference to `_Unwind_ForcedUnwind' +#clang-8: error: linker command failed with exit code 1 (use -v to see invocation) +COMPILER_RT_pn-libc-bench_libc-glibc_toolchain_clang_arm = "--rtlib=libgcc" +COMPILER_RT_pn-aufs-util_libc-glibc_toolchain_clang_arm = "--rtlib=libgcc" +COMPILER_RT_pn-libhugetlbfs_libc-glibc_toolchaon-clang_arm = "--rtlib=libgcc" -- cgit v1.2.3-54-g00ecf