summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-03-10 17:23:09 -0700
committerKhem Raj <raj.khem@gmail.com>2024-03-13 22:33:17 -0700
commit03130b5d2831bfdead4cbf960dc7b84c59676db6 (patch)
tree32318071a8098fcebd17224b5e7573a017ae2470
parentff44036f2244a9924a166854f6445a74379ae7fc (diff)
downloadmeta-clang-03130b5d2831bfdead4cbf960dc7b84c59676db6.tar.gz
elfuitls: Use libstdc++ instead of libc++ when using clang
This avoids/workarounds a libc++ and clang include issue as reported in https://github.com/llvm/llvm-project/issues/71925#issuecomment-1987141438 Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--conf/nonclangable.conf7
1 files changed, 4 insertions, 3 deletions
diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf
index 8cf9507..e488161 100644
--- a/conf/nonclangable.conf
+++ b/conf/nonclangable.conf
@@ -14,9 +14,10 @@ TOOLCHAIN:pn-grub:riscv64 = "gcc"
14TOOLCHAIN:pn-grub:aarch64 = "gcc" 14TOOLCHAIN:pn-grub:aarch64 = "gcc"
15# crash embeds version of gdb which is not buildable with clang 15# crash embeds version of gdb which is not buildable with clang
16TOOLCHAIN:pn-crash = "gcc" 16TOOLCHAIN:pn-crash = "gcc"
17# | ../../elfutils-0.187/libasm/asm_newscn.c:49:22: error: field 'pattern' with variable sized type 'struct FillPattern' not at the end of a struct or class is a GNU extension [-Werror,-Wgnu-variable-sized-type-not-at-end] 17# See https://github.com/llvm/llvm-project/issues/71925
18TOOLCHAIN:pn-elfutils:libc-glibc = "gcc" 18LIBCPLUSPLUS:pn-elfutils:toolchain-clang = "-stdlib=libstdc++"
19 19# Remove it once https://patchwork.yoctoproject.org/project/oe-core/patch/20240309235748.517154-1-raj.khem@gmail.com/ is merged
20CXXFLAGS:append:pn-elfutils:toolchain-clang = " -Wno-error=unused-private-field"
20#| erl_bits.c:(.text+0xc2a): undefined reference to `__extendhfsf2' 21#| erl_bits.c:(.text+0xc2a): undefined reference to `__extendhfsf2'
21#| erl_bits.c:(.text+0x1bfa): undefined reference to `__truncsfhf2' 22#| erl_bits.c:(.text+0x1bfa): undefined reference to `__truncsfhf2'
22#| clang-15: error: linker command failed with exit code 1 (use -v to see invocation) 23#| clang-15: error: linker command failed with exit code 1 (use -v to see invocation)