[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 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258358

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

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

Result:
--------------------------------------------------------------
>>> 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).

thanks
K.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
Received on Sun Sep 19 2021 - 21:19:24 UTC

Original text of this message