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

            Bug ID: 83096
           Summary: Bootstrap on darwin x86_64-apple-darwin15.6.0
                    (revision 254990) fails
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: physiker at toast2 dot net
  Target Milestone: ---

Bootstrapping gcc version 8 (revision 254990) on darwin does not work. 
The bootstrap bails out at stage 1 with:

g++ -std=gnu++98 -c   -g  -DIN_GCC    -fno-strict-aliasing -fno-exceptions
-fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-fno-common  -DHAVE_CONFIG_H -DGENERATOR_FILE -fno-PIE -I. -Ibuild
-I../../gcc/gcc -I../../gcc/gcc/build -I../../gcc/gcc/../include 
-I../../gcc/gcc/../libcpp/include -I/sw/include \
        -o build/print-rtl.o ../../gcc/gcc/print-rtl.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is
deprecated
In file included from ../../gcc/gcc/print-rtl.c:29:
../../gcc/gcc/coretypes.h:73:1: warning: class 'rtx_def' was previously
declared as a struct [-Wmismatched-tags]
class rtx_def;
^
../../gcc/gcc/coretypes.h:55:8: note: previous use is here
struct rtx_def;
       ^
In file included from ../../gcc/gcc/print-rtl.c:29:
In file included from ../../gcc/gcc/coretypes.h:400:
../../gcc/gcc/machmode.h:313:1: warning: 'pod_mode' defined as a struct
template here but previously declared as a class template [-Wmismatched-tags]
struct pod_mode
^
../../gcc/gcc/coretypes.h:66:20: note: did you mean struct here?
template<typename> class pod_mode;
                   ^~~~~
                   struct
In file included from ../../gcc/gcc/print-rtl.c:31:
In file included from ../../gcc/gcc/rtl.h:31:
In file included from ../../gcc/gcc/hash-table.h:235:
../../gcc/gcc/ggc.h:272:8: warning: struct 'rtx_def' was previously declared as
a class [-Wmismatched-tags]
inline struct rtx_def *
       ^
../../gcc/gcc/coretypes.h:73:7: note: previous use is here
class rtx_def;
      ^
In file included from ../../gcc/gcc/print-rtl.c:31:
In file included from ../../gcc/gcc/rtl.h:31:
In file included from ../../gcc/gcc/hash-table.h:235:
../../gcc/gcc/ggc.h:275:11: warning: struct 'rtx_def' was previously declared
as a class [-Wmismatched-tags]
  return (struct rtx_def *) ggc_internal_alloc (s PASS_MEM_STAT);
          ^
../../gcc/gcc/coretypes.h:73:7: note: previous use is here
class rtx_def;
      ^
In file included from ../../gcc/gcc/print-rtl.c:31:
In file included from ../../gcc/gcc/rtl.h:31:
In file included from ../../gcc/gcc/hash-table.h:561:
../../gcc/gcc/mem-stats.h:126:1: warning: 'mem_usage' defined as a struct here
but previously declared as a class [-Wmismatched-tags]
struct mem_usage
^
../../gcc/gcc/hash-table.h:341:1: note: did you mean struct here?
class mem_usage;
^~~~~
struct
In file included from ../../gcc/gcc/print-rtl.c:31:
../../gcc/gcc/rtl.h:298:1: warning: 'rtx_def' defined as a struct here but
previously declared as a class [-Wmismatched-tags]
struct GTY((desc("0"), tag("0"),
^
../../gcc/gcc/coretypes.h:73:1: note: did you mean struct here?
class rtx_def;
^~~~~
struct
../../gcc/gcc/print-rtl.c:982:1: error: explicit instantiation cannot have a
storage class
DEFINE_DEBUG_VEC (rtx_def *)
^
../../gcc/gcc/vec.h:456:24: note: expanded from macro 'DEFINE_DEBUG_VEC'
  template static void debug_helper (vec<T> &);         \
                       ^
../../gcc/gcc/print-rtl.c:982:1: error: explicit instantiation cannot have a
storage class
../../gcc/gcc/vec.h:457:24: note: expanded from macro 'DEFINE_DEBUG_VEC'
  template static void debug_helper (vec<T, va_gc> &);  \
                       ^
../../gcc/gcc/print-rtl.c:983:1: error: explicit instantiation cannot have a
storage class
DEFINE_DEBUG_VEC (rtx_insn *)
^
../../gcc/gcc/vec.h:456:24: note: expanded from macro 'DEFINE_DEBUG_VEC'
  template static void debug_helper (vec<T> &);         \
                       ^
../../gcc/gcc/print-rtl.c:983:1: error: explicit instantiation cannot have a
storage class
../../gcc/gcc/vec.h:457:24: note: expanded from macro 'DEFINE_DEBUG_VEC'
  template static void debug_helper (vec<T, va_gc> &);  \
                       ^
../../gcc/gcc/print-rtl.c:984:1: error: explicit instantiation cannot have a
storage class
DEFINE_DEBUG_HASH_SET (rtx_def *)
^
../../gcc/gcc/hash-set.h:153:24: note: expanded from macro
'DEFINE_DEBUG_HASH_SET'
  template static void debug_helper (hash_set<T> &);    \
                       ^
../../gcc/gcc/print-rtl.c:985:1: error: explicit instantiation cannot have a
storage class
DEFINE_DEBUG_HASH_SET (rtx_insn *)
^
../../gcc/gcc/hash-set.h:153:24: note: expanded from macro
'DEFINE_DEBUG_HASH_SET'
  template static void debug_helper (hash_set<T> &);    \
                       ^
In file included from ../../gcc/gcc/print-rtl.c:54:
../../gcc/gcc/print-rtl.h:72:22: warning: private field 'm_rtx_reuse_manager'
is not used [-Wunused-private-field]
  rtx_reuse_manager *m_rtx_reuse_manager;
                     ^
7 warnings and 6 errors generated.
make[3]: *** [Makefile:2651: build/print-rtl.o] Fehler 1
make[3]: *** Es wird auf noch nicht beendete Prozesse gewartet....
rm fsf-funding.pod gcov.pod gpl.pod cpp.pod gfdl.pod gcc.pod gcov-dump.pod
gcov-tool.pod
make[3]: Verzeichnis „/Users/Peter/Devel/build-gcc/gcc“ wird verlassen
make[2]: *** [Makefile:4662: all-stage1-gcc] Fehler 2
make[2]: Verzeichnis „/Users/Peter/Devel/build-gcc“ wird verlassen
make[1]: *** [Makefile:22008: stage1-bubble] Fehler 2
make[1]: Verzeichnis „/Users/Peter/Devel/build-gcc“ wird verlassen
make: *** [Makefile:974: all] Fehler 2

g++ --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

Reply via email to