View previous topic :: View next topic |
Author |
Message |
HighwayStar n00b


Joined: 01 Jan 2003 Posts: 26 Location: Montreal, Quebec, Canada
|
Posted: Tue Feb 25, 2003 1:54 am Post subject: kde compile fails with gcc-3.2.2 |
|
|
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 |
|
 |
Lin_Matt Guru


Joined: 23 Jun 2002 Posts: 581 Location: TechWasteland (Mississippi)
|
Posted: Tue Feb 25, 2003 2:05 am Post subject: |
|
|
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 |
|
 |
HighwayStar n00b


Joined: 01 Jan 2003 Posts: 26 Location: Montreal, Quebec, Canada
|
Posted: Tue Feb 25, 2003 5:39 am Post subject: |
|
|
Thanks!
Running the command you posted fixed things automagically  _________________ 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 |
|
 |
moxx n00b

Joined: 27 Feb 2003 Posts: 1 Location: Muenster / Germany
|
Posted: Sat Mar 01, 2003 8:57 am Post subject: |
|
|
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 |
|
 |
Saruman n00b


Joined: 23 Aug 2002 Posts: 64 Location: Brindisi
|
Posted: Sat Mar 01, 2003 10:26 am Post subject: |
|
|
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 |
|
 |
cbreaker Tux's lil' helper

Joined: 05 Feb 2003 Posts: 105 Location: Pawtucket, RI
|
Posted: Fri Sep 19, 2003 11:36 pm Post subject: |
|
|
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 |
|
 |
cbreaker Tux's lil' helper

Joined: 05 Feb 2003 Posts: 105 Location: Pawtucket, RI
|
Posted: Fri Sep 19, 2003 11:37 pm Post subject: |
|
|
Okay nevermind I didn't realize they were just text files! |
|
Back to top |
|
 |
|