Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 435902 - armv5tel-softfloat-linux-gnueabi-4.5.4 - postrm(): bash: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory
Summary: armv5tel-softfloat-linux-gnueabi-4.5.4 - postrm(): bash: error while loading ...
Status: RESOLVED DUPLICATE of bug 433161
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: ARM Linux
: Normal major (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-22 16:42 UTC by Wolfram Joost
Modified: 2012-09-22 17:56 UTC (History)
0 users

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 Wolfram Joost 2012-09-22 16:42:48 UTC
Updating gcc 4.5.3 to 4.5.4 on arm fails. After the failure, the system is unusable.

----------
icy ~ # emerge -K sys-devel/gcc
Calculating dependencies \... done!

>>> Emerging binary (1 of 1) sys-devel/gcc-4.5.4
 * gcc-4.5.4.tbz2 MD5 SHA1 size ;-) ...                                  [ ok ]
>>> Extracting info
>>> Extracting sys-devel/gcc-4.5.4

>>> Installing (1 of 1) sys-devel/gcc-4.5.4
[sys-devel/gcc-4.5.3-r2] bash: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory
 * The ebuild phase 'postrm' has exited unexpectedly. This type of behavior
[..]
 * The problem occurred while executing the ebuild file named
 * 'gcc-4.5.3-r2.ebuild' located in the '/var/db/pkg/sys-
 * devel/gcc-4.5.3-r2' directory. If necessary, manually remove the
 * environment.bz2 file and/or the ebuild file located in that directory.
[..]
/bin/bash: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory
 * The ebuild phase 'die_hooks' has exited unexpectedly. This type of
[..]

----------

After that even an ls fails:
----------
icy ~ # cd /usr/lib
icy lib # ls
ls: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory
----------

It looks like that the file

/usr/lib/gcc/armv5tel-softfloat-linux-gnueabi/4.5.3/libgcc_s.so.1

is removed before updating the file
/etc/ld.so.conf.d/05gcc-armv5tel-softfloat-linux-gnueabi.conf
with the new version and running ldconfig.

I used the following work-arround:
- open a busybox shell
- emerge sys-devel/gcc from an other shell
- recreate directory /usr/lib/gcc/armv5tel-softfloat-linux-gnueabi/4.5.3
- copy libgcc_s.so.1 from 4.5.4 to this directory
- update /etc/ld.so.conf.d/05gcc-armv5tel-softfloat-linux-gnueabi.conf
- run ldconfig
- run gcc-config and activate new compiler
- reemerge sys-devel/gcc

An emerge without an available binary package fails with the same error.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-09-22 17:06:49 UTC
Please attach the entire build log to this bug report.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-09-22 17:07:07 UTC
Also, post your `emerge --info' output in a comment.
Comment 3 SpanKY gentoo-dev 2012-09-22 17:56:44 UTC

*** This bug has been marked as a duplicate of bug 433161 ***