Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Dec 2022 17:40:16 +0900
From:      Norikatsu Shigemura <nork@ninth-nine.com>
To:        Piotr Kubaj <pkubaj@FreeBSD.org>, src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   Re: git: 83bf6ab56829 - main - uname: switch machine to HW_MACHINE_ARCH
Message-ID:  <e2dea784-4bcc-06b1-4e5a-41a29da47714@ninth-nine.com>
In-Reply-To: <202212111208.2BBC835O095410@gitrepo.freebsd.org>
References:  <202212111208.2BBC835O095410@gitrepo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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
- - - - - - - - - - - - - - - - - -



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e2dea784-4bcc-06b1-4e5a-41a29da47714>