Re: HEADS UP: GCC 10 now default on several ports
Johnny Billquist <[email protected]> Sun, 18 Apr 2021 17:49:55 +0200
| Newsgroups | gmane.os.netbsd.current,gmane.os.netbsd.ports.alpha,gmane.os.netbsd.ports.x86-64,gmane.os.netbsd.ports.vax,gmane.os.netbsd.ports.sparc,gmane.os.netbsd.ports.sparc64 |
|---|---|
| Message-ID | <[email protected]> |
On 2021-04-18 17:48, Martin Husemann wrote: > 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 [email protected]:/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. bsd.own.mk only conditionally sets it if it is unset. I have no idea where it comes from. I certainly have not touched it. I only added a .info to print out what the actual value is, and it's already set to 8 by something previous, obviously, since it's not being set there. Johnny -- Johnny Billquist || "I'm on a bus || on a psychedelic trip email: [email protected] || Reading murder books pdp is alive! || tryin' to stay hip" - B. Idol