From f7fa299e3e759f0cd9bcd57fffcf8d9051e5d2ea Mon Sep 17 00:00:00 2001 From: Aleksey Smirnov Date: Thu, 8 Dec 2022 16:36:26 +0300 Subject: 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 Signed-off-by: Khem Raj --- conf/nonclangable.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index ecf5fb6..f322fa1 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf @@ -5,6 +5,13 @@ TOOLCHAIN:pn-cpufrequtils = "gcc" # crash embeds version of gdb which is not buildable with clang TOOLCHAIN:pn-crash = "gcc" TOOLCHAIN:pn-elfutils = "gcc" + +#| erl_bits.c:(.text+0xc2a): undefined reference to `__extendhfsf2' +#| erl_bits.c:(.text+0x1bfa): undefined reference to `__truncsfhf2' +#| clang-15: error: linker command failed with exit code 1 (use -v to see invocation) +# both riscv64 and x86-64 +TOOLCHAIN:pn-erlang = "gcc" + # /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' # __ai uint8x16_t vabdq_u8(uint8x16_t __p0, uint8x16_t __p1) { TOOLCHAIN:pn-firefox = "gcc" @@ -408,6 +415,10 @@ TOOLCHAIN:pn-python3-grpcio-tools:mips = "gcc" # -llvn-ranlib has same behaviour RANLIB:append:pn-tcf-agent:toolchain-clang = " $@" +# Subprocess output:mips-yoe-linux-llvm-objcopy: error: Link field value 22 in section .rel.dyn is not a symbol table +# also seen on riscv64 and x86-64 +OBJCOPY:pn-linux-yocto:toolchain-clang = "${HOST_PREFIX}objcopy" + # see https://github.com/llvm/llvm-project/issues/53948 OBJCOPY:pn-opensbi:toolchain-clang = "${HOST_PREFIX}objcopy" OBJCOPY:pn-libc-bench:toolchain-clang = "${HOST_PREFIX}objcopy" -- cgit v1.2.3-54-g00ecf