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

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 03 Apr 2023 00:32:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258358

--- Comment #19 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
(In reply to Robert Clausecker from comment #18)

https://docs.freebsd.org/en/articles/committers-guide/#archs
reports for tier 2:

QUOTE
Tier 2 platforms should be self-hosting either via the in-tree toolchain or an
external toolchain. If an external toolchain is required, official binary
packages for an external toolchain will be provided.
END QUOTE

riscv64, riscv64sf are listed as tier 2 for 13.x and later on
https://www.freebsd.org/platforms/ . (There are notes around for
riscv64sf possibly being dropped.)

As for my cross builds/installs notes . . .

Definitely true that I have not been through all the steps
for cross builds/installs in some time. Do not take the
below as an overall claim that there would not be problems.

Having poor access to the media would be a pain for sure.
Nothing here deals with that.

As I remember, some activities like etcupdate (these days)
work from the builder/installer machine when done
appropriately (referencing the propriate source tree, told
the architecture, and target's mount and the like). For
example, etcupdate has:

     -M options     Pass options as additional parameters to make(1) when
                    building a “current” tree.  This can be used for to set
                    the TARGET or TARGET_ARCH variables for a cross-build.

(not just the likes of -s and -D and -d for where to get
or put information).

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