https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115880
--- Comment #7 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to Sergey Fedorov from comment #6) > (In reply to Iain Sandoe from comment #2) > > I have posted patches (which need an update [on my shorter TODO] that > > implement the availability attribute). That makes a fix unnecessary - I > > would much rather pursue the implementation of the attribute than keep on > > applying band-aid fixincludes - the latter have been causing us some > > difficulties where SDKs change even within one OS rev. > > > > The availability patches are on my darwin branches, along with patches to > > remove the existing fixincludes which break on some SDK versions. > > > > So I agree that this bug is real - but I do not agree that the right > > resolution is more fixincludes. The patches were not accepted upstream yet, so they are only on the GH branches. > This seems to be still broken in 14.2.0, at least MacPorts one (but it uses > your patches). I cannot speak for what any of the distributions have.... https://github.com/iains/gcc-14-branch/commits/gcc-14-2-darwin/ builds for me on darwin9 ... darwin24. If you have a problem with a specific SDK please file an issue on the GH development branch; it cannot be addressed upstream at the moment. I would need to know exactly which SDK on which OS version is failing - to be able to reproduce it - and to be sure to build exactly the branch that has been released.