I'm using the gcc Git repo, on Darwin 20.3.0, macOS BigSur 11.2.3, getting the compilation error below (cf. below). The configure line was ../configure --prefix=/usr/local/ --with-gmp=/usr/local/ --with-mpfr=/usr/local/ --with-mpr=/usr/local/ --with-isl=/usr/local/ --enable-checking=release --with-sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk --enable-languages=c,c++,fortran,lto,objc,obj-c++ This has been compiled with the following clang version: # gcc --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1 Apple clang version 12.0.0 (clang-1200.0.32.29) Target: x86_64-apple-darwin20.3.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin Any ideas? Compilation worked last time Dec 7, 2020, when I still had Darwin 20.1.0, so already BigSur. In file included from ../../libcpp/charset.c:22: ../../libcpp/include/cpplib.h:291:3: error: "Cannot find a least-32-bit signed integer type" # error "Cannot find a least-32-bit signed integer type" ^ ../../libcpp/include/cpplib.h:293:34: error: expected ';' after top level declarator typedef unsigned CPPCHAR_SIGNED_T cppchar_t; ^ ; ../../libcpp/include/cpplib.h:1123:8: error: unknown type name 'cppchar_t'; did you mean 'wchar_t'? extern cppchar_t cpp_interpret_charconst (cpp_reader *, const cpp_token *, ^~~~~~~~~ wchar_t ../../libcpp/include/cpplib.h:1140:8: error: unknown type name 'cppchar_t'; did you mean 'wchar_t'? extern cppchar_t cpp_host_to_exec_charset (cpp_reader *, cppchar_t); ^~~~~~~~~ wchar_t ../../libcpp/include/cpplib.h:1140:58: error: unknown type name 'cppchar_t'; did you mean 'wchar_t'? extern cppchar_t cpp_host_to_exec_charset (cpp_reader *, cppchar_t); ^~~~~~~~~ wchar_t ../../libcpp/include/cpplib.h:1313:8: error: unknown type name 'cppchar_t'; did you mean 'wchar_t'? extern cppchar_t cpp_parse_escape (cpp_reader *, const unsigned char ** pstr, ^~~~~~~~~ wchar_t ../../libcpp/include/cpplib.h:1458:18: error: unknown type name 'cppchar_t'; did you mean 'wchar_t'? int cpp_wcwidth (cppchar_t c); ^~~~~~~~~ wchar_t In file included from ../../libcpp/charset.c:23: ../../libcpp/internal.h:794:3: error: unknown type name 'cppchar_t'; did you mean 'wchar_t'? cppchar_t previous; ^~~~~~~~~ wchar_t ../../libcpp/internal.h:812:8: error: unknown type name 'cppchar_t'; did you mean 'wchar_t'? cppchar_t *, ^~~~~~~~~ wchar_t ../../libcpp/internal.h:821:9: error: unknown type name 'cppchar_t'; did you mean 'wchar_t'? cppchar_t *cp); ^~~~~~~~~ wchar_t ../../libcpp/charset.c:169:8: error: unknown type name 'cppchar_t'; did you mean 'wchar_t'? cppchar_t *cp) ^~~~~~~~~ wchar_t ../../libcpp/charset.c:174:3: error: use of undeclared identifier 'cppchar_t'; did you mean 'wchar_t'? cppchar_t c; ^~~~~~~~~ wchar_t ../../libcpp/charset.c:205:7: error: use of undeclared identifier 'cppchar_t'; did you mean 'wchar_t'? cppchar_t n = *inbuf++; ^~~~~~~~~ wchar_t ../../libcpp/charset.c:228:22: error: unknown type name 'cppchar_t'; did you mean 'wchar_t'? one_cppchar_to_utf8 (cppchar_t c, uchar **outbufp, size_t *outbytesleftp) ^~~~~~~~~ wchar_t ../../libcpp/charset.c:283:3: error: use of undeclared identifier 'cppchar_t'; did you mean 'wchar_t'? cppchar_t s = 0; ^~~~~~~~~ wchar_t ../../libcpp/charset.c:309:3: error: use of undeclared identifier 'cppchar_t'; did you mean 'wchar_t'? cppchar_t s; ^~~~~~~~~ wchar_t ../../libcpp/charset.c:340:3: error: use of undeclared identifier 'cppchar_t'; did you mean 'wchar_t'? cppchar_t s = 0; ^~~~~~~~~ wchar_t ../../libcpp/charset.c:373:7: error: use of undeclared identifier 'cppchar_t'; did you mean 'wchar_t'? cppchar_t hi, lo; ^~~~~~~~~ wchar_t ../../libcpp/charset.c:402:3: error: use of undeclared identifier 'cppchar_t'; did you mean 'wchar_t'? cppchar_t s; ^~~~~~~~~ wchar_t
Maybe I add this information which was put out right ahead of the error messages: true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g " "CXXFLAGS=-g " "CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-g -O2" "INSTALL=/opt/local/bin/ginstall -c" "INSTALL_DATA=/opt/local/bin/ginstall -c -m 644" "INSTALL_PROGRAM=/opt/local/bin/ginstall -c" "INSTALL_SCRIPT=/opt/local/bin/ginstall -c" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-g -O2" "MAKE=/Applications/Xcode.app/Contents/Developer/usr/bin/make" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/usr/local" "infodir=/usr/local/share/info" "libdir=/usr/local/lib" "prefix=/usr/local" "tooldir=/usr/local/x86_64-apple-darwin20.3.0" "AR=ar" "AS=as" "CC=gcc" "CXX=g++ -std=c++11" "LD=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" "LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # /Applications/Xcode.app/Contents/Developer/usr/bin/make /Applications/Xcode.app/Contents/Developer/usr/bin/make all-am true DO=all multi-do # /Applications/Xcode.app/Contents/Developer/usr/bin/make g++ -std=c++11 -I../../libcpp -I. -I../../libcpp/../include -I./../intl -I../../libcpp/include -g -W -Wall -Wno-narrowing -Wwrite-strings -Wmissing-format-attribute -pedantic -Wno-long-long -fno-exceptions -fno-rtti -I../../libcpp -I. -I../../libcpp/../include -I./../intl -I../../libcpp/include -c -o charset.o -MT charset.o -MMD -MP -MF .deps/charset.Tpo ../../libcpp/charset.c clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated] In file included from ../../libcpp/charset.c:22:
My apologies for the entropy creation: this was a hickup between clang and gcc paths due to a still active CPLUS_INCLUDE_PATH. Memo to myself: do a proper internet search before opening a bug report.