Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11094 - gcc-3.2.1 upgrade problem
Summary: gcc-3.2.1 upgrade problem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
: 11176 11259 11350 11462 11963 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-11-22 12:29 UTC by Peter Ruskin
Modified: 2004-10-17 12:10 UTC (History)
6 users (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 Peter Ruskin 2002-11-22 12:29:47 UTC
I just did an `emerge -u world`, which updated gcc-3.2-r4 to gcc-3.2.1, 
and then went on to update ksplash-ml-0.95.2-r1 to ksplash-ml-0.95.3.

This failed because it was looking for libstdc++.la and libstdc++.so in 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/ (now empty due to gcc update).

I solved it by `rm -fR /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/` and `ln -s  
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2`

Dan Armak said:
sethbc-trill on irc just said an extra ldcofig run fixed things for him. If
you have a few spare minutes, please remove your manual fix and try that, and
if it doesn't work, please report it on bugzilla.

I removed my /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/ symlink, did a couple of
`ldconfig -v` and remerged.  I got the same:
grep: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/libstdc++.la: No such file or directory
sed: can't read /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/libstdc++.la: No such
file or directory
libtool: link: `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/libstdc++.la' is not a
valid libtool archive
make[4]: *** [libkmlte.la] Error 1
make[4]: Leaving directory
`/var/tmp/portage/ksplash-ml-0.95.3/work/ksplashml-0.95.3/src/ThemeEngine'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/var/tmp/portage/ksplash-ml-0.95.3/work/ksplashml-0.95.3/src/ThemeEngine'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/ksplash-ml-0.95.3/work/ksplashml-0.95.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/ksplash-ml-0.95.3/work/ksplashml-0.95.3'
make: *** [all] Error 2

!!! ERROR: x11-misc/ksplash-ml-0.95.3 failed.
!!! Function kde_src_compile, Line 98, Exitcode 2
!!! died running emake, kde_src_compile:make

Looks like "3.2" is hard-coded somewhere.
Comment 1 Dan Armak (RETIRED) gentoo-dev 2002-11-23 03:48:53 UTC
Please give this to a gcc guy to look at. I don't suppose it's anything KDE-specific. 
Comment 2 L.J. Moore 2002-11-23 09:53:09 UTC
I just want to add to this to confirm that this issue isn't isolated to Peter.   
This morning I did an `emerge sync; emerge -u world` and gcc-3.2-r4 was 
updated to  
gcc-3.2.1.  When merging further KDE libraries, I got the same libstdc++.la 
errors as peter.  Like him, I've created a symlink to work around this issue 
because I'm scratching my head trying to find the reference to the 3.2 
dir/library. 
Comment 3 Michael J. Haehnel 2002-11-23 12:30:39 UTC
@Lee
For compiling KDE first emerge arts. After that your Problem should be solved.
Comment 4 Dan Armak (RETIRED) gentoo-dev 2002-11-23 15:00:35 UTC
All the .la files have references in dependency_libs to /usr/lib/.../3.2/libstdc++.la ! I 
don't see how you can expect this upgrade to every work, frankly, without doing 
something about this. 
Comment 5 Peter Ruskin 2002-11-23 17:06:14 UTC
kmyfirewall is also looking for /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/libstdc++.la
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2002-11-23 18:01:07 UTC
Yes, that is why 3.2.1 is not unmasked.  I am busy writing a script to check all
dirs in ld.so.conf
and 'fix' the libtool linker scripts.
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2002-11-23 18:02:43 UTC
Refrase .. this is why its marked as UNSTABLE.
Comment 8 Martin Schlemmer (RETIRED) gentoo-dev 2002-11-23 19:01:40 UTC
Ok, to fix:

nosferatu root # cd /usr/portage/sys-devel/gcc/files/
nosferatu files # ./fix_libtool_files.sh 3.2
 * Scanning /usr/lib/opengl/nvidia/lib...
 * Scanning /usr/lib/mozilla...
 * Scanning /usr/X11R6/lib...
 * Scanning /opt/blackdown-jdk-1.4.1_beta/jre/lib/i386...
 * Scanning /opt/blackdown-jdk-1.4.1_beta/jre/lib/i386/native_threads...
 * Scanning /usr/qt/3/lib...
 * Scanning /usr/kde/3/lib...
 * Scanning /lib...
 * Scanning /usr/lib...
 * FIXING: /usr/lib/libpspell.la
 * Scanning /usr/local/lib...
nosferatu files # 

This will be intgrated into the ebuild ...
Comment 9 Martin Schlemmer (RETIRED) gentoo-dev 2002-11-23 21:06:43 UTC
Ok, latest gcc-3.2.1 ebuild should have this integrated.
Comment 10 SpanKY gentoo-dev 2002-11-24 22:07:26 UTC
*** Bug 11176 has been marked as a duplicate of this bug. ***
Comment 11 Bart Verwilst 2002-11-26 17:11:44 UTC
*** Bug 11259 has been marked as a duplicate of this bug. ***
Comment 12 Jonathan Nall 2002-11-28 17:01:10 UTC
*** Bug 11350 has been marked as a duplicate of this bug. ***
Comment 13 Angel Ortiz 2002-11-29 10:16:28 UTC
Wanted to report that this is happening here trying to emerge anything kde.  I
did a kdebase install to get konqueror and later decided that I wanted to give
the whole kit and kaboodle a try.  I can get most of kde and I can run the
desktop however the following will not emerge:

Calculating dependencies ...done!
[ebuild  N   ] kde-base/kdeaddons-3.0.4
[ebuild  N   ] kde-base/kdepim-3.0.4
[ebuild  N   ] kde-base/kdegraphics-3.0.4
[ebuild  N   ] kde-base/kdeutils-3.0.4
[ebuild  N   ] kde-base/kdetoys-3.0.4
[ebuild  N   ] kde-base/kdeartwork-3.0.4
[ebuild  N   ] kde-base/kdeedu-3.0.4
[ebuild  N   ] kde-base/kdeadmin-3.0.4
[ebuild  N   ] kde-base/kde-3.0.4

I have tried getting each one indiviadually and they all fail with the same
error.  It is exactly the same error that Peter Ruskin reported.  

make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/kdeaddons-3.0.4/work/kdeaddons-3.0.4/noatun-plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdeaddons-3.0.4/work/kdeaddons-3.0.4'
make: *** [all] Error 2

!!! ERROR: kde-base/kdeaddons-3.0.4 failed.
!!! Function kde_src_compile, Line -7382, Exitcode 2
!!! died running emake, kde_src_compile:make
Comment 14 Martin Schlemmer (RETIRED) gentoo-dev 2002-11-30 09:29:45 UTC
1) Actually including the error would be nice

2) did you try the fix in comment #8 ?

Comment 15 Haroon Rafique 2002-11-30 10:00:24 UTC
Just wanted to say that the fix listed in comment #8 fixes the problem for me. 
I had originally reported the dupe bug 11259.
Comment 16 Jonathan Nall 2002-11-30 10:02:14 UTC
the fix in comment #8 fixes my problem as well. i reported dup: bug 11350
Comment 17 Angel Ortiz 2002-11-30 10:07:24 UTC
In my case it looks like it's a PEBKAC error.  I just realized that when I did
an emerge -u world my gcc got downgraded to gcc3.2r4.  (I forgot to pin the new
version)  I am upgrading again now, and will try the fix in Number 8 when it's
done.  I will report the results later after gcc finishes compiling....
Comment 18 Martin Schlemmer (RETIRED) gentoo-dev 2002-11-30 10:34:29 UTC
Angel Ortiz, you should not need to do the fix in #8, as it *should* be
integrated into the ebuild.  If it does not work 'out of the box', let
me know, thanks.
Comment 19 Angel Ortiz 2002-11-30 11:44:57 UTC
I updated to gcc 3.2.1:

$ qpkg -I -v gcc
sys-devel/gcc-3.2.1 *

I then did an emerge --debug kde.  The emerge fails.  Here is the end of the
error message that I see.  Everything prior to this has no errors.

make[2]: Leaving directory `/var/tmp/portage/kdeaddons-3.0.4/work/kdeaddons-3.0.
4/konq-plugins'
Making all in noatun-plugins
make[2]: Entering directory `/var/tmp/portage/kdeaddons-3.0.4/work/kdeaddons-3.0
.4/noatun-plugins'
Making all in alarm
make[3]: Entering directory `/var/tmp/portage/kdeaddons-3.0.4/work/kdeaddons-3.0
.4/noatun-plugins/alarm'
/usr/qt/3/bin/moc ./wakeup.h -o wakeup.moc
/usr/qt/3/bin/moc ./kminutespinbox.h -o kminutespinbox.moc
/usr/qt/3/bin/moc ./kpercentspinbox.h -o kpercentspinbox.moc
make[3]: *** No rule to make target `/usr/kde/3/lib/libnoatun.so', needed by `no
atunwakeup.la.closure'.  Stop.
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/kdeaddons-3.0.4/work/kdeaddons-3.0.
4/noatun-plugins/alarm'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdeaddons-3.0.4/work/kdeaddons-3.0.
4/noatun-plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdeaddons-3.0.4/work/kdeaddons-3.0.
4'
make: *** [all] Error 2
+ diefunc kde_src_compile -7382 2 'died running emake, kde_src_compile:make'
+ local funcname=kde_src_compile lineno=-7382 exitcode=2
+ shift 3
+ echo

+ echo '!!! ERROR: kde-base/kdeaddons-3.0.4 failed.'
!!! ERROR: kde-base/kdeaddons-3.0.4 failed.
+ echo '!!! Function kde_src_compile, Line -7382, Exitcode 2'
!!! Function kde_src_compile, Line -7382, Exitcode 2
+ echo '!!! died running emake, kde_src_compile:make'
!!! died running emake, kde_src_compile:make
+ echo

+ exit 1

I am not sure if I am capturing the error that you are looking for Martin.  Is
there any way to get a more verbose emerge as opposed to just adding --debug?
Comment 20 Martin Schlemmer (RETIRED) gentoo-dev 2002-11-30 14:12:30 UTC
To be honest, that do not look like gcc problems ...  do you actually have
'/usr/kde/3/lib/libnoatun.so' ?
Comment 21 Angel Ortiz 2002-11-30 14:33:00 UTC
I agree with you azarah :)  I don't think that this is related to a gcc error. 
I checked exactly what you suggested when I first started getting the error and
realized that there was not a libatun.so in /usr/kde/3/lib/.  I did a locate and
I found it in /usr/lib so I created a link to it, but that did not help.  I came
searching bugzilla and I found this bug which had a similar error message on
building something kde.  I guess my errors run deeper :/  I will continue to
search bugzilla,  I will start a new bug report if I can't find one that better
fits the errors that I am having.  Thanks for the help :D  
Comment 22 Haroon Rafique 2002-12-01 11:04:25 UTC
Angel Ortiz, look at bug 11039 for the fix. Apparently, /usr/portage/eclass/kde-
functions.eclass failed to include kdemultimedia when assigning prefixes for 
the kde packages. As a result, the kdemultimedia packages got installed at the 
wrong prefix.
Comment 23 Haroon Rafique 2002-12-01 11:05:18 UTC
Sorry, wrong bug.... Try bug 11309 for the correct bug.
Comment 24 Angel Ortiz 2002-12-01 13:11:32 UTC
Thank you :)
Comment 25 SpanKY gentoo-dev 2002-12-01 16:42:42 UTC
*** Bug 11462 has been marked as a duplicate of this bug. ***
Comment 26 Brian Magnuson 2002-12-11 10:17:12 UTC
*** Bug 11963 has been marked as a duplicate of this bug. ***
Comment 27 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-25 18:32:49 UTC
Fixed.