Created attachment 650602 [details] build.log.xz Got this at trying to build gcc-9.3.0-r1 on my G4 DP. Tried to build a 2nd time and got exactly the same error. I tried to work through https://wiki.gentoo.org/wiki/Gcc-ICE-reporting-guide but failed to replicate the command as I only got "/var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/gcc-9.3.0/gcc/ggc-page.c:20:10: fatal error: config.h: No such file or directory" executing the command out from /var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/build. [...] /var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/build/./prev-gcc/xg++ -B/var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/build/./prev-gcc/ -B/usr/powerpc-unknown-linux-gnu/bin/ -nostdinc++ -B/var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/build/prev-powerpc-unknown-linux-gnu/libstdc++-v3/src/.libs -B/var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/build/prev-powerpc-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -isystem /var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/build/prev-powerpc-unknown-linux-gnu/libstdc++-v3/include/powerpc-unknown-linux-gnu -isystem /var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/build/prev-powerpc-unknown-linux-gnu/libstdc++-v3/include -isystem /var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/gcc-9.3.0/libstdc++-v3/libsupc++ -L/var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/build/prev-powerpc-unknown-linux-gnu/libstdc++-v3/src/.libs -L/var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/build/prev-powerpc-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -fno-PIE -c -fno-PIE -mcpu=7450 -pipe -O2 -fchecking=1 -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 -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/gcc-9.3.0/gcc -I/var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/gcc-9.3.0/gcc/. -I/var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/gcc-9.3.0/gcc/../include -I/var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/gcc-9.3.0/gcc/../libcpp/include -I/var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/gcc-9.3.0/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/gcc-9.3.0/gcc/../libdecnumber/dpd -I../libdecnumber -I/var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/gcc-9.3.0/gcc/../libbacktrace -o ggc-page.o -MT ggc-page.o -MMD -MP -MF ./.deps/ggc-page.TPo /var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/gcc-9.3.0/gcc/ggc-page.c during RTL pass: *stack_ptr_mod gimple-match.c: In function ‘bool gimple_simplify_MULT_EXPR(gimple_match_op*, gimple**, tree_node* (*)(tree), code_helper, tree, tree, tree)’: gimple-match.c:55148:1: internal compiler error: Segmentation fault 55148 | } | ^ 0x10849313 crash_signal /var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/gcc-9.3.0/gcc/toplev.c:326 0x103d10b0 rtl_verify_bb_pointers /var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/gcc-9.3.0/gcc/cfgrtl.c:2734 0x103d10b0 rtl_verify_flow_info_1 /var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/gcc-9.3.0/gcc/cfgrtl.c:2789 0x103d1ccb rtl_verify_flow_info /var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/gcc-9.3.0/gcc/cfgrtl.c:3034 0x103b2d27 verify_flow_info() /var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/gcc-9.3.0/gcc/cfghooks.c:263 0x10751e33 execute_function_todo /var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/gcc-9.3.0/gcc/passes.c:2009 0x10753023 execute_todo /var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/gcc-9.3.0/gcc/passes.c:2051 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://bugs.gentoo.org/> for instructions. make[3]: *** [Makefile:1118: gimple-match.o] Error 1 make[3]: *** Waiting for unfinished jobs.... rm gfortran.pod gcc.pod make[3]: Leaving directory '/var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/build/gcc' make[2]: *** [Makefile:4749: all-stage3-gcc] Error 2 make[2]: Leaving directory '/var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/build' make[1]: *** [Makefile:22385: stage3-bubble] Error 2 make[1]: Leaving directory '/var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/build' make: *** [Makefile:22460: bootstrap-lean] Error 2 * ERROR: sys-devel/gcc-9.3.0-r1::gentoo failed (compile phase): * emake failed I backed up gcc's build directory just in case.
Created attachment 650604 [details] emerge --info
if you're hitting this with a modern GCC (e.g. 9.4.0, but ideally a newer branch), let us know?
(In reply to Sam James from comment #2) > if you're hitting this with a modern GCC (e.g. 9.4.0, but ideally a newer > branch), let us know? Didn't encounter gcc build problems meanwhile on ppc. Atm I am chasing a kernel bug which happens during longer builds (https://bugzilla.kernel.org/show_bug.cgi?id=215389). Building/testing gcc natively on the G4 makes sense again, if anything, when this one gets fixed.