https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106779
--- Comment #7 from Todd Richmond <todd_richmond at hotmail dot com> --- i was playing w/ cmdline and had deleted an extra arg. the 12.2 path is before the 12.1 path. However, our build scripts include the correct gcc header dir to all configure lines to ensure we don't pull in the system gcc headers. This causes 12.2 to include the source include dir (var/tmp...) last instead of first It is strange that this only fails for 12.2. I rebuilt 12.1 yesterday w/o issue so did something change in Makefile.in or a configure script that changed the include order? I can confirm that removing the original gcc include paths from the compile works correctly fail: /tools/arch/Linux_3.10.0-x86_64/gcc-12.1.0-bootstrap/bin/gcc -c -DHAVE_CONFIG_H -fPIC -O3 -pipe -DNDEBUG -Wno-error=unused-value -Wno-unused-variable -I/tools/arch/Linux_3.10.0-x86_64/gcc-12.2.0-bootstrap/include -I/tools/arch/Linux_3.10.0-x86_64/gcc-12.1.0-bootstrap//include -I. -I/var/tmp/gcc-12.2.0-bootstrap/gcc-12.2.0/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=local -pedantic -D_GNU_SOURCE -fcf-protection /var/tmp/gcc-12.2.0-bootstrap/gcc-12.2.0/libiberty/objalloc.c -o objalloc.o succeed: /tools/arch/Linux_3.10.0-x86_64/gcc-12.1.0-bootstrap/bin/gcc -c -DHAVE_CONFIG_H -fPIC -O3 -pipe -ffunction-sections -fdata-sections -march=nehalem -mtune=broadwell -DNDEBUG -Wno-error=unused-value -Wno-unused-variable -I. -I/var/tmp/gcc-12.2.0-bootstrap/gcc-12.2.0/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=local -pedantic -D_GNU_SOURCE -fcf-protection /var/tmp/gcc-12.2.0-bootstrap/gcc-12.2.0/libiberty/objalloc.c -o objalloc.o