https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106779
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- So this is a clear bug in your build scripts then. You just can't add -I options that to configure/make variables where it will override -I paths added during the build, the build compilers paths need to always come after the other paths (and that is what happens by default, compiler always searches its own paths unless -nostdinc or -nostdinc++). Don't do it and it will build fine.