Hello, I tried to compile LTO kernel with latest gcc, applied patch by Jan http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57334#c6:
lto1: internal compiler error: in lto_symtab_prevailing_decl, at lto-symtab.c:644 0x783c63 lto_symtab_prevailing_decl(tree_node*) ../../gcc/lto-symtab.c:644 0x50afe4 lto_fixup_prevailing_decls ../../gcc/lto/lto.c:3220 0x50afe4 lto_fixup_decls ../../gcc/lto/lto.c:3284 0x50afe4 read_cgraph_and_symbols ../../gcc/lto/lto.c:3490 0x50afe4 lto_main() ../../gcc/lto/lto.c:3834 I commented gcc_checking_assert in Jan's patch and compilation was 'almost' successful: + sortextable vmlinux + /home/marxin/Programming/linux-andikleen/scripts/sortextable vmlinux Error: no main_extable_sort_needed symbol in file: vmlinux Both vmlinux1 and vmlinux2 were linker without any problem. ld --version GNU ld (Linux/GNU Binutils) 2.23.51.0.9.20130118 Build was done with Andi's kernel config and lto-3.9 branch of git repository. Thanks, Martin On 17 June 2013 19:51, Andi Kleen <a...@firstfloor.org> wrote: > > Current trunk cannot build LTO kernels now, with your patch, > as reported earlier. > > Please fix ASAP. I'm surprised that you checked in a patchkit > with such serious reported problems. > > -Andi > > > backup/lsrc/git/linux-lto-2.6/lib/decompress_unlzo.c: In function 'unlzo': > /backup/lsrc/git/linux-lto-2.6/lib/decompress_unlzo.c:79:8: internal compiler > error: in expand_expr_real_1, at expr.c:9361 > parse += 7; > ^ > 0x5ea175 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, > expand_modifier, rtx_def**) > ../../gcc/gcc/expr.c:9356 > 0x53fe49 expand_expr > ../../gcc/gcc/expr.h:444 > 0x53fe49 expand_gimple_stmt_1 > ../../gcc/gcc/cfgexpand.c:2283 > 0x53fe49 expand_gimple_stmt > ../../gcc/gcc/cfgexpand.c:2370 > 0x5408a8 expand_gimple_basic_block > ../../gcc/gcc/cfgexpand.c:4204 > 0x542996 gimple_expand_cfg > ../../gcc/gcc/cfgexpand.c:4723 > 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. > make[3]: *** [/home/ak/lsrc/git/obj-lto/ccUSzSrf.ltrans18.ltrans.o] Error 1 > > > > > > > > -- > a...@linux.intel.com -- Speaking for myself only.