[Bug 258358] Fails to build on riscv: arm_bf16.h: sh: clang-tblgen: Exec format error
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 258358] Risc-V clang-tblgen: Exec format error"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 04 Oct 2022 10:16:26 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258358 --- Comment #10 from Alex Richardson <arichardson@FreeBSD.org> --- I am aware a least two workarounds, but none of those can really be committed as is: - Remove -Wl,--gc-sections from all makefiles (will result in larger binaries) - Rebuilding lib/csu with https://reviews.freebsd.org/D35534 (breaks the build with older linkers/compilers - not a big deal for RISC-V, but it is for other architecture). As jrtc27@ said in https://reviews.freebsd.org/D35534, the real solution would be to move the ELF notes so they can't be GC'd, but someone needs to do that work (I don't have time right now). -- You are receiving this mail because: You are on the CC list for the bug.