On Sun, Apr 18, 2021 at 05:44:36PM +0200, Johnny Billquist wrote:
On 2021-04-18 17:42, Martin Husemann wrote:
On Sun, Apr 18, 2021 at 03:09:17PM +0200, Johnny Billquist wrote:
Basically, the problem is that HAVE_GCC is there set to 8,
Where and why? This should not happen - HAVE_GCC for -current is either 9
or 10, no matter on what host / which tools you compile with.
GW:/usr/src# uname -a
NetBSD GW.SoftJAR.SE 8.0 NetBSD 8.0 (GENERIC) #0: Tue Jul 17 14:59:51 UTC
2018 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC
amd64
Cross compiling for vax with a current checkout from a couple of hours ago.
No, I mean where the HAVE_GCC=8 comes from.
The only places where we set is is in bsd.own.mk, in this code:
#
# What GCC is used?
#
.if ${MACHINE} == "alpha" || \
${MACHINE_ARCH} == "x86_64" || \
${MACHINE} == "ia64" || \
${MACHINE} == "sparc" || \
${MACHINE} == "sparc64" || \
${MACHINE} == "vax" || \
${MACHINE_ARCH} == "riscv32" || \
${MACHINE_ARCH} == "riscv64"
HAVE_GCC?= 10
.else
HAVE_GCC?= 9
.endif
... so if you end up with "8" here, something is wrong in your setup.