Build aborts with: FAILED: PySide2/QtUiTools.cpython-310-x86_64-linux-gnu.so : && /usr/bin/x86_64-pc-linux-gnu-g++ -fPIC -O3 -pipe -march=native -fomit-frame-pointer -fopt-info-vec -fcf-protection=return -flto=auto -ffat-lto-objects -Wall -fvisibility=hidden -Wno-strict-aliasing -flto=auto -pthread -shared -o PySide2/QtUiTools.cpython-310-x86_64-linux-gnu.so P ySide2/QtUiTools/CMakeFiles/QtUiTools.dir/PySide2/QtUiTools/quiloader_wrapper.cpp.o PySide2/QtUiTools/CMakeFiles/QtUiTools.dir/PySide2/QtUiTools/qtuitools_module_wrapper.cpp.o -Wl,-rpath,/var/tmp/portage/dev-python/pyside2-5.15.9/work/pyside-setup-opensource-src-5.15.9/sources/pyside2_bu ild-python3_10/libpyside: libpyside/libpyside2-python3.10.so.5.15.8 plugins/libuiplugin.a /usr/lib64/libQt5UiTools.a /usr/lib64/libQt5Widgets.so.5.15.8 /usr/lib64/libshiboken2-python3.10.so.5.15.8 /usr/lib64/libQt5Gui.so.5.15.8 /usr/lib64/libQt5Core.so.5.15.8 -lQt5Widgets -lQt5Gu i -lQt5Core -lQt5Widgets -lQt5Gui -lQt5Core -lGL && : lto1: internal compiler error: Segmentation fault 0xd75173 crash_signal /usr/src/debug/sys-devel/gcc-13.0.1_pre20230409-r3/gcc-13-20230409/gcc/toplev.cc:314 0x7fc5e45685df ??? /usr/src/debug/sys-libs/glibc-2.37-r1/glibc-2.37/signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0 0x8bd220 bp_unpack_string(data_in*, bitpack_d*) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230409-r3/gcc-13-20230409/gcc/data-streamer-in.cc:112 0xc7c27f cl_optimization_stream_in(data_in*, bitpack_d*, cl_optimization*) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230409-r3/build/gcc/options-save.cc:13501 0xfeb513 streamer_read_tree_bitfields(lto_input_block*, data_in*, tree_node*) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230409-r3/gcc-13-20230409/gcc/tree-streamer-in.cc:562 0xbe071b lto_read_tree_1 /usr/src/debug/sys-devel/gcc-13.0.1_pre20230409-r3/gcc-13-20230409/gcc/lto-streamer-in.cc:1713 0xbe0c20 lto_read_tree /usr/src/debug/sys-devel/gcc-13.0.1_pre20230409-r3/gcc-13-20230409/gcc/lto-streamer-in.cc:1760 0xbe0c20 lto_input_tree_1(lto_input_block*, data_in*, LTO_tags, unsigned int) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230409-r3/gcc-13-20230409/gcc/lto-streamer-in.cc:1901 0xbe0e6b lto_input_scc(lto_input_block*, data_in*, unsigned int*, unsigned int*, bool) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230409-r3/gcc-13-20230409/gcc/lto-streamer-in.cc:1789 0x83f9d4 lto_read_decls /usr/src/debug/sys-devel/gcc-13.0.1_pre20230409-r3/gcc-13-20230409/gcc/lto/lto-common.cc:1908 0x83f9d4 lto_file_finalize /usr/src/debug/sys-devel/gcc-13.0.1_pre20230409-r3/gcc-13-20230409/gcc/lto/lto-common.cc:2288 0x83f9d4 lto_create_files_from_ids /usr/src/debug/sys-devel/gcc-13.0.1_pre20230409-r3/gcc-13-20230409/gcc/lto/lto-common.cc:2298 0x83f9d4 lto_file_read /usr/src/debug/sys-devel/gcc-13.0.1_pre20230409-r3/gcc-13-20230409/gcc/lto/lto-common.cc:2353 0x83f9d4 read_cgraph_and_symbols(unsigned int, char const**) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230409-r3/gcc-13-20230409/gcc/lto/lto-common.cc:2801 0x80e5d6 lto_main() /usr/src/debug/sys-devel/gcc-13.0.1_pre20230409-r3/gcc-13-20230409/gcc/lto/lto.cc:654 Please submit a full bug report, with preprocessed source (by using -freport-bug). 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/13/../../../../x86_64-pc-linux-gnu/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status
Created attachment 859998 [details] Full build.log (compressed)
Created attachment 859999 [details] build-python3_10.log (compressed)
Created attachment 860000 [details] build-python3_11.log (compressed)
Created attachment 860001 [details] emerge --info
Can't reproduce on: ~$ gcc --version gcc (Gentoo Hardened 13.0.1_pre20230409-r4 p9) 13.0.1 20230409 (experimental) Copyright (C) 2023 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Arsen, mine was -r3 not -r4 perhaps. landed that fixes the (In reply to Arsen Arsenović from comment #5) > Can't reproduce on: > > ~$ gcc --version > gcc (Gentoo Hardened 13.0.1_pre20230409-r4 p9) 13.0.1 20230409 (experimental) > Copyright (C) 2023 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Mine was "-r3" not "-r4" perhaps you have a patch with that version that fixes this issue. I am also unable to reproduce it with sys-devel/gcc-13.0.1_pre20230416. We can close it, nothing more to do, issue solved!