https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88516
Bug ID: 88516 Summary: Internal LTO error when linking against static libSFML Product: gcc Version: 8.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: krzysio.kurek at wp dot pl CC: marxin at gcc dot gnu.org Target Milestone: --- sysinfo: gcc (SUSE Linux) 8.2.1 20181108 [gcc-8-branch revision 265914] OpenSUSE Tumbleweed 20181213 GCC configuration: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,ada,go --enable-offload-targets=hsa,nvptx-none=/usr/nvptx-none, --without-cuda-driver --enable-checking=release --disable-werror --with-gxx-include-dir=/usr/include/c++/8 --enable-ssp --disable-libssp --disable-libvtv --disable-cet --disable-libcc1 --enable-plugin --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --with-slibdir=/lib64 --with-system-zlib --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --with-gcc-major-version-only --enable-linker-build-id --enable-linux-futex --enable-gnu-indirect-function --program-suffix=-8 --without-system-libunwind --enable-multilib --with-arch-32=x86-64 --with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux exact commandline: g++ main.cpp /usr/local/lib/libsfml-graphics-s.a /usr/local/lib/libsfml-window-s.a /usr/local/lib/libsfml-system-s.a -lpthread -lrt /usr/lib64/libudev.so /usr/lib64/libOpenGL.so /usr/lib64/libX11.so /usr/lib64/libXrandr.so /usr/lib64/libfreetype.so error message: lto1: internal compiler error: in add_symbol_to_partition_1, at lto/lto-partition.c:155 Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.opensuse.org/> for instructions. lto-wrapper: fatal error: g++ returned 1 exit status compilation terminated. /usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status Happens with a locally compiled SFML, commit b9fdaf487f878fac17c3d4c1182acd8c4182eecc, with LTO enabled and compiled to static libraries.