public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "juergen.reuter at desy dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/99515] New: gcc fails to build on Darwin 20.3.0
Date: Wed, 10 Mar 2021 11:23:05 +0000	[thread overview]
Message-ID: <bug-99515-4@http.gcc.gnu.org/bugzilla/> (raw)

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

             reply	other threads:[~2021-03-10 11:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-10 11:23 juergen.reuter at desy dot de [this message]
2021-03-10 11:26 ` [Bug c/99515] " juergen.reuter at desy dot de
2021-03-10 12:48 ` [Bug target/99515] " juergen.reuter at desy dot de

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-99515-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).