From 9418499c3950bbb15dd85286c3a527e8579e4000 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 19 Aug 2019 14:17:37 -0700 Subject: nonclangable: Mark mesa/lttng-ust/gnutls as gcc only for riscv64 clang/riscv64 is new and currently fails to build them linking with libatomic is needed for clang/riscv64 Signed-off-by: Khem Raj --- conf/nonclangable.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index 1b0a093..21c4066 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf @@ -34,6 +34,7 @@ TOOLCHAIN_pn-libstd-rs = "gcc" # clang does not have 64bit atomics on mips32 TOOLCHAIN_pn-mesa_mips = "gcc" TOOLCHAIN_pn-mesa_mipsel = "gcc" +TOOLCHAIN_pn-mesa_riscv64 = "gcc" TOOLCHAIN_pn-opensbi = "gcc" TOOLCHAIN_pn-openjdk-8 = "gcc" TOOLCHAIN_pn-openjre-8 = "gcc" @@ -118,6 +119,8 @@ TOOLCHAIN_pn-python3 = "gcc" #| ^~~~~~~~~~~~~~~~~~~~~~~ TOOLCHAIN_pn-caps = "gcc" +TOOLCHAIN_pn-lttng-ust_riscv64 = "gcc" + CFLAGS_append_pn-liboil_toolchain-clang_x86-64 = " -fheinous-gnu-extensions " #io_getevents.c:25:141: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions @@ -206,6 +209,9 @@ TUNE_CCARGS_remove_pn-omxplayer_toolchain-clang = "-no-integrated-as" LDFLAGS_append_pn-ruby_toolchain-clang = " -rtlib=compiler-rt" LDFLAGS_append_pn-m4_toolchain-clang = " -rtlib=compiler-rt" +LDFLAGS_append_pn-gnutls_toolchain-clang_riscv64 = " -latomic" + + #(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) -- cgit v1.2.3-54-g00ecf