[Bug lto/48042] lto segfaults while building Qt 4.7.2 with -g -flto -fwhole-program
bero at arklinux dot org
gcc-bugzilla@gcc.gnu.org
Wed Mar 9 16:28:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48042
bero at arklinux dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #23598|0 |1
is obsolete| |
Attachment #23601|0 |1
is obsolete| |
--- Comment #7 from bero at arklinux dot org 2011-03-09 16:27:45 UTC ---
Created attachment 23605
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23605
Much smaller test case
Small self-contained test case, source-only.
$ tar xzf bug48042.tar.gz
$ cd bug48042
$ ./bug48042.sh
In file included from
../../../include/QtCore/../../src/corelib/global/qglobal.h:899:0,
from :10:
../../../include/Qt3Support/../../src/qt3support/tools/q3glist.h: In member
function ‘count’:
../../../include/Qt3Support/../../src/qt3support/tools/q3glist.h:161:1:
internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: g++ returned 1 exit status
/usr/bin/ld: lto-wrapper failed
collect2: ld returned 1 exit status
The problem goes away if -g is added to the first compiler invocation as well
-- lto seems to fall over some constructs if linking is done with -g but an
object file was built without -g.
More information about the Gcc-bugs
mailing list