https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66932
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |INVALID --- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The problem is you have -I. and C_INCLUDE_PATH including the cwd ".". from the documentation: https://gcc.gnu.org/onlinedocs/cpp/Invocation.html#Invocation: If a standard system include directory, or a directory specified with -isystem, is also specified with -I, the -I option is ignored. ---- CUT ----- C_INCLUDE_PATH is considered similar to -isystem but after processing the commandline options. So this is not a bug really except just a minor wording there might improve dealing with the envs.