https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68799
--- Comment #2 from Bill Schmidt <wschmidt at gcc dot gnu.org> --- Hi Matthias, Attempted to recreate with powerpc64le-linux-gnu running on POWER8 using latest gcc-5-branch. I get a different failure within lto1; output shown below. This indicates a problem streaming in a var_decl. I expect there may be a problem using objects from your GCC within mine -- perhaps slight differences in how they're built? In any case, can you provide materials and instructions for building from source? The initial problem is a segfault in code that I wrote a couple of years back, so I'm the right person to look at it, provided I can reproduce it. Thanks, Bill wschmidt@genoa:~/src/pr68799/tst$ $GCC_INSTALL/bin/gcc -pthread -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wformat -Werror=format-security -fprofile-use -fprofile-correction -flto -fuse-linker-plugin -ffat-lto-objects -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -o python python.o -Wl,--whole-archive libpython2.7.a -Wl,--no-whole-archive -lpthread -ldl -lutil -L/usr/lib -lz -lm posixmodule.o (symbol from plugin): warning: the use of `tmpnam_r' is dangerous, better use `mkstemp' posixmodule.o (symbol from plugin): warning: the use of `tempnam' is dangerous, better use `mkstemp' lto1: internal compiler error: Segmentation fault 0x105cd9b3 crash_signal /home/wschmidt/gcc/gcc-5_3-base/gcc/toplev.c:383 0x1048ba24 lto_file_decl_data_get_var_decl /home/wschmidt/gcc/gcc-5_3-base/gcc/lto-streamer.h:1222 0x1048ba24 lto_input_tree_ref(lto_input_block*, data_in*, function*, LTO_tags) /home/wschmidt/gcc/gcc-5_3-base/gcc/lto-streamer-in.c:400 0x1048bc63 lto_input_tree_1(lto_input_block*, data_in*, LTO_tags, unsigned int) /home/wschmidt/gcc/gcc-5_3-base/gcc/lto-streamer-in.c:1442 0x10165d93 lto_read_decls /home/wschmidt/gcc/gcc-5_3-base/gcc/lto/lto.c:1990 0x10167c53 lto_file_finalize /home/wschmidt/gcc/gcc-5_3-base/gcc/lto/lto.c:2249 0x10167c53 lto_create_files_from_ids /home/wschmidt/gcc/gcc-5_3-base/gcc/lto/lto.c:2259 0x10167c53 lto_file_read /home/wschmidt/gcc/gcc-5_3-base/gcc/lto/lto.c:2300 0x10167c53 read_cgraph_and_symbols /home/wschmidt/gcc/gcc-5_3-base/gcc/lto/lto.c:3005 0x10167c53 lto_main() /home/wschmidt/gcc/gcc-5_3-base/gcc/lto/lto.c:3475 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. lto-wrapper: fatal error: /home/wschmidt/gcc/install/gcc-5_3-base/bin/gcc returned 1 exit status compilation terminated. /usr/bin/ld: lto-wrapper failed collect2: error: ld returned 1 exit status wschmidt@genoa:~/src/pr68799/tst$