Bug 220270

Summary: KDELibs fails to build on Fedora 12
Product: [Unmaintained] kdelibs Reporter: Ignat Semenov <i.semenov.kde>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED UPSTREAM    
Severity: normal CC: annma, konq-bugs, tsjoker
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ignat Semenov 2009-12-27 14:29:24 UTC
Version:            (using Devel)
Compiler:          gcc (GCC) 4.4.2 20091222 (Red Hat 4.4.2-20) 
OS:                Linux
Installed from:    Compiled sources

KDElibs fails to build with current SVN (and has been doing so for a month already).
Current revision which I'm trying to build is 1066549.
GCC version is: gcc (GCC) 4.4.2 20091222 (Red Hat 4.4.2-20)
Build hangs at the file called "SVGNames.o" (that is, the source file is "SVGNames.cpp") in KHTML directory. Qt is 4.6.0 from qt.nokia.com, but KDElibs didn't compile with the very same error using Qt 4.5.3 either. After some time GCC consumes about 1.5 Gb of RAM and then it OOMs, showing me the login screen. I guess there was a commit in KHTML regarding the file SVGNames.cpp that caused this problem, because I remember building KDE just fine a month or two ago, and then there was a commit, but I can't remember the number. A rebuild from scratch doesn't help.
[Possibly the commit is this one :
------------------------------------------------------------------------
r873529 | vtokarev | 2008-10-19 20:48:49 +0400 (Sun, 19 Oct 2008) | 1 line

Add svg dom from WebCore
------------------------------------------------------------------------
]
Comment 1 Ignat Semenov 2009-12-27 14:35:44 UTC
Erm, sorry, sure it was not the commit that introduced the problem, but there definitely was a commit that did.
Comment 2 Anne-Marie Mahfouf 2009-12-27 15:05:56 UTC
Please paste the whole last building line before the error and the error line from 
make VERBOSE=1

And what are your cmake arguments please?
Comment 3 Maksim Orlovich 2009-12-27 16:44:21 UTC
This is a bug in Fedora 12 version of gcc. Add -fno-var-tracking to workaround.

https://bugzilla.redhat.com/show_bug.cgi?id=538233 has the same bug in another spot.