Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 808905 - sys-devel/gcc: ICE when building kde-frameworks/kross-5.85.0 with -flto
Summary: sys-devel/gcc: ICE when building kde-frameworks/kross-5.85.0 with -flto
Status: RESOLVED DUPLICATE of bug 807598
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: 2021-08-18 17:11 UTC by Herb Miller Jr.
Modified: 2021-08-23 17:52 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge-info.txt,8.43 KB, text/plain)
2021-08-18 17:11 UTC, Herb Miller Jr.
Details
build.log (build.log,65 bytes, text/x-log)
2021-08-18 17:11 UTC, Herb Miller Jr.
Details
Actual build log (build.log,89.18 KB, text/x-log)
2021-08-18 17:13 UTC, Herb Miller Jr.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Herb Miller Jr. 2021-08-18 17:11:06 UTC
Not sure if it's actually a Qt w/LTO problem, but build log shows lto-specific build error.

Reproducible: Always
Comment 1 Herb Miller Jr. 2021-08-18 17:11:41 UTC
Created attachment 733901 [details]
emerge --info
Comment 2 Herb Miller Jr. 2021-08-18 17:11:49 UTC
Created attachment 733903 [details]
build.log
Comment 3 Herb Miller Jr. 2021-08-18 17:13:22 UTC
Created attachment 733905 [details]
Actual build log

I messed up posting the build log initially.

[39/47] : && /usr/bin/x86_64-pc-linux-gnu-g++ -fPIC -march=native -O2 -pipe -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -pedantic -Wzero-as-null-pointer-constant -Wmissing-include-dirs -fdiagnostics-color=always  -Wl,--no-undefined -Wl,--enable-new-dtags -Wl,-O1 -Wl,--as-needed -Wl,-Bsymbolic-functions -shared  -o bin/krossqtsplugin.so src/qts/CMakeFiles/krossqtsplugin.dir/krossqtsplugin_autogen/mocs_compilation.cpp.o src/qts/CMakeFiles/krossqtsplugin.dir/plugin.cpp.o src/qts/CMakeFiles/krossqtsplugin.dir/kross_qts_plugin_debug.cpp.o  -Wl,-rpath,/var/tmp/portage/kde-frameworks/kross-5.85.0/work/kross-5.85.0_build/bin:  bin/libKF5KrossCore.so.5.85.0  /usr/lib64/libQt5UiTools.a  /usr/lib64/libQt5Script.so.5.15.2  /usr/lib64/libQt5Widgets.so.5.15.2  /usr/lib64/libQt5Gui.so.5.15.2  /usr/lib64/libKF5I18n.so.5.85.0  /usr/lib64/libQt5Xml.so.5.15.2  /usr/lib64/libQt5Core.so.5.15.2  /usr/lib64//libQt5Widgets.so  /usr/lib64//libQt5Gui.so  /usr/lib64//libQt5Core.so  /usr/lib64//libQt5Widgets.so  /usr/lib64//libQt5Gui.so  /usr/lib64//libQt5Core.so  -lpthread  /usr/lib64/libGL.so && :
FAILED: bin/krossqtsplugin.so 
: && /usr/bin/x86_64-pc-linux-gnu-g++ -fPIC -march=native -O2 -pipe -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -pedantic -Wzero-as-null-pointer-constant -Wmissing-include-dirs -fdiagnostics-color=always  -Wl,--no-undefined -Wl,--enable-new-dtags -Wl,-O1 -Wl,--as-needed -Wl,-Bsymbolic-functions -shared  -o bin/krossqtsplugin.so src/qts/CMakeFiles/krossqtsplugin.dir/krossqtsplugin_autogen/mocs_compilation.cpp.o src/qts/CMakeFiles/krossqtsplugin.dir/plugin.cpp.o src/qts/CMakeFiles/krossqtsplugin.dir/kross_qts_plugin_debug.cpp.o  -Wl,-rpath,/var/tmp/portage/kde-frameworks/kross-5.85.0/work/kross-5.85.0_build/bin:  bin/libKF5KrossCore.so.5.85.0  /usr/lib64/libQt5UiTools.a  /usr/lib64/libQt5Script.so.5.15.2  /usr/lib64/libQt5Widgets.so.5.15.2  /usr/lib64/libQt5Gui.so.5.15.2  /usr/lib64/libKF5I18n.so.5.85.0  /usr/lib64/libQt5Xml.so.5.15.2  /usr/lib64/libQt5Core.so.5.15.2  /usr/lib64//libQt5Widgets.so  /usr/lib64//libQt5Gui.so  /usr/lib64//libQt5Core.so  /usr/lib64//libQt5Widgets.so  /usr/lib64//libQt5Gui.so  /usr/lib64//libQt5Core.so  -lpthread  /usr/lib64/libGL.so && :
lto1: internal compiler error: Segmentation fault
0xd86e17 internal_error(char const*, ...)
        ???:0
0xe7ba7e bp_unpack_string(data_in*, bitpack_d*)
        ???:0
0x12f3d60 cl_optimization_stream_in(data_in*, bitpack_d*, cl_optimization*)
        ???:0
0xe78b02 streamer_read_tree_bitfields(lto_input_block*, data_in*, tree_node*)
        ???:0
0xe754b4 lto_input_tree_1(lto_input_block*, data_in*, LTO_tags, unsigned int)
        ???:0
0xe76512 lto_input_scc(lto_input_block*, data_in*, unsigned int*, unsigned int*, bool)
        ???:0
0xe6d923 read_cgraph_and_symbols(unsigned int, char const**)
        ???:0
0x12f12c6 lto_main()
        ???:0
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
lto-wrapper: fatal error: /usr/bin/x86_64-pc-linux-gnu-g++ returned 1 exit status
compilation terminated.
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-08-18 17:15:29 UTC
See https://wiki.gentoo.org/wiki/Gcc-ICE-reporting-guide.
Comment 5 Sergei Trofimovich 2021-08-18 18:18:08 UTC
> 0xe7ba7e bp_unpack_string(data_in*, bitpack_d*)

Probably the same as https://bugs.gentoo.org/807598#c7 : libQt5UiTools.a was built by an older compiler. As a workaround you can try rebuilding /usr/lib64/libQt5UiTools.a:

    # emerge -v1 /usr/lib64/libQt5UiTools.a
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-08-23 17:52:03 UTC

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