This version crashes on multiple packages (app-text/calibre-5.44.0-r1, dev-qt/qtwayland--5.15.8-r2, dev-qt/qtbluetooth-5.15.8-r1), and while compiling catch2 tests in debug builds. Example compiler output for catch2: during RTL pass: final ../../../../../../var/portage/tmp/portage/dev-cpp/catch-3.0.1/work/Catch2-3.0.1_build/./src/catch2/reporters/catch_reporter_console.cpp: In member function ‘benchmarkEnded’: ../../../../../../var/portage/tmp/portage/dev-cpp/catch-3.0.1/work/Catch2-3.0.1_build/./src/catch2/reporters/catch_reporter_console.cpp:477:1: internal compiler error: in ix86_print_operand_address_as, at config/i386/i386.cc:13872 ICE in ix86_print_operand_address_as in all other cases Reproducible: Always
Turns out it is caused by LTO (i.e. rebuilding static libraries helps), but why then compiler or LTO version was not increased?
Confirming that this happened to me too with dev-qt/qtwayland-5.15.8-r2 with a similar message: # grep -B2 'internal compiler error' /var/tmp/ram/portage/dev-qt/qtwayland-5.15.8-r2/temp/build.log during RTL pass: final /var/tmp/ram/portage/dev-qt/qtgui-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/src/platformsupport/fontdatabases/freetype/qfontengine_ft.cpp: In member function ‘boundingBox’: /var/tmp/ram/portage/dev-qt/qtgui-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/src/platformsupport/fontdatabases/freetype/qfontengine_ft.cpp:1782:1: internal compiler error: in ix86_print_operand_address_as, at config/i386/i386.cc:13872 -- during RTL pass: final /var/tmp/ram/portage/dev-qt/qtgui-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/src/platformsupport/input/xkbcommon/qxkbcommon.cpp: In function ‘lookupString’: /var/tmp/ram/portage/dev-qt/qtgui-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/src/platformsupport/input/xkbcommon/qxkbcommon.cpp:449:1: internal compiler error: in ix86_print_operand_address_as, at config/i386/i386.cc:13872 # cat /var/db/pkg/sys-devel/gcc-12.2.1_p20230304/USE abi_x86_64 amd64 cxx elibc_glibc fortran graphite kernel_linux lto multilib nls nptl openmp pgo pie sanitize ssp userland_GNU dev-qt/qtgui-5.15.8-r3 was emerged on my system before sys-devel/gcc-12.2.1_p20230304.
Please always include the full build.log (one of the several broken packages, please) and emerge --info. I think it happens on occasion that someone backports a commit which changes internal state but doesn't crank the version.
Created attachment 857091 [details] dev-qt/qtwayland-5.15.8-r3 build log
Created attachment 857093 [details] emerge --info
Thanks. *** This bug has been marked as a duplicate of bug 900519 ***