https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60160
--- Comment #3 from Marc Glisse <glisse at gcc dot gnu.org> --- ISTR that building with CFLAGS_FOR_TARGET="-g -O2 -flto -ffat-lto-objects", same for CXXFLAGS_FOR_TARGET, and --disable-bootstrap used to complete, but now it fails during the link of .libs/libstdc++.so.6.0.21: lto1: fatal error: /tmp/ccRgW0QI.ltrans5.o: section _ZTVSd.localalias.316.lto_priv.752 is missing compilation terminated. lto-wrapper: fatal error: /tmp/gcc-lto/build/./gcc/xgcc returned 1 exit status compilation terminated. /usr/bin/ld: lto-wrapper failed collect2: error: ld returned 1 exit status I don't remember ever seeing that "section ... is missing" error before. Exact line I used: /data/repos/gcc/trunk/configure --prefix=/tmp/gcc-lto/inst --enable-languages=c,c++ --with-system-zlib --disable-nls --enable-libstdcxx-time=yes --disable-bootstrap --disable-libgomp --disable-libitm --disable-libquadmath --disable-libatomic --disable-libssp --disable-multilib --disable-libsanitizer --disable-libvtv --disable-libcilkrts