https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116980
Bug ID: 116980 Summary: Fixed includes don’t work with XCode 16 Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: simon at pushface dot org Target Milestone: --- Compiling this: $ cat hello.c #include <stdio.h> int main() { printf("hello!\n"); return 0; } XCode & CLT 16.0 were released with macOS 14.7, and now we get e.g. $ gcc hello.c In file included from hello.c:1: /opt/gcc-14.2.0-1-aarch64/lib/gcc/aarch64-apple-darwin21/14.2.0/include-fixed/stdio.h:83:8: error: unknown type name ‘FILE’ 83 | extern FILE *__stdinp; | ^~~~ /opt/gcc-14.2.0-1-aarch64/lib/gcc/aarch64-apple-darwin21/14.2.0/include-fixed/stdio.h:81:1: note: ‘FILE’ is defined in header ‘<stdio.h>’; this is probably fixable by adding ‘#include <stdio.h>’ 80 | #include <sys/_types/_seek_set.h> +++ |+#include <stdio.h> 81 | /opt/gcc-14.2.0-1-aarch64/lib/gcc/aarch64-apple-darwin21/14.2.0/include-fixed/stdio.h:84:8: error: unknown type name ‘FILE’ 84 | extern FILE *__stdoutp; | ^~~~ ... etc etc ======================= I know that output is from an aarch64 Mac; I don’t have a 14.2 x86_64 compiler, but I get the same results with gcc-13.2.0-x86_64, $ gcc hello.c In file included from hello.c:1: /opt/gcc-13.2.0-x86_64/lib/gcc/x86_64-apple-darwin21/13.2.0/include-fixed/stdio.h:83:8: error: unknown type name 'FILE' 83 | extern FILE *__stdinp; | ^~~~ /opt/gcc-13.2.0-x86_64/lib/gcc/x86_64-apple-darwin21/13.2.0/include-fixed/stdio.h:84:8: error: unknown type name 'FILE' 84 | extern FILE *__stdoutp; | ^~~~ /opt/gcc-13.2.0-x86_64/lib/gcc/x86_64-apple-darwin21/13.2.0/include-fixed/stdio.h:85:8: error: unknown type name 'FILE' 85 | extern FILE *__stderrp; | ^~~~