Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kde compile fails with gcc-3.2.2
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
HighwayStar
n00b
n00b


Joined: 01 Jan 2003
Posts: 26
Location: Montreal, Quebec, Canada

PostPosted: Tue Feb 25, 2003 1:54 am    Post subject: kde compile fails with gcc-3.2.2 Reply with quote

Hi. I just upgraded from gcc-3.2.1 to gcc-3.2.2 with emerge world. Now, when I want to compile kdesdk or koffice (or any other kde package), I get this message:
Code:

libtool: link: cannot find the library `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/libstdc++.la'
make[2]: *** [libcervisia.la.closure] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/kdesdk-3.1/work/kdesdk-3.1/cervisia'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdesdk-3.1/work/kdesdk-3.1'
make: *** [all] Error 2

!!! ERROR: kde-base/kdesdk-3.1 failed.
!!! Function kde_src_compile, Line 118, Exitcode 2
!!! died running emake, kde_src_compile:make


Why does it still looks in /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1 when the new libs reside in /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2 ??? I tried to switch gcc profile with gcc-config but it does not work.

Can somebody help me ?
_________________
holyshit.org :

AMD Athlon XP 2100+ w/ 512MB PC-2700
MSI KT3-Ultra2R
Using 2.4.20-gentoo-r1/gcc-3.2.2/athlon-xp

[img:d6d9cf3ab1]http://art-team.ca/n.laplante/img/powered-by-gentoo.jpg[/img:d6d9cf3ab1]
Back to top
View user's profile Send private message
Lin_Matt
Guru
Guru


Joined: 23 Jun 2002
Posts: 581
Location: TechWasteland (Mississippi)

PostPosted: Tue Feb 25, 2003 2:05 am    Post subject: Reply with quote

I've run into much the same problem. You actually have two options here, one's a fix, the other's a hack.

The fix is to do a quick "grep -R 3.2.1 /usr/kde/3.1/lib/*.la" and manually edit the file(s) that have the wrong path in them. You can also run "/usr/portage/sys-devel/gcc/files/fix_libtool_files.sh 3.2.1" and see if that fixes it automagically, but it didn't for me.

Your second option (hack) is to simply symlink /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/ to /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2 , but the first option is a real fix...
Back to top
View user's profile Send private message
HighwayStar
n00b
n00b


Joined: 01 Jan 2003
Posts: 26
Location: Montreal, Quebec, Canada

PostPosted: Tue Feb 25, 2003 5:39 am    Post subject: Reply with quote

Thanks!

Running the command you posted fixed things automagically :D
_________________
holyshit.org :

AMD Athlon XP 2100+ w/ 512MB PC-2700
MSI KT3-Ultra2R
Using 2.4.20-gentoo-r1/gcc-3.2.2/athlon-xp

[img:d6d9cf3ab1]http://art-team.ca/n.laplante/img/powered-by-gentoo.jpg[/img:d6d9cf3ab1]
Back to top
View user's profile Send private message
moxx
n00b
n00b


Joined: 27 Feb 2003
Posts: 1
Location: Muenster / Germany

PostPosted: Sat Mar 01, 2003 8:57 am    Post subject: Reply with quote

I had exactly the same problem compiling kdelibs. Though the mentioned shell script did not do the job for me, manually editing of the files did it.

Thank you very much!
Back to top
View user's profile Send private message
Saruman
n00b
n00b


Joined: 23 Aug 2002
Posts: 64
Location: Brindisi

PostPosted: Sat Mar 01, 2003 10:26 am    Post subject: Reply with quote

There is a bug-report on bugs.gentoo.org (cannot remember the id because I'm not at home): the suggested fix is to run:

Code:

/usr/portage/sys-devel/gcc/files/fix_libtool_files.sh 3.2.1


It will do what Lin_Matt says, automagically ;)

Hope it will help.
_________________
---
Miser, miser! Modo niger et ustus fortiter!
Back to top
View user's profile Send private message
cbreaker
Tux's lil' helper
Tux's lil' helper


Joined: 05 Feb 2003
Posts: 105
Location: Pawtucket, RI

PostPosted: Fri Sep 19, 2003 11:36 pm    Post subject: Reply with quote

The script didn't work for me, so how do I edit manually these files? I can see a few of them with the wrong gcc version listed.
Back to top
View user's profile Send private message
cbreaker
Tux's lil' helper
Tux's lil' helper


Joined: 05 Feb 2003
Posts: 105
Location: Pawtucket, RI

PostPosted: Fri Sep 19, 2003 11:37 pm    Post subject: Reply with quote

Okay nevermind I didn't realize they were just text files!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum