Opened 9 months ago
Last modified 7 months ago
#69325 new defect
gcc10-bootstrap @10.5.0 does not build on PPC Tiger, Mac OS X 10.4.11, because of "trying to instantiate ‘template<class T> struct wi::int_traits’"
Reported by: | ballapete (Peter "Pete" Dyballa) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.9.1 |
Keywords: | tiger ppc | Cc: | kirill@…, ballapete (Peter "Pete" Dyballa) |
Port: | gcc10-bootstrap |
Description
/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/fold-const.h:227: warning: ‘class operand_compare’ has virtual functions but non-virtual destructor /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/bins/g++ -arch ppc -std=gnu++98 -fno-PIE -c -DIN_GCC_FRONTEND -g -mdynamic-no-pic -DIN_GCC -fno-strict-aliasing -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -fno-common -DHAVE_CONFIG_H -I. -Ic -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/c -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/../include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/../libcpp/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/build-ppc/./gmp -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gmp -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/build-ppc/./mpfr/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/mpfr/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/mpc/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/../libdecnumber -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/../libdecnumber/dpd -I../libdecnumber -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/../libbacktrace -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/build-ppc/./isl/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/isl/include -o c/c-parser.o -MT c/c-parser.o -MMD -MP -MF c/.deps/c-parser.TPo /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/c/c-parser.c cc1plus: warning: -Wmissing-format-attribute ignored without -Wformat /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/fold-const.h:227: warning: ‘class operand_compare’ has virtual functions but non-virtual destructor /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/c/c-parser.c: In function ‘tree_node* c_parser_omp_context_selector(c_parser*, tree_node*, tree_node*)’: /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/c/c-parser.c:20158: error: ‘c_parser_omp_context_selector(c_parser*, tree_node*, tree_node*)::<anonymous enum>’ is/uses anonymous type /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/c/c-parser.c:20158: error: trying to instantiate ‘template<class T> struct wi::int_traits’ /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/c/c-parser.c:20168: error: ‘c_parser_omp_context_selector(c_parser*, tree_node*, tree_node*)::<anonymous enum>’ is/uses anonymous type /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/c/c-parser.c:20168: error: trying to instantiate ‘template<class T> struct wi::int_traits’ /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/c/c-parser.c:20325: error: ‘c_parser_omp_context_selector(c_parser*, tree_node*, tree_node*)::<anonymous enum>’ is/uses anonymous type /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/c/c-parser.c:20325: error: trying to instantiate ‘template<class T> struct wi::int_traits’ /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/c/c-parser.c:20326: error: ‘c_parser_omp_context_selector(c_parser*, tree_node*, tree_node*)::<anonymous enum>’ is/uses anonymous type /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/c/c-parser.c:20326: error: trying to instantiate ‘template<class T> struct wi::int_traits’ /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/c/c-parser.c:20327: error: ‘c_parser_omp_context_selector(c_parser*, tree_node*, tree_node*)::<anonymous enum>’ is/uses anonymous type /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/c/c-parser.c:20327: error: trying to instantiate ‘template<class T> struct wi::int_traits’ make[3]: *** [c/c-parser.o] Error 1 make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/build-ppc/gcc' make[2]: *** [all-stage1-gcc] Error 2
Attachments (1)
Change History (8)
Changed 9 months ago by ballapete (Peter "Pete" Dyballa)
comment:2 Changed 9 months ago by ballapete (Peter "Pete" Dyballa)
Cc: | ballapete added |
---|
comment:3 Changed 7 months ago by kencu (Ken)
I get the same error building gcc10-bootstrap on 10.4 ppc.
gcc10-bootstrap is a necessary step for moving 10.4 and 10.5 to gcc13 as a default gcc version, so we'll need to sort this out to do do that.
comment:4 Changed 7 months ago by kencu (Ken)
gcc10.5.0 does build on Tiger PPC, so I'll try building gcc10-bootstrap without all the added patches and see if that works.
comment:5 Changed 7 months ago by kencu (Ken)
nope - deleting all the patchfiles makes no difference. Fails in exactly the same way.
comment:6 Changed 7 months ago by kencu (Ken)
building gcc10-bootstrap with gcc7 instead of apple-gcc42 does get past this build error.
The build of gcc10-bootstrap then fails later anyway due to other issues that look related to using muniversal, but that is for another ticket.
Iain is not going to spend any time figuring out how to build gcc10 with apple-gcc42 these days (he doesn't test gcc on Tiger at all any more) -- so I guess that means we would probably need a new stepping stone here to get from apple-gcc42 to gcc10-bootstrap.
It can't be our existing gcc7 port, as that is part of the gcc mix and so leads to a circular dependency.
Maybe one of those pre-gcc5 versions like gcc48 might fit the bill.
comment:7 Changed 7 months ago by kencu (Ken)
No, it looks like all the gcc versions > apple-gcc42 wind up depending on the newer libgccN ports so all of them will have circular deps.
Well, hopefully somehow that is not really the case. Because if it is the case, then we'll need another bootstrap gcc, like gcc7-bootstrap. And then this gets messy.
Perhaps too messy. Maybe it's time Tiger had a peaceful passing into the nether world.
Main.log from PPC Tiger, Mac OS X 10.4.11