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

            Bug ID: 89864
           Summary: [9.0 regression] gcc fails to build/bootstrap with
                    XCode 10.2
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: juergen.reuter at desy dot de
  Target Milestone: ---

Using the svn revision r269983 under MACOSX 10.14.4/Darwin 18.5.0 with XCode
10.2 bootstrapping gcc 9.0 fails with the following error:
/usr/local/packages/gcc_9.0/_build/./prev-gcc/xg++
-B/usr/local/packages/gcc_9.0/_build/./prev-gcc/
-B/usr/local/x86_64-apple-darwin18.5.0/bin/ -nostdinc++
-B/usr/local/packages/gcc_9.0/_build/prev-x86_64-apple-darwin18.5.0/libstdc++-v3/src/.libs
-B/usr/local/packages/gcc_9.0/_build/prev-x86_64-apple-darwin18.5.0/libstdc++-v3/libsupc++/.libs

-I/usr/local/packages/gcc_9.0/_build/prev-x86_64-apple-darwin18.5.0/libstdc++-v3/include/x86_64-apple-darwin18.5.0

-I/usr/local/packages/gcc_9.0/_build/prev-x86_64-apple-darwin18.5.0/libstdc++-v3/include
 -I/usr/local/packages/gcc_9.0/libstdc++-v3/libsupc++
-L/usr/local/packages/gcc_9.0/_build/prev-x86_64-apple-darwin18.5.0/libstdc++-v3/src/.libs
-L/usr/local/packages/gcc_9.0/_build/prev-x86_64-apple-darwin18.5.0/libstdc++-v3/libsupc++/.libs
-fno-PIE -c   -g -O2  -fno-checking  -gtoggle -DIN_GCC     -fno-exceptions
-fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror  
-DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include
-I./../intl -I../../gcc/../libcpp/include -I/usr/local//include
-I/usr/local//include -I/usr/local//include  -I../../gcc/../libdecnumber
-I../../gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/../libbacktrace  
-o darwin-driver.o -MT darwin-driver.o -MMD -MP -MF ./.deps/darwin-driver.TPo
../../gcc/config/darwin-driver.c
In file included from /usr/include/sys/sysctl.h:83,
                 from ../../gcc/config/darwin-driver.c:30:
/usr/include/sys/ucred.h:94:2: error: '_Atomic' does not name a type
   94 |  _Atomic u_long          cr_ref;  /* reference count */
      |  ^~~~~~~
make[3]: *** [darwin-driver.o] Error 1
make[2]: *** [all-stage2-gcc] Error 2
make[1]: *** [stage2-bubble] Error 2
make: *** [all] Error 2

I guess that this was not triggered by a recent change in the gcc code but by
changes in XCode 10.2 (or Darwin 18.5.0/MACOSX 10.14.4). Darwin 10.14.3 or
XCode 10.1 has been working with r269670.

Reply via email to