Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832943 - [loongson-overlay] sys-devel/gcc-12.0.0_pre9999: internal compiler error: in output_constructor_regular_field, at varasm.cc:5512
Summary: [loongson-overlay] sys-devel/gcc-12.0.0_pre9999: internal compiler error: in ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: Other Linux
: Normal normal (vote)
Assignee: WANG Xuerui
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-08 17:25 UTC by HougeLangley
Modified: 2022-02-11 02:11 UTC (History)
3 users (show)

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


Attachments
emerge full build log (build.log,264.16 KB, text/plain)
2022-02-08 17:26 UTC, HougeLangley
Details
emerge --info (emerge --info qtcore.log,5.75 KB, text/plain)
2022-02-08 17:27 UTC, HougeLangley
Details
emerge -pqv (emerge -pqv.log,224 bytes, text/plain)
2022-02-08 17:27 UTC, HougeLangley
Details

Note You need to log in before you can comment on or make changes to this bug.
Description HougeLangley 2022-02-08 17:25:48 UTC
/var/tmp/portage/dev-qt/qtcore-5.15.2-r14/work/qtbase-f4ac0b55c37f2b594ffbe639db43dac365825c7c/src/corelib/codecs/qtextcodec.cpp:1276:1: internal compiler error: in output_constructor_regular_field, at varasm.cc:5512

Detail in build.log
Comment 1 HougeLangley 2022-02-08 17:26:22 UTC
Created attachment 764630 [details]
emerge full build log
Comment 2 HougeLangley 2022-02-08 17:27:00 UTC
Created attachment 764631 [details]
emerge --info
Comment 3 HougeLangley 2022-02-08 17:27:15 UTC
Created attachment 764632 [details]
emerge -pqv
Comment 4 WANG Xuerui gentoo-dev 2022-02-09 01:41:53 UTC
Hi,

I believe this is https://github.com/loongson/gcc/issues/77 (I don't seem to have permission to append to the See Also field).

The problem is related to faulty LoongArch codegen patterns that only come into effect when optimizations are enabled, which caused miscompilation of GCC itself. Curiously, this bug allows bootstrap to succeed, but causes problems when compiling packages later, including but not limited to poppler, llvm and qtcore that you have mentioned.

As the bug is definitely inside Loongson's gcc fork, I think it's nonexistent upstream after all, and that we should continue discussion on the Loongson fork issue instead.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-02-09 02:38:58 UTC
(Hi HougeLangley, as I noted before, please make clear you're using loongarch up front to avoid confusion. Thanks!)
Comment 6 WANG Xuerui gentoo-dev 2022-02-09 03:49:53 UTC
The issue is under investigation by the Loongson toolchain team.
Comment 7 WANG Xuerui gentoo-dev 2022-02-11 02:11:43 UTC
The underlying issue has been fixed in Loongson's loongarch_upstream_v6.2 branch, which has been integrated in ::loongson via https://github.com/xen0n/loongson-overlay/commit/8e59f116b2b1e8b68f41aebea4fce11a904a066f. Just sync ::loongson and re-emerge your gcc to get the fix.