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 .
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.
No user input, closing.