https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116980
Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fxcoudert at gcc dot gnu.org --- Comment #1 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> --- This is a known issue: the compiler should be compiled against the same macOS SDK that it will be used on later. If you compile a compiler against the macOS 15 SDK, for example, and then run it against the macOS 16 SDK, there are incompatibilities. This is due to our "fixincludes" mechanism, which leaks SDK information into the compiler. This is, in turn, due to Apple SDKs containing invalid or clang-specific code.