Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16787 - emerge gcc-3.2.2 fails to update /etc/ld.so.conf to point to new shared library path
Summary: emerge gcc-3.2.2 fails to update /etc/ld.so.conf to point to new shared libra...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Please assign to toolchain
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-03 21:59 UTC by Patrick Tavares
Modified: 2003-10-01 21:13 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 Patrick Tavares 2003-03-03 21:59:36 UTC
After the emerge, /etc/ld.so.conf still points to
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1.  ldconfig runs and hoses shared
library cache (ld.so.cache).  Changed /etc/ld.so.conf to point to
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2, ran ldconfig and everything worked
Comment 1 Andre Restivo 2003-03-05 09:01:01 UTC
I had a similar experience. Lots of time after installing gcc 3.2.2 I did a emerge clean and ld.so.conf started pointing to gcc 3.2.1 again.
Comment 2 Patrick Tavares 2003-03-05 11:22:16 UTC
An emerge clean or re-emerge would probably fix the issue but my emerge was no longer working as Python could not find libstdc++.so.5 anymore.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-05 14:05:40 UTC
Seems to be an issue with portage that changed internal stuff like $T ...
I am trying to resolve it with Nick.  For now, do:

  # export LD_LIBRARY_PATH="<path to new gcc internal lib>:${LD_LIBRARY_PATH}"

and then fix /etc/env.d/05gcc, and run env-update ..

You could even run:

  # gcc-config <your CHOST>-3.2.2

Comment 4 Matt Pharr 2003-03-08 16:48:39 UTC
I am seeing this as well.  At the end of the emerge, I got the error:

/var/tmp/portage/gcc-3.2.2/temp/fix_libtool_files.sh: line 40: [: too many arguments
gawk: fatal: can't open source file `portage:' for reading (No such file or directory)

which may be part of the problem.  Martin's workaround does fix it for me, however.
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-08 22:18:21 UTC
Ok, I did some changes to try and prevent this in future:

----------------------
  09 Mar 2003; Martin Schlemmer <azarah@gentoo.org> gcc-3.2.2*.ebuild :
  Fix handling of fix_libtool_files.sh to be more $FILESDIR independant.
  We basically install it to /sbin now, and then call it from there.  Also
  export LD_LIBRARY_PATH with new gcc library path in it to prevent gcc-config
  from borking when run.  This will hopefully fix bugs #15288, #16632, #16797.
Comment 6 Joshua Kinard gentoo-dev 2003-10-01 21:13:09 UTC
According to Azarah's final comment, this looks to be fixed, so I'll resolve
it as such.  This gcc is outdated anyways.  If the issue is still present
in newer versions, then re-open.