I'm using stable packages only, all of them up to date. When I try to emerge kdelibs 3.1 it fails with this error: ... /usr/include/string.h:345: warning: shadowed declaration is here libtool: link: warning: `-version-info' is ignored for programs /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../../i686-pc-linux-gnu/bin/ld:.libs/kdrawutil.o: file format not recognized; treating as linker script /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../../i686-pc-linux-gnu/bin/ld:.libs/kdrawutil.o:1: parse error collect2: ld returned 1 exit status make[2]: *** [libkdefx.la.closure] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 !!! ERROR: kde-base/kdelibs-3.1 failed. !!! Function kde_src_compile, Line 88, Exitcode 2 !!! died running emake, kde_src_compile:make Here is my USE var: USE="-3dnow apm arts avi crypt cups dga dvd encode gd gif gphoto2 gtk2 java jpeg kde maildir mmx mpeg oggvorbis oss pcmcia pdflib pic png pnp python qt qtmt quicktime samba sdl slp spell sse ssl tiff truetype trusted wmf X xv" I've installed gentoo yesterday, so there isn't any old kde version.
This might bring some insight: Mainframe1 root # emerge kdenetwork -u --deep Calculating dependencies ...done! >>> emerge (1 of 1) kde-base/kdenetwork-3.1 to / >>> md5 ;-) kdenetwork-3.1.tar.bz2 >>> Unpacking source... >>> Unpacking kdenetwork-3.1.tar.bz2 patching file kpf/src/WebServer.cpp Hunk #1 FAILED at 234. Hunk #2 FAILED at 249. 2 out of 2 hunks FAILED -- saving rejects to file kpf/src/WebServer.cpp.rej >>> Source unpacked. configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for a BSD-compatible install... /bin/install -c checking for -p flag to install... yes checking whether build environment is sane...
I deleted the faulty .o files and started make in the work directory and it compiled fine .... weird
this might be caused by 2 things (I'm not really sure which is guilty in this case): -ccache caching wrong/bad object files -parallel make so, please try FEATURES=-ccache emerge kdenetwork. (if you're not using ccache, please say so). the failing patch is another issue, afaics it can be removed from the ebuild, but i'll look into that tomorrow. it has nothing to do with your problem.
I'm using ccache but I have cleaned the cache so it can't be that. I've just emerged gcc-3.2.1-r7 (~x86) and the compilation succeeded. It is now compiling kdegraphics, and kdelibs/base/... compiled OK.
The FEATURES=-ccache workded for me, thanks for the great tips and support guys !
C
Cédric: hmm, which did you do: cleaned cache -> merged kdelibs -> it failed -> merged new gcc -> all went fine or merged kdelibs -> failed -> cleaned cache -> merged new gcc -> emerge worked fine did you encounter exactly the same bug or another build failure? i mailed the ccache dev about this problem (cause it encountered not the first time, if you want, take a look at bug #10262 and bug #14738).
I did: merged kdelibs -> failed -> merged kdelibs -> failed -> cleaned cache -> merged kdelibs -> failed -> merged new gcc -> all went fine It was each time the same error. All went fine once I emerged the new (unstable) gcc. Bug #10262 and bug #14738 seem to be the same error as this one. I searched a bit on google but didn't find any solution.
ok, i removed the unneeded kdenetwork-patch :) cedric: you cant reproduce the error right now, can you? if you cant, we can close this bug.
I'm posting this with Konqueror 3.1 :-) Since I emerged this new gcc, I haven't got any problem. I've just finished compiling KOffice right now. So as far as I'm concerned this bug can be closed.
ok, mark as fixed.