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

            Bug ID: 92445
           Summary: gcc bootstrap fails on Darwin 19.0.0 in stage 1
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: juergen.reuter at desy dot de
  Target Milestone: ---

Under macOS Catalina (Darwin 19.0.0) bootstrap fails with the following error
message:
libtool: compile:  /usr/local/packages/gcc_10.0/_build/./gcc/xgcc
-shared-libgcc -B/usr/local/packages/gcc_10.0/_build/./gcc -nostdinc++
-L/usr/local/packages/gcc_10.0/_build/x86_64-apple-darwin19.0.0/libstdc++-v3/src
-L/usr/local/packages/gcc_10.0/_build/x86_64-apple-darwin19.0.0/libstdc++-v3/src/.libs
-L/usr/local/packages/gcc_10.0/_build/x86_64-apple-darwin19.0.0/libstdc++-v3/libsupc++/.libs
-B/usr/local/x86_64-apple-darwin19.0.0/bin/
-B/usr/local/x86_64-apple-darwin19.0.0/lib/ -isystem
/usr/local/x86_64-apple-darwin19.0.0/include -isystem
/usr/local/x86_64-apple-darwin19.0.0/sys-include -fno-checking
-I/usr/local/packages/gcc_10.0/libstdc++-v3/../libgcc
-I/usr/local/packages/gcc_10.0/_build/x86_64-apple-darwin19.0.0/libstdc++-v3/include/x86_64-apple-darwin19.0.0
-I/usr/local/packages/gcc_10.0/_build/x86_64-apple-darwin19.0.0/libstdc++-v3/include
-I/usr/local/packages/gcc_10.0/libstdc++-v3/libsupc++ -D_GLIBCXX_SHARED
-fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections
-frandom-seed=atexit_thread.lo -g -O2 -c
../../../../libstdc++-v3/libsupc++/atexit_thread.cc  -fno-common -DPIC
-D_GLIBCXX_SHARED -o atexit_thread.o
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/wait.h:110,
                 from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:66,
                 from
/usr/local/packages/gcc_10.0/_build/x86_64-apple-darwin19.0.0/libstdc++-v3/include/cstdlib:75,
                 from ../../../../libstdc++-v3/libsupc++/atexit_thread.cc:25:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/resource.h:447:34:
error: expected initializer before ‘__OSX_AVAILABLE_STARTING’
  447 | int     getiopolicy_np(int, int) __OSX_AVAILABLE_STARTING(__MAC_10_5,
__IPHONE_2_0);
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/resource.h:453:39:
error: expected initializer before ‘__OSX_AVAILABLE_STARTING’
  453 | int     setiopolicy_np(int, int, int)
__OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
      |                                       ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:128,
                 from
/usr/local/packages/gcc_10.0/_build/x86_64-apple-darwin19.0.0/libstdc++-v3/include/cstdlib:75,
                 from ../../../../libstdc++-v3/libsupc++/atexit_thread.cc:25:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/malloc/_malloc.h:52:74:
error: expected initializer before ‘__OSX_AVAILABLE_STARTING’
   52 | int   posix_memalign(void **__memptr, size_t __alignment, size_t
__size) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_0);
      |                                                                        
 ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from
/usr/local/packages/gcc_10.0/_build/x86_64-apple-darwin19.0.0/libstdc++-v3/include/cstdlib:75,
                 from ../../../../libstdc++-v3/libsupc++/atexit_thread.cc:25:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:270:53:
error: expected initializer before ‘__OSX_AVAILABLE_STARTIN’
  270 | void  arc4random_buf(void * __buf, size_t __nbytes)
__OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
      |                                                    
^~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:273:46:
error: expected initializer before ‘__OSX_AVAILABLE_STARTIN’
  273 |   arc4random_uniform(uint32_t __upper_bound)
__OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from
/usr/local/packages/gcc_10.0/_build/x86_64-apple-darwin19.0.0/libstdc++-v3/include/cstdlib:75,
                 from ../../../../libstdc++-v3/libsupc++/atexit_thread.cc:25:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:292:45:
error: expected initializer before ‘__OSX_AVAILABLE_BUT_DEPRECATED_MSG’
  292 | int  daemon(int, int) __DARWIN_1050(daemon)
__OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_0, __MAC_10_5, __IPHONE_2_0,
__IPHONE_2_0, "Use posix_spawn APIs instead.") __WATCHOS_PROHIBITED
__TVOS_PROHIBITED;
      |                                            
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:325:6:
error: expected initializer before ‘__OSX_AVAILABLE_STARTING’
  325 |      __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
      |      ^~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:333:6:
error: expected initializer before ‘__OSX_AVAILABLE_STARTING’
  333 |      __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
      |      ^~~~~~~~~~~~~~~~~~~~~~~~
make[5]: *** [atexit_thread.lo] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-stage1-target-libstdc++-v3] Error 2

Compilation is with clang 
Darwin vpn-072.desy.de 19.0.0 Darwin Kernel Version 19.0.0: Thu Oct 17 16:17:15
PDT 2019; root:xnu-6153.41.3~29/RELEASE_X86_64 x86_64 i386 MacBookPro15,1
Darwin
sh-3.2# clang --version
Apple clang version 11.0.0 (clang-1100.0.33.12)
Target: x86_64-apple-darwin19.0.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Reply via email to