https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95011
Bug ID: 95011 Summary: Error building gcc 10.1.0 on macOS Catalina with Xcode 11.4.1 Product: gcc Version: 10.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: mario_grgic at hotmail dot com Target Milestone: --- Created attachment 48484 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48484&action=edit config.log I am attempting to build gcc 10.1.0 from source with Xcode 11.4.1 on macOS Catalina 10.15.4. I configure the build as follows: export PREFIX=/usr/local ../configure --prefix=${PREFIX} --with-gmp=${PREFIX} --with-mpfr=${PREFIX} --with-mpc=${PREFIX} --with-isl-prefix=${PREFIX} --with-cloog=${PREFIX} --enable-checking=release --enable-languages=c,c++,fortran --with-build-sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk But this eventually leads to: /lib/cpp configure: error: in `/Volumes/ramdisk/gcc-10.1.0/build/gcc': configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details ... config.status: executing default commands make[1]: *** [stage2-bubble] Error 2 make: *** [all] Error 2 config.log is attached. In the config.log I see: xgcc: error: unrecognized command-line option '-V' and xgcc: error: unrecognized command-line option '-qversion'; did you mean '--version'? But more importantly: /Volumes/ramdisk/gcc-10.1.0/build/prev-gcc/include-fixed/limits.h:195:15: fatal error: limits.h: No such file or directory