https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82300
Bug ID: 82300 Summary: Bootstrapping gcc-8 does not work on darwin 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-8 [trunk revision 252896] on x86_64-apple-darwin15.6.0 does not work. I utilize clang, the system compiler, for building stage 1. echo timestamp > s-match 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/genattrtab.o ../../gcc/gcc/genattrtab.c clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated In file included from ../../gcc/gcc/genattrtab.c:107: ../../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/genattrtab.c:107: 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/genattrtab.c:108: In file included from ./tm.h:16: ./options.h:5803:2: error: too many target masks #error too many target masks ^ In file included from ../../gcc/gcc/genattrtab.c:109: 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/genattrtab.c:109: 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/genattrtab.c:109: 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/genattrtab.c:109: ../../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 6 warnings and 1 error generated. make[3]: *** [Makefile:2646: build/genattrtab.o] Fehler 1 make[3]: *** Es wird auf noch nicht beendete Prozesse gewartet.... rm gcov.pod gpl.pod cpp.pod gfdl.pod fsf-funding.pod gcc.pod gcov-dump.pod gcov-tool.pod make[3]: Verzeichnis „/Users/Peter/Devel/buildgcc/gcc“ wird verlassen make[2]: *** [Makefile:4662: all-stage1-gcc] Fehler 2 make[2]: Verzeichnis „/Users/Peter/Devel/buildgcc“ wird verlassen make[1]: *** [Makefile:22008: stage1-bubble] Fehler 2 make[1]: Verzeichnis „/Users/Peter/Devel/buildgcc“ wird verlassen make: *** [Makefile:974: all] Fehler 2