Failed to compile sys-devel/gcc-11.2.0. Here are the last lines: /var/tmp/portage/sys-devel/gcc-11.2.0/work/gcc-11.2.0/gcc/ira.c: In member function ‘execute’: /var/tmp/portage/sys-devel/gcc-11.2.0/work/gcc-11.2.0/gcc/ira.c:5976:24: internal compiler error: Segmentation fault 5976 | virtual unsigned int execute (function *) | ^ Please submit a full bug report, with preprocessed source if appropriate. See <https://bugs.gentoo.org/> for instructions. lto-wrapper: fatal error: /var/tmp/portage/sys-devel/gcc-11.2.0/work/build/./prev-gcc/xg++ returned 1 exit status compilation terminated. /usr/x86_64-pc-linux-gnu/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status make[3]: *** [/var/tmp/portage/sys-devel/gcc-11.2.0/work/gcc-11.2.0/gcc/c/Make-lang.in:87: cc1] Error 1 make[3]: Leaving directory '/var/tmp/portage/sys-devel/gcc-11.2.0/work/build/gcc' make[2]: *** [Makefile:5026: all-stagefeedback-gcc] Error 2 make[2]: Leaving directory '/var/tmp/portage/sys-devel/gcc-11.2.0/work/build' make[1]: *** [Makefile:24853: stagefeedback-bubble] Error 2 make[1]: Leaving directory '/var/tmp/portage/sys-devel/gcc-11.2.0/work/build' make: *** [Makefile:24873: profiledbootstrap] Error 2 * ERROR: sys-devel/gcc-11.2.0::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=sys-devel/gcc-11.2.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-11.2.0::gentoo'`. * The complete build log is located at '/var/tmp/portage/sys-devel/gcc-11.2.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-11.2.0/temp/environment'. * Working directory: '/var/tmp/portage/sys-devel/gcc-11.2.0/work/build' * S: '/var/tmp/portage/sys-devel/gcc-11.2.0/work/gcc-11.2.0' Reproducible: Always Steps to Reproduce: 1. emerge -avu sys-devel/gcc Actual Results: Compilation of the gcc:11 package failed with the "Segmentation fault" error. Expected Results: sys-devel/gcc-10.3.0-r2:10::gentoo successfully updated to sys-devel/gcc-11.2.0:11::gentoo I'm suspecting this happened because of USE="+lto" flag. Going to try to compile gcc:11 with "-lto" flag.
Created attachment 747543 [details] emerge --info
Created attachment 747546 [details] Build logs
Thanks for the report. Can you try following https://wiki.gentoo.org/wiki/Gcc-ICE-reporting-guide please? Thank you.
Sorry, I cannot reproduce the issue after reboot, sys-devel/gcc-11.2.0:11::gentoo compiled without any issues