Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 900461 - sys-devel/gcc-12.2.1_p20230304 multiple ICEs
Summary: sys-devel/gcc-12.2.1_p20230304 multiple ICEs
Status: RESOLVED DUPLICATE of bug 900519
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-09 07:37 UTC by Eugene Shalygin
Modified: 2023-03-11 15:11 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-qt/qtwayland-5.15.8-r3 build log (build.log.zst,12.76 KB, application/zstd)
2023-03-10 07:27 UTC, Eugene Shalygin
Details
emerge --info (emerge-info,13.95 KB, text/plain)
2023-03-10 07:28 UTC, Eugene Shalygin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Shalygin 2023-03-09 07:37:45 UTC
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
Comment 1 Eugene Shalygin 2023-03-09 07:42:43 UTC
Turns out it is caused by LTO (i.e. rebuilding static libraries helps), but why then compiler or LTO version was not increased?
Comment 2 setun.90 2023-03-09 08:38:47 UTC
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.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-09 08:41:33 UTC
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.
Comment 4 Eugene Shalygin 2023-03-10 07:27:47 UTC
Created attachment 857091 [details]
dev-qt/qtwayland-5.15.8-r3 build log
Comment 5 Eugene Shalygin 2023-03-10 07:28:34 UTC
Created attachment 857093 [details]
emerge --info
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-11 15:11:39 UTC
Thanks.

*** This bug has been marked as a duplicate of bug 900519 ***