Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 751607 - sys-devel/gcc-10.2.0-r2: ICE when building kde-plasma/plasma-integration-5.20.2 with LTO
Summary: sys-devel/gcc-10.2.0-r2: ICE when building kde-plasma/plasma-integration-5.20...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-28 16:23 UTC by manfred.malmros
Modified: 2020-10-29 22:33 UTC (History)
2 users (show)

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


Attachments
Build log (build.log,75.25 KB, text/x-log)
2020-10-28 16:23 UTC, manfred.malmros
Details

Note You need to log in before you can comment on or make changes to this bug.
Description manfred.malmros 2020-10-28 16:23:26 UTC
Created attachment 668987 [details]
Build log

Don't know if this is a problem I caused, but i recently re-emerged gcc with the zstd and lto use-flags. Now when i tried to emerge a new version of plasma-integration, I got an ICE regarding zstd. It could just be that I've messed something up, but I couldn't really find any info online to help me. I am also using the lto-overlay, but I couldn't find any connection between it and the error.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-29 21:18:29 UTC
Please see https://wiki.gentoo.org/wiki/Gcc-ICE-reporting-guide and follow this.

In particular, but not limited to this, we need a minimal set of CFLAGS and expanded -march=native (see the wiki).
Comment 2 Andreas Sturmlechner gentoo-dev 2020-10-29 21:24:31 UTC
Unsure what kde proj is supposed to do with this.

If you think there is an issue here, contact upstream and provide a patch. Otherwise don't run these flags.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-29 22:02:13 UTC
I'll drop zstd from summary in case it is not exclusively the issue. The issue won't likely be USE=lto on gcc, just the flags.

asturm is of course right, but it's worth noting that an ICE should never happen anyway (gcc should bail out earlier if something is invalid).
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2020-10-29 22:21:27 UTC
"""
during IPA pass: static-var
lto1: internal compiler error: original not compressed with zstd
during IPA pass: static-var
lto1: internal compiler error: original not compressed with zstd
during IPA pass: materialize-all-clones
lto1: internal compiler error: original not compressed with zstd
"""

That's an odd error. As if intermediate objects were compiled wjth gcc[zstd] and final phase was ran with with gcc[-zstd] (or something destroyed lto bytecode). 

I suspect /usr/lib64/libQt5ThemeSupport.a was built differently (why does it get linked in statically?)

1. What does 'gcc -v' tell you?
2. Does the error go away if you rebuild /usr/lib64/libQt5ThemeSupport.a? 'emerge -v1 /usr/lib64/libQt5ThemeSupport.a' should do it.
Comment 5 manfred.malmros 2020-10-29 22:33:49 UTC
I don't know what the problem was, but I tried again just now, and it worked. I guess I just needed a restart? Anyway, I guess I'll close this now.