[Bug 258358] Fails to build on riscv: arm_bf16.h: sh: clang-tblgen: Exec format error

From: <bugzilla-noreply_at_freebsd.org>
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 the assignee for the bug.
You are on the CC list for the bug.