Bug 251170

Summary: 12.2 clean install build world failure
Product: Base System Reporter: eu9gu4
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Not A Bug    
Severity: Affects Only Me CC: yuripv
Priority: ---    
Version: 12.2-STABLE   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
/etc//make.conf, /etc/src.conf
none
/etc/make.conf
none
/etc/src.conf
none
error of make buildowrld none

Description eu9gu4 2020-11-15 21:13:51 UTC
- clean install of FreeBSD-12.2, with lib32, ports, src
- update /usr/src to STABLE rev 367711
- make buildworld fails with:

all_subdir_lib/libdevctl
error: invalid argument '-std=gnu99' not allowed with 'C++'
Comment 1 eu9gu4 2020-11-22 23:58:11 UTC
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?
Comment 2 Yuri Pankov 2020-11-23 00:15:19 UTC
What are the contents of your /etc/make.conf and /etc/src.conf?  Do you have CFLAGS or similar variables set in your environment?
Comment 3 eu9gu4 2020-11-23 00:50:56 UTC
Created attachment 219897 [details]
/etc//make.conf, /etc/src.conf
Comment 4 eu9gu4 2020-11-23 03:22:10 UTC
And no CFLAGS set!
Comment 5 eu9gu4 2020-11-30 00:40:03 UTC
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.
Comment 6 eu9gu4 2020-11-30 00:41:21 UTC
Created attachment 220091 [details]
/etc/make.conf
Comment 7 eu9gu4 2020-11-30 00:42:23 UTC
Created attachment 220092 [details]
/etc/src.conf
Comment 8 eu9gu4 2020-11-30 00:43:08 UTC
Created attachment 220093 [details]
error of make buildowrld
Comment 9 eu9gu4 2020-12-04 05:00:25 UTC
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.