https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99515
Bug ID: 99515
Summary: gcc fails to build on Darwin 20.3.0
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: juergen.reuter at desy dot de
Target Milestone: ---
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