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

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 19 Sep 2021 21:19:24 UTC

--- Comment #8 from Klaus K├╝chemann <maciphone2@googlemail.com> ---
Just to confirm :

make clean in /usr/src (no src/make.conf), applied patch :
-- lib/clang/llvm.build.mk  --
 @@ -104,7 +104,7 @@ CFLAGS+=   -fdata-sections
 .if ${LINKER_TYPE} == "mac"
 LDFLAGS+=      -Wl,-dead_strip
-LDFLAGS+=      -Wl,--gc-sections
+LDFLAGS+=      -Wl,--gc-sections,-melf64lriscv_fbsd

>>> World build completed on Sun Sep 19 20:47:54 UTC 2021
>>> World built in 50245 seconds, ncpu: 4, make -j4
<hw.fdt.model: SiFive HiFive Unleashed A00>
(from 16 to 13 hours by hacked clocking from default 1Ghz to
hw.clock.coreclk.frequency: 1399999944 )

I`ll leave it up to you to mark this pr as fixed/closed or to wait with it
until yours official solution(s).


You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.