Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4420 - Can't emerge kdelibs-3.0.1.20020604.ebuild
Summary: Can't emerge kdelibs-3.0.1.20020604.ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Dan Armak (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-02 03:52 UTC by Csaba Kiss
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Csaba Kiss 2002-07-02 03:52:47 UTC
I have been trying to emerge kde for almost a week now. I used the stage 2 1.3b  test release. After a 
successfull emerge system. I emerged xfree and then I emerged even gnome 2 without a hitch. KDE 
does not want to compile. I have tried with different CXX flags:

CHOST="i686-pc-linux-gnu" 

CFLAGS="-march=i686 -fomit-frame-pointer -O3 -pipe" 
CXXFLAGS="-march=i686 -fomit-frame-
pointer -O3 -pipe"

It stops with these error messages:

kfilemetainfo.cpp: In member 
function `bool KFileMetaInfo::applyChanges()': 
kfilemetainfo.cpp:575: internal 
error: Segmentation fault 
Please submit a full bug report, 
with preprocessed source if 
appropriate. 
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. 

make[3]: *** [libksycoca_la.all_cpp.lo] Error 1 
make[3]: Leaving directory 
`/var/tmp/portage/kdelibs-3.0.1.20020604/work/kdelibs-3.0.1/kio/kio' 
make[2]: *** 
[all-recursive] Error 1 
make[2]: Leaving directory `/var/tmp/portage/kdelibs-
3.0.1.20020604/work/kdelibs-3.0.1/kio' 
make[1]: *** [all-recursive] Error 1 
make[1]: 
Leaving directory `/var/tmp/portage/kdelibs-3.0.1.20020604/work/kdelibs-3.0.1' 
make: 
*** [all-recursive-am] Error 2 

!!! ERROR: The ebuild did not complete successfully. 
!!! 
Function kde_src_compile, Line -3922, Exitcode 2 
!!! died running emake, 
kde_src_compile:make 

!!! emerge aborting on /usr/portage/kde-base/kdelibs/kdelibs-
3.0.1.20020604.ebuild.

After this I tried the safer flags:

CHOST="i686-pc-linux-gnu" 

CFLAGS="-mcpu=i686 -O3 -pipe" 
CXXFLAGS="-mcpu=i686 -O3 -pipe"

Even with these I get these 
messages:

khtml_part.cpp: In member function `void 
KHTMLPart::slotChildURLRequest(const KU 
RL&, const KParts::URLArgs&)': 

khtml_part.cpp:3087: internal error: Segmentation fault 
Please submit a full bug 
report, 
with preprocessed source if appropriate. 
See 
<URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. 
make[3]: *** 
[libkhtml_la.all_cpp.lo] Error 1 
make[3]: Leaving directory `/var/tmp/portage/kdelibs-
3.0.1.20020604/work/kdelibs 
-3.0.1/khtml' 
make[2]: *** [all-recursive] Error 1 

make[2]: Leaving directory `/var/tmp/portage/kdelibs-3.0.1.20020604/work/kdelibs 
-
3.0.1/khtml' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory 
`/var/tmp/portage/kdelibs-3.0.1.20020604/work/kdelibs 
-3.0.1' 
make: *** [all-
recursive-am] Error 2 

!!! ERROR: The ebuild did not complete successfully. 
!!! Function 
kde_src_compile, Line -3922, Exitcode 2 
!!! died running emake, kde_src_compile:make 


!!! emerge aborting on /usr/portage/kde-base/kdelibs/kdelibs-3.0.1.20020604.ebu 

ild .
Comment 1 Dan Armak (RETIRED) gentoo-dev 2002-07-03 13:53:10 UTC
KDE is probably the heaviest compile in portage (though not the longest). I.e.   
it uses the most memory and strains your cpu to its limit. Which makes some   
hardware problems show up in kde compiles, but not in other compiles. This is  
accerbated with gcc3.1 which is itself heavier than 2.x (longer compiles).  
   
With a gcc segfault there's a 99% certainty that it's not a problem with the   
code/configuration. I have recieved reports like this before now and in the   
end the problem just went away. First thing to try is make the compile lighter   
on memory (btw how much ram+swap do you have?). Try two things:  
  
1. Remove the -pipe option from your cflags. What it does is make gcc keep  
temporary/intermediate files in memory instead of writing them to disk. It  
makes the compile a little faster - if you don't run into swap.  
  
2. Edit /usr/portage/eclass/kde-dist.eclass and remove or comment out the line  
that says myconf="$myconf --enable-final". --enable-final is a standard kde  
configure script parameter that makes it concatenate _all_ source files for  
any single library or binary into one (via preprocessor include directives)  
and compile that one file instead of compiling many small files and linking  
them together. It makes the compile considerably faster, but it uses a _lot_  
of memory - for kdelibs/kdebase on the order of 300MB+ for some files.  
  
Try emerging again with these two changes. If the segfault was caused by an  
out-of-memory situation, they should help. gcc segfaults can also be caused by 
other things, of course, let's hope this isn't the case. 
Comment 2 Dan Armak (RETIRED) gentoo-dev 2002-07-26 16:01:16 UTC
No user input, closing.