diff options
author | Khem Raj <raj.khem@gmail.com> | 2024-03-10 17:23:09 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-03-13 22:33:17 -0700 |
commit | 03130b5d2831bfdead4cbf960dc7b84c59676db6 (patch) | |
tree | 32318071a8098fcebd17224b5e7573a017ae2470 | |
parent | ff44036f2244a9924a166854f6445a74379ae7fc (diff) | |
download | meta-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.conf | 7 |
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" | |||
14 | TOOLCHAIN:pn-grub:aarch64 = "gcc" | 14 | TOOLCHAIN: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 |
16 | TOOLCHAIN:pn-crash = "gcc" | 16 | TOOLCHAIN: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 |
18 | TOOLCHAIN:pn-elfutils:libc-glibc = "gcc" | 18 | LIBCPLUSPLUS: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 | |
20 | CXXFLAGS: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) |