https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92719
Bug ID: 92719 Summary: MacOS 10.15 Catalina build fails Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: rainer.kel...@hs-esslingen.de Target Milestone: --- Compiling gcc-trunk r278783M on MacOS Catalina (10.15.1) fails. The configure -line (in an out-of-source-build): OSX_SDK_VERSION=`xcodebuild -showsdks | grep 'macOS\ 10' | cut -f2- -d'-' | cut -f2 -d' '` OSX_SDK_PATH=`xcodebuild -sdk $OSX_SDK_VERSION -version | grep -E '^Path: ' | cut -f2 -d' '` ../configure --prefix=$PWD/usr --enable-bootstrap --enable-languages=c,c++,fortran,jit,lto --enable-host-shared --enable-multilib --with-sysroot=$OSX_SDK_PATH --disable-werror (please note, this is with & without --disable-werror) In stage 2 it fails with: /Users/hpcraink/DATA/SOFTWARE/gcc-svn/BUILD-MacOS-sysroot/./prev-gcc/xg++ -B/Users/hpcraink/DATA/SOFTWARE/gcc-svn/BUILD-MacOS-sysroot/./prev-gcc/ -B/Users/hpcraink/DATA/SOFTWARE/gcc-svn/BUILD-MacOS-sysroot/usr/x86_64-apple-darwin19.0.0/bin/ -nostdinc++ -B/Users/hpcraink/DATA/SOFTWARE/gcc-svn/BUILD-MacOS-sysroot/prev-x86_64-apple-darwin19.0.0/libstdc++-v3/src/.libs -B/Users/hpcraink/DATA/SOFTWARE/gcc-svn/BUILD-MacOS-sysroot/prev-x86_64-apple-darwin19.0.0/libstdc++-v3/libsupc++/.libs -I/Users/hpcraink/DATA/SOFTWARE/gcc-svn/BUILD-MacOS-sysroot/prev-x86_64-apple-darwin19.0.0/libstdc++-v3/include/x86_64-apple-darwin19.0.0 -I/Users/hpcraink/DATA/SOFTWARE/gcc-svn/BUILD-MacOS-sysroot/prev-x86_64-apple-darwin19.0.0/libstdc++-v3/include -I/Users/hpcraink/DATA/SOFTWARE/gcc-svn/libstdc++-v3/libsupc++ -L/Users/hpcraink/DATA/SOFTWARE/gcc-svn/BUILD-MacOS-sysroot/prev-x86_64-apple-darwin19.0.0/libstdc++-v3/src/.libs -L/Users/hpcraink/DATA/SOFTWARE/gcc-svn/BUILD-MacOS-sysroot/prev-x86_64-apple-darwin19.0.0/libstdc++-v3/libsupc++/.libs -c -g -O2 -fno-checking -gtoggle -DIN_GCC -fPIC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -fno-PIE -I. -Ibuild -I../../gcc -I../../gcc/build -I../../gcc/../include -I./../intl -I../../gcc/../libcpp/include \ -o build/genmodes.o ../../gcc/genmodes.c In file included from ./bconfig.h:3, from ../../gcc/genmodes.c:20: ./auto-host.h:2405:16: error: declaration does not declare anything [-fpermissive] 2405 | #define rlim_t long | ^~~~ In file included from ../../gcc/genmodes.c:21: ../../gcc/system.h:540:20: error: conflicting declaration of C function ‘const char* strsignal(int)’ 540 | extern const char *strsignal (int); | ^~~~~~~~~ In file included from /Users/hpcraink/DATA/SOFTWARE/gcc-svn/BUILD-MacOS-sysroot/prev-x86_64-apple-darwin19.0.0/libstdc++-v3/include/cstring:42, from ../../gcc/system.h:235, from ../../gcc/genmodes.c:21: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:134:7: note: previous declaration ‘char* strsignal(int)’ 134 | char *strsignal(int __sig); | ^~~~~~~~~ make[3]: *** [build/genmodes.o] Error 1 make[2]: *** [all-stage2-gcc] Error 2 make[1]: *** [stage2-bubble] Error 2 make: *** [all] Error 2 Please note gcc does bootstrap when configuring using --with-build-sysroot -- and fixing one header inclusion for gmp.h However, Iain pointed to issues reported in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89864