https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105404
--- Comment #17 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to Joel Sherrill from comment #16) > Over at RTEMS.org, we have a report from a Mac user that the gcc zlib needs > updating or patched to build there. We are seeing this with GCC 13 but the > version looks to be the same back to at least GCC 11. > > Just confirming that there are GCC/RTEMS users who noticed this and asked. > We are not carrying a patch for GCC to be able to build this zlib on new > MacOS. > > Updating GCC master to have a new zlib obviously will not help avoid the > need for patches in the near future. But it's a good move. note that the issue on macOS starts with Xcode16.3 on recent OS versions which have an up to date installed zlib (so the --with-system-zlib is a reasonable work-around).