http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52159
Bug #: 52159 Summary: ICE when building qemu with GCC 4.7 trunk: cannot read LTO decls Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassig...@gcc.gnu.org ReportedBy: m...@use.net Using the attached tarball, which is the Ubuntu source package configured with CFLAGS="-O3 -flto -floop-block -floop-interchange" and LDFLAGS="-O3 -flto": matt@matt-desktop:~/src/qemu-linaro-1.0.50-2012.01$ dh_auto_build -B system-build dh_auto_build: warning: line 1 of /home/matt/.config/dpkg/buildflags.conf mentions unknown flag BUILD_CONFIG dh_auto_build: warning: line 5 of /home/matt/.config/dpkg/buildflags.conf is invalid, it has been ignored. LINK x86_64-softmmu/qemu-system-x86_64 lto1: error: two or more sections for .gnu.lto_fprintf.4f35e9dac4cf72f5 lto1: internal compiler error: cannot read LTO decls from /tmp/cc9TN5Ma.ltrans1.o Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. lto-wrapper: gcc returned 1 exit status /usr/bin/ld.gold.real: fatal error: lto-wrapper failed collect2: error: ld returned 1 exit status make[1]: *** [qemu-system-x86_64] Error 1 make: *** [subdir-x86_64-softmmu] Error 2 dh_auto_build: make -j1 returned exit code 2 matt@matt-desktop:~/src/qemu-linaro-1.0.50-2012.01$ gcc --version gcc (GCC) 4.7.0 20120207 (experimental) Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. matt@matt-desktop:~/src/qemu-linaro-1.0.50-2012.01$ ld --version GNU gold (GNU Binutils for Ubuntu 2.22) 1.11 Copyright 2011 Free Software Foundation, Inc.