https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65559
--- Comment #5 from Rainer Emrich <rai...@emrich-ebersheim.de> --- Created attachment 35237 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35237&action=edit reproducer with temporaries $ gcc fprintf.c fprintf-lib.c main.c -fno-diagnostics-show-caret -fdiagnostics-color=never -w -O2 -flto -flto-partition=none -fno-tree-loop-distribute-patterns --save-temps -Wl,--allow-multiple-definition -lm -o fprintf.x7 lto1.exe: internal compiler error: in read_cgraph_and_symbols, at lto/lto.c:2960 libbacktrace could not find executable to open Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. lto-wrapper.exe: fatal error: D:\opt\devel\gnu\gcc\MINGW_NT\x86_64-w64-mingw32\mingw-w64-runtime-trunk-svn\gcc-5.0.0\bin\gcc.exe returned 1 exit status compilation terminated. d:/opt/devel/gnu/gcc/mingw_nt/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-5.0.0/bin/../lib/gcc/x86_64-w64-mingw32/5.0.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lto-wrapper failed collect2.exe: error: ld returned 1 exit status $ gcc -v Using built-in specs. COLLECT_GCC=D:\opt\devel\gnu\gcc\MINGW_NT\x86_64-w64-mingw32\mingw-w64-runtime-trunk-svn\gcc-5.0.0\bin\gcc.exe COLLECT_LTO_WRAPPER=d:/opt/devel/gnu/gcc/mingw_nt/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-5.0.0/bin/../libexec/gcc/x86_64-w64-mingw32/5.0.0/lto-wrapper.exe Target: x86_64-w64-mingw32 Configured with: ../../../../../../opt/devel/gnu/src/gcc-mingw-w64/gcc-5.0.0/configure --prefix=/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-5.0.0 --with-gnu-as --with-as=/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-5.0.0/bin/as --with-gnu-ld --with-ld=/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-5.0.0/bin/ld --build=x86_64-w64-mingw32 --enable-threads=posix --enable-languages=c,c++,fortran,java,lto,objc,obj-c++ --with-gmp-include=/opt/devel/SCRATCH/tmp.ZMSUJS8SO8/install/include --with-gmp-lib=/opt/devel/SCRATCH/tmp.ZMSUJS8SO8/install/lib64 --with-mpfr-include=/opt/devel/SCRATCH/tmp.ZMSUJS8SO8/install/include --with-mpfr-lib=/opt/devel/SCRATCH/tmp.ZMSUJS8SO8/install/lib64 --with-mpc-include=/opt/devel/SCRATCH/tmp.ZMSUJS8SO8/install/include --with-mpc-lib=/opt/devel/SCRATCH/tmp.ZMSUJS8SO8/install/lib64 --with-isl-include=/opt/devel/SCRATCH/tmp.ZMSUJS8SO8/install/include --with-isl-lib=/opt/devel/SCRATCH/tmp.ZMSUJS8SO8/install/lib64 --with-local-prefix=/opt/devel/tec/devel/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-5.0.0 --enable-libgomp --enable-fully-dynamic-string --disable-multilib --enable-checking=release --disable-werror --with-sysroot=/x86_64-w64-trunk Thread model: posix gcc version 5.0.0 20150403 (experimental) [trunk revision 221852] (GCC)