diff options
author | Aleksey Smirnov <aleksey.smirnov@yadro.com> | 2022-12-08 16:36:26 +0300 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-09-08 09:08:54 -0700 |
commit | a52974efab3782b020a8e0ad74f437dd23e20ad4 (patch) | |
tree | 6f0b480689d2f733e29c480fac92ffc99989637d | |
parent | 6155e22543bf8f9bef0ffedb94f53ef65a00962b (diff) | |
download | meta-clang-a52974efab3782b020a8e0ad74f437dd23e20ad4.tar.gz |
nonclangable.conf: Add new exceptions
Add "erlang" for all architectures (found on riscv64 and x86-64)
Add "grub" for x86-64 architecture
Use proper OBJCOPY for "linux-yocto" for all architectures
Signed-off-by: Aleksey Smirnov <aleksey.smirnov@yadro.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit f7fa299e3e759f0cd9bcd57fffcf8d9051e5d2ea)
-rw-r--r-- | conf/nonclangable.conf | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index d93c744..78d18b3 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf | |||
@@ -2,6 +2,13 @@ TOOLCHAIN:pn-u-boot = "gcc" | |||
2 | # crash embeds version of gdb which is not buildable with clang | 2 | # crash embeds version of gdb which is not buildable with clang |
3 | TOOLCHAIN:pn-crash = "gcc" | 3 | TOOLCHAIN:pn-crash = "gcc" |
4 | TOOLCHAIN:pn-elfutils = "gcc" | 4 | TOOLCHAIN:pn-elfutils = "gcc" |
5 | |||
6 | #| erl_bits.c:(.text+0xc2a): undefined reference to `__extendhfsf2' | ||
7 | #| erl_bits.c:(.text+0x1bfa): undefined reference to `__truncsfhf2' | ||
8 | #| clang-15: error: linker command failed with exit code 1 (use -v to see invocation) | ||
9 | # both riscv64 and x86-64 | ||
10 | TOOLCHAIN:pn-erlang = "gcc" | ||
11 | |||
5 | # /mnt/a/yoe/build/tmp/work/cortexa7t2hf-neon-vfpv4-yoe-linux-gnueabi/firefox/60.1.0esr-r0/recipe-sysroot-native/usr/lib/clang/7.0.1/include/arm_neon.h:433:1: error: unknown type name 'inline' | 12 | # /mnt/a/yoe/build/tmp/work/cortexa7t2hf-neon-vfpv4-yoe-linux-gnueabi/firefox/60.1.0esr-r0/recipe-sysroot-native/usr/lib/clang/7.0.1/include/arm_neon.h:433:1: error: unknown type name 'inline' |
6 | # __ai uint8x16_t vabdq_u8(uint8x16_t __p0, uint8x16_t __p1) { | 13 | # __ai uint8x16_t vabdq_u8(uint8x16_t __p0, uint8x16_t __p1) { |
7 | TOOLCHAIN:pn-firefox = "gcc" | 14 | TOOLCHAIN:pn-firefox = "gcc" |
@@ -320,6 +327,10 @@ TOOLCHAIN_pn-u-boot-seco-imx = "gcc" | |||
320 | # see https://bugs.llvm.org/show_bug.cgi?id=50443 this is in clang-13, until it is fixed do not use -O2 | 327 | # see https://bugs.llvm.org/show_bug.cgi?id=50443 this is in clang-13, until it is fixed do not use -O2 |
321 | SELECTED_OPTIMIZATION:remove:pn-poke:toolchain-clang = "-O2" | 328 | SELECTED_OPTIMIZATION:remove:pn-poke:toolchain-clang = "-O2" |
322 | 329 | ||
330 | # Subprocess output:mips-yoe-linux-llvm-objcopy: error: Link field value 22 in section .rel.dyn is not a symbol table | ||
331 | # also seen on riscv64 and x86-64 | ||
332 | OBJCOPY:pn-linux-yocto:toolchain-clang = "${HOST_PREFIX}objcopy" | ||
333 | |||
323 | # see https://github.com/llvm/llvm-project/issues/53948 | 334 | # see https://github.com/llvm/llvm-project/issues/53948 |
324 | OBJCOPY:pn-opensbi:toolchain-clang = "${HOST_PREFIX}objcopy" | 335 | OBJCOPY:pn-opensbi:toolchain-clang = "${HOST_PREFIX}objcopy" |
325 | OBJCOPY:pn-libc-bench:toolchain-clang = "${HOST_PREFIX}objcopy" | 336 | OBJCOPY:pn-libc-bench:toolchain-clang = "${HOST_PREFIX}objcopy" |