Re: git: 83bf6ab56829 - main - uname: switch machine to HW_MACHINE_ARCH

From: Norikatsu Shigemura <nork_at_ninth-nine.com>
Date: Mon, 12 Dec 2022 08:40:16 UTC
Hi pkubaj.

On 2022/12/11 21:08, Piotr Kubaj wrote:
> commit 83bf6ab568293e325f437342cdb87a626353e27c
> Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
> AuthorDate: 2022-12-11 03:01:44 +0000
> Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
> CommitDate: 2022-12-11 12:05:39 +0000
>      uname: switch machine to HW_MACHINE_ARCH
>      On powerpc64, powerpc64le and riscv64 some software wrongly assumes that
>      it runs on powerpc or riscv (32-bit).
>      Differential revision:  https://reviews.freebsd.org/D35962
>      Approved by:    alfredo, imp


This change causes src build is broken, I noticed that etcupdate run 
failed after make world.
- - - - - - - - - - - - - - - - - -
# etcupdate -L /dev/stdout
 >>> update command: rerun= tarball= preworld=
 >>> Building tree at /var/db/etcupdate/etcupdate-5TisjZ3 with make 
-DNO_FILEMON
make[1]: "/usr/src/Makefile.inc1" line 163: Unknown target aarch64:aarch64.

make[1]: stopped in /usr/src
*** Error code 1

Stop.
make: stopped in /usr/src
Failed to build new tree.
- - - - - - - - - - - - - - - - - -

So I check _TARGET* and MACHINE_*:
- - - - - - - - - - - - - - - - - -
# make -V_TARGET -V_TARGET_ARCH -V_TARGET_CPUARCH
aarch64
aarch64


# make -VMACHINE -VMACHINE_ARCH -VMACHINE_CPUARCH
aarch64
aarch64
aarch64
- - - - - - - - - - - - - - - - - -

maybe, this should be following..
- - - - - - - - - - - - - - - - - -
# make -V_TARGET -V_TARGET_ARCH -V_TARGET_CPUARCH
arm64
aarch64

# make -VMACHINE -VMACHINE_ARCH -VMACHINE_CPUARCH
arm64
aarch64
aarch64
- - - - - - - - - - - - - - - - - -