Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14681 - kdelibs 3.1 compilation fails (ld problem)
Summary: kdelibs 3.1 compilation fails (ld problem)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-28 11:32 UTC by Cédric Paquot
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

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 Cédric Paquot 2003-01-28 11:32:33 UTC
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.
Comment 1 Jonathan Bastien-FiIiatrault 2003-01-29 11:13:13 UTC
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...
      
Comment 2 Jonathan Bastien-FiIiatrault 2003-01-29 11:21:41 UTC
I deleted the faulty .o files and started make in the work directory and it
compiled fine .... weird
Comment 3 Hannes Mehnert (RETIRED) gentoo-dev 2003-01-29 18:27:13 UTC
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. 
Comment 4 Cédric Paquot 2003-01-29 19:43:05 UTC
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.
Comment 5 Jonathan Bastien-FiIiatrault 2003-01-30 13:12:18 UTC
The FEATURES=-ccache workded for me, thanks for the great tips and support guys !
Comment 6 Hannes Mehnert (RETIRED) gentoo-dev 2003-01-30 21:30:28 UTC
C
Comment 7 Hannes Mehnert (RETIRED) gentoo-dev 2003-01-30 21:30:28 UTC
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). 
Comment 8 Cédric Paquot 2003-01-30 21:53:46 UTC
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. 
Comment 9 Hannes Mehnert (RETIRED) gentoo-dev 2003-01-31 09:11:09 UTC
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. 
Comment 10 Cédric Paquot 2003-01-31 15:05:43 UTC
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. 
Comment 11 Hannes Mehnert (RETIRED) gentoo-dev 2003-02-01 13:07:46 UTC
ok, mark as fixed.