https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65588
Bug ID: 65588 Summary: lto1: internal compiler error: Segmentation fault Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: nheghathivhistha at gmail dot com Created attachment 35152 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35152&action=edit Preprocessed source file gzipped Gcc trunk revision 221643 ICEs during Lisp package compilation. LANG=C LC_ALL=C gcc -flto=4 -fuse-linker-plugin -O2 -g -pipe -march=core2 -mtune=core2 -Wa,--noexecstack -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O -falign-functions=4 -pthread -DENABLE_UNICODE -DMULTITHREAD -DPOSIX_THREADS -DDYNAMIC_FFI -I. -Wl,-flto -fuse-linker-plugin -Wl,--as-needed -Wl,-O2 -Wl,--sort-common -Wl,--hash-style=gnu -O2 -g -pipe -march=core2 -mtune=core2 spvw.i -r -nostdlib In file included from ../src/spvw.d:927:0: ../src/spvw_garcol.d: In function 'fill_varobject_heap_holes': ../src/spvw_garcol.d:1764:15: warning: comparison is always false due to limited range of data type [-Wtype-limits] if (len > arraysize_limit_1) { ^ ../src/spvw.d: In function 'main_actions': ../src/spvw.d:3487:36: warning: variable 'fileptr' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] var const argv_compile_file_t* fileptr = &p->argv_compile_files[0]; ^ ../src/spvw.d:3488:15: warning: variable 'count' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] var uintL count = p->argv_compile_filecount; ^ ../src/spvw.d:3469:13: warning: variable 'count' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] var uintL count = p->argv_init_filecount; ^ lto1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <https://bugs.gentoo.org/> for instructions. make: *** [/tmp/ccA7URan.ltrans16.ltrans.o] Error 1 make: *** Waiting for unfinished jobs.... lto-wrapper: fatal error: make returned 2 exit status compilation terminated. /usr/lib/gcc/x86_64-pc-linux-gnu/4.10.0-pre20150323/../../../../x86_64-pc-linux-gnu/bin/ld: lto-wrapper failed collect2: error: ld returned 1 exit status gcc -flto=4 -fuse-linker-plugin -O2 -g -pipe -march=core2 -mtune=core2 -Wa,--noexecstack -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O -falign-functions=4 -pthread -DENABLE_UNICODE -DMULTITHREAD -DPOSIX_THREADS -DDYNAMIC_FFI -I. -Wl,-flto -fuse-linker-plugin -Wl,--as-needed -Wl,-O2 -Wl,--sort-common -Wl,--hash-style=gnu -O2 -g -pipe -march=core2 -mtune=core2 spvw.o spvwtabf.o spvwtabs.o spvwtabo.o eval.o control.o encoding.o pathname.o stream.o socket.o io.o funarg.o array.o hashtabl.o list.o package.o record.o weak.o sequence.o charstrg.o debug.o error.o misc.o time.o predtype.o symbol.o lisparit.o i18n.o foreign.o unixaux.o zthread.o built.o modules.o /usr/lib64/libreadline.so -lncurses -ldl /usr/lib64/libavcall.so /usr/lib64/libcallback.so -L/usr/lib64 -lsigsegv -L/usr/lib64 -lc libgnu_cl.a -o lisp.run ../src/eval.d: In function 'funcall_iclosure': ../src/eval.d:2463:45: warning: argument 'closure' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] local maygc Values funcall_iclosure (object closure, gcv_object_t* args_pointer, ^ ../src/eval.d:2464:44: warning: argument 'argcount' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] uintC argcount) ^ ../src/eval.d: In function 'eval_no_hooks': ../src/eval.d:2994:43: warning: argument 'form' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] global maygc Values eval_no_hooks (object form) { ^ ../src/eval.d: In function 'eval': ../src/eval.d:2939:34: warning: argument 'form' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] modexp maygc Values eval (object form) ^ ../src/record.d: In function 'update_instance': ../src/record.d:1409:62: warning: argument 'obj' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] global maygc object update_instance (object user_obj, object obj) { ^ ../src/stream.d: In function 'handle_isset': ../src/stream.d:14457:45: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized] if (!nullp(status_cons)) Cdr(status_cons) = ret; ^ ../src/stream.d:14421:21: note: 'ret' was declared here var object sock, ret; ^ ../src/io.d: In function 'C_bit_vector_reader': ../src/io.d:3271:10: warning: 'ch' may be used uninitialized in this function [-Wmaybe-uninitialized] if (chareq(ch,ascii('0'))) { ^ ../src/io.d:3266:16: note: 'ch' was declared here var chart ch; /* last character ('0' or '1') */ ^ ../src/io.d: In function 'C_vector_reader': ../src/io.d:3328:15: warning: 'el' may be used uninitialized in this function [-Wmaybe-uninitialized] *vptr++ = el; ^ ../src/io.d:3322:17: note: 'el' was declared here var object el; /* last Element */ ^ ../src/eval.d: In function 'invoke_handlers': ../src/eval.d:713:23: warning: variable 'other_ranges' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] var stack_range_t* other_ranges = inactive_handlers; ^ ../src/eval.d:716:22: warning: variable 'FRAME' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] var gcv_object_t* FRAME = STACK; ^ ../src/eval.d:729:20: warning: variable 'i' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] var uintL i = 0; ^ ../src/control.d: In function 'C_tagbody': ../src/control.d:1596:15: warning: variable 'body' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] var object body = popSTACK(); ^ ../src/stream.d: In function 'close_ochannel': ../src/stream.d:5853:41: warning: argument 'stream' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] local maygc void close_ochannel (object stream, uintB abort) { ^ ../src/zthread.d: In function 'C_thread_join': ../src/zthread.d:557:13: warning: variable 'timeout' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] var bool timeout=false; ^ ../src/spvw.d: In function 'main_actions': ../src/spvw.d:3487:39: warning: variable 'fileptr' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] var const argv_compile_file_t* fileptr = &p->argv_compile_files[0]; ^ ../src/spvw.d:3488:18: warning: variable 'count' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] var uintL count = p->argv_compile_filecount; ^ ../src/spvw.d:3469:16: warning: variable 'count' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] var uintL count = p->argv_init_filecount; ^ At top level: lto1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <https://bugs.gentoo.org/> for instructions. make[1]: *** [/var/tmp/portage/dev-lisp/clisp-2.49-r8/temp/ccg1ub9O.ltrans19.ltrans.o] Error 1 make[1]: *** Waiting for unfinished jobs.... ../src/array.d: In function 'C_make_array': ../src/array.d:4713:17: warning: 'fillpointer' may be used uninitialized in this function [-Wmaybe-uninitialized] *dimptr++ = fillpointer; ^ ../src/array.d:4613:14: note: 'fillpointer' was declared here var uintL fillpointer; ^ ../src/array.d: In function 'C_adjust_array': ../src/array.d:5045:19: warning: 'fillpointer' may be used uninitialized in this function [-Wmaybe-uninitialized] *dimptr = fillpointer; ^ ../src/array.d:4935:14: note: 'fillpointer' was declared here var uintL fillpointer; ^ lto-wrapper: fatal error: make returned 2 exit status compilation terminated. /usr/lib/gcc/x86_64-pc-linux-gnu/4.10.0-pre20150323/../../../../x86_64-pc-linux-gnu/bin/ld: lto-wrapper failed collect2: error: ld returned 1 exit status Makefile:1729: recipe for target 'lisp.run' failed make: *** [lisp.run] Error 1 * ERROR: dev-lisp/clisp-2.49-r8::gentoo failed (compile phase): * emake failed