Bug 251170 - 12.2 clean install build world failure
Summary: 12.2 clean install build world failure
Status: Closed Not A Bug
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 12.2-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2020-11-15 21:13 UTC by eu9gu4
Modified: 2020-12-04 05:00 UTC (History)
1 user (show)

See Also:

/etc//make.conf, /etc/src.conf (2.37 KB, text/plain)
2020-11-23 00:50 UTC, eu9gu4
no flags Details
/etc/make.conf (1.87 KB, text/plain)
2020-11-30 00:41 UTC, eu9gu4
no flags Details
/etc/src.conf (335 bytes, text/plain)
2020-11-30 00:42 UTC, eu9gu4
no flags Details
error of make buildowrld (64.65 KB, text/plain)
2020-11-30 00:43 UTC, eu9gu4
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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:

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]
Comment 7 eu9gu4 2020-11-30 00:42:23 UTC
Created attachment 220092 [details]
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.