FreeBSD/arm64 MACHINE/MACHINE_ARCH identification

Ed Maste emaste at freebsd.org
Thu Feb 12 03:46:39 UTC 2015


On 11 February 2015 at 19:20, Warner Losh <imp at bsdimp.com> wrote:
>
> Linux used the original aarch64, but later changed to arm64.

Are you sure? As far as I can tell Linux reports "aarch64" for uname
-m (i.e., hw.machine) and that is what config.guess / autoconf
expects.

> I suggest
> that we follow this carefully. We botched the naming of amd64 and have
> dozens of warts in our build system because of it.

Indeed. We have to be sure that this is correct before it makes it to HEAD.

> I strongly object to the MACHINE change for reasons stated above, but the MACHINE_ARCH
> is likely a very good change since it aligns with the expected values for configuring things like
> clang, gcc, bintuils, etc.

As far as I can tell it's uname -m / sysctl hw.machine that's used by
autoconf.  Uname -p is hw.machine_arch and doesn't seem to be used.


More information about the freebsd-arm mailing list