public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/99515] New: gcc fails to build on Darwin 20.3.0
@ 2021-03-10 11:23 juergen.reuter at desy dot de
  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
  0 siblings, 2 replies; 3+ messages in thread
From: juergen.reuter at desy dot de @ 2021-03-10 11:23 UTC (permalink / raw)
  To: gcc-bugs

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c/99515] gcc fails to build on Darwin 20.3.0
  2021-03-10 11:23 [Bug c/99515] New: gcc fails to build on Darwin 20.3.0 juergen.reuter at desy dot de
@ 2021-03-10 11:26 ` juergen.reuter at desy dot de
  2021-03-10 12:48 ` [Bug target/99515] " juergen.reuter at desy dot de
  1 sibling, 0 replies; 3+ messages in thread
From: juergen.reuter at desy dot de @ 2021-03-10 11:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99515

--- Comment #1 from Jürgen Reuter <juergen.reuter at desy dot de> ---
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:

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug target/99515] gcc fails to build on Darwin 20.3.0
  2021-03-10 11:23 [Bug c/99515] New: gcc fails to build on Darwin 20.3.0 juergen.reuter at desy dot de
  2021-03-10 11:26 ` [Bug c/99515] " juergen.reuter at desy dot de
@ 2021-03-10 12:48 ` juergen.reuter at desy dot de
  1 sibling, 0 replies; 3+ messages in thread
From: juergen.reuter at desy dot de @ 2021-03-10 12:48 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99515

Jürgen Reuter <juergen.reuter at desy dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Jürgen Reuter <juergen.reuter at desy dot de> ---
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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-10 12:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-10 11:23 [Bug c/99515] New: gcc fails to build on Darwin 20.3.0 juergen.reuter at desy dot de
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

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).