https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97172
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |--- Status|RESOLVED |REOPENED --- Comment #30 from Martin Liška <marxin at gcc dot gnu.org> --- I still cannot build the affected package: $ cat exiv.i int main_argc; void foo(char[main_argc + 1]) {} $ gcc exiv.i -flto -O2 -shared -fPIC lto1: internal compiler error: Segmentation fault 0xd3de6a crash_signal /home/marxin/Programming/gcc/gcc/toplev.c:327 0xbc84f4 stream_read_tree_ref(lto_input_block*, data_in*) /home/marxin/Programming/gcc/gcc/lto-streamer-in.c:1830 0xf8a648 lto_input_ts_exp_tree_pointers /home/marxin/Programming/gcc/gcc/tree-streamer-in.c:905 0xf8a648 streamer_read_tree_body(lto_input_block*, data_in*, tree_node*) /home/marxin/Programming/gcc/gcc/tree-streamer-in.c:1087 0xbc7c49 lto_read_tree_1 /home/marxin/Programming/gcc/gcc/lto-streamer-in.c:1700 0xbc85a1 lto_read_tree /home/marxin/Programming/gcc/gcc/lto-streamer-in.c:1741 0xbc85a1 lto_input_tree_1(lto_input_block*, data_in*, LTO_tags, unsigned int) /home/marxin/Programming/gcc/gcc/lto-streamer-in.c:1882 0xbc8857 lto_input_scc(lto_input_block*, data_in*, unsigned int*, unsigned int*, bool) /home/marxin/Programming/gcc/gcc/lto-streamer-in.c:1770 0xbc88df lto_input_tree(lto_input_block*, data_in*) /home/marxin/Programming/gcc/gcc/lto-streamer-in.c:1897 0xbcab0f streamer_read_chain /home/marxin/Programming/gcc/gcc/lto-streamer-in.c:1335 0xbcab0f input_function /home/marxin/Programming/gcc/gcc/lto-streamer-in.c:1365 0xbcab0f lto_read_body_or_constructor /home/marxin/Programming/gcc/gcc/lto-streamer-in.c:1621 0x8cfd91 cgraph_node::get_untransformed_body() /home/marxin/Programming/gcc/gcc/cgraph.c:3940 0x8dbfe1 cgraph_node::expand() /home/marxin/Programming/gcc/gcc/cgraphunit.c:1798 0x8dd73e expand_all_functions /home/marxin/Programming/gcc/gcc/cgraphunit.c:1995 0x8dd73e symbol_table::compile() /home/marxin/Programming/gcc/gcc/cgraphunit.c:2359 0x8dd73e symbol_table::compile() /home/marxin/Programming/gcc/gcc/cgraphunit.c:2270 0x8260c4 lto_main() /home/marxin/Programming/gcc/gcc/lto/lto.c:653 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. lto-wrapper: fatal error: gcc returned 1 exit status compilation terminated. /usr/bin/ld: fatal error: lto-wrapper failed collect2: error: ld returned 1 exit status