- clean install of FreeBSD-12.2, with lib32, ports, src
- update /usr/src to STABLE rev 367711
- make buildworld fails with:
error: invalid argument '-std=gnu99' not allowed with 'C++'
make buildkernel & make installkernel work fine with existing tools from 12.2-RELEASE
Just make buildworld is failing badly.
I noticed that even the images at "https://download.freebsd.org/ftp/snapshots/amd64/amd64/ISO-IMAGES/12.2" stopped being issued at Nov 12, while they are still issued weekly for 11.4 and 13.0.
Does that mean that there is a building issue with 12.2-STABLE?
What are the contents of your /etc/make.conf and /etc/src.conf? Do you have CFLAGS or similar variables set in your environment?
Created attachment 219897 [details]
And no CFLAGS set!
Installed latest snapshot from Nov 26.
Did not do anything else after install but updating /usr/src to latest STABLE.
make build world is still failing.
It is beyond my understanding what happened shortly after 12.2-RELEASE.
I'm using this procedure for the last 10 years with 100% success and suddenly after 12.2 it fails:
- install from official RELEASE image
- update /usr/src to STABLE
- make buildworld
- make buildkernel
My /etc/make.conf and /etc/src.conf are attached.
There are no CFLAGS in my environment.
So, with a pristine install I get the buildworld failure attached.
Created attachment 220091 [details]
Created attachment 220092 [details]
Created attachment 220093 [details]
error of make buildowrld
Found the problem: buildworld fails when MAKEOBJDIR is set to a directory on tmpfs.
Changed it to a directory on SSD and world builds fine.