https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65828
--- Comment #9 from robertgjenssen at gmail dot com --- The following apply to the log file attached in comment 8 (they got lost when I added the attachment): I triggered a similar problem by trying to build current octave sources with LTO and address-sanitizer: hg clone http://hg.savannah.gnu.org/hgweb/octave/ cd octave ./bootstrap mkdir build cd build export CFLAGS="-O3 -march=nehalem -flto -ffat-lto-objects" export CXXFLAGS="-O3 -march=nehalem -flto -ffat-lto-objects" ../configure --without-fltk --disable-java --enable-bounds-check \ --disable-docs --enable-address-sanitizer-flags \ --prefix=/usr/local/octave --program-prefix=asan- make -j 6 My uname and gcc version are: build# uname -a Linux morgawr 4.4.9-300.fc23.x86_64 #1 SMP Wed May 4 23:56:27 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux build# g++ -v Using built-in specs. COLLECT_GCC=/usr/bin/g++ COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/5.3.1/lto-wrapper Target: x86_64-redhat-linux Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --disable-libgcj --with-isl --enable-libmpx --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux Thread model: posix gcc version 5.3.1 20160406 (Red Hat 5.3.1-6) (GCC) The build fails with: lto1: internal compiler error: in streamer_get_builtin_tree, at tree-streamer-in.c:1164 Please submit a full bug report, with preprocessed source if appropriate. See <http://bugzilla.redhat.com/bugzilla> for instructions. lto-wrapper: fatal error: /usr/bin/g++ returned 1 exit status compilation terminated. /usr/bin/ld: lto-wrapper failed collect2: error: ld returned 1 exit status A log file is attached.