https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90834
--- Comment #18 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> --- > --- Comment #17 from Iain Sandoe <iains at gcc dot gnu.org> --- > ping for closing this - or new information otherwise. I haven't reread the whole thread, but AFAICS one still needs to configure with --with-sysroot when using Xcode 11 and up to get a working gcc. This isn't documented anywhere, certainly not in invoke.texi. At the very least, this should happen to avoid every one falling into this trap at least once and having do dig around what's up. Preferably, do this automatically either in gcc/configure or have gcc search /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk at least as a fallback. That seems what clang is doing.