Skip to content

Commit

Permalink
nonclangable.conf: Add new exceptions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Aleksey Smirnov authored and kraj committed Dec 17, 2022
1 parent dcd5f09 commit f7fa299
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions conf/nonclangable.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -408,6 +415,10 @@ TOOLCHAIN:pn-python3-grpcio-tools:mips = "gcc"
# <cross>-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"
Expand Down

0 comments on commit f7fa299

Please sign in to comment.