Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 538994 - /bin/bash: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory
Summary: /bin/bash: error while loading shared libraries: libgcc_s.so.1: cannot open s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-05 22:13 UTC by Anthoine Bourgeois
Modified: 2015-04-12 11:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The emerge --info in the chroot (emerge--info--chroot.txt,4.05 KB, text/plain)
2015-02-05 22:14 UTC, Anthoine Bourgeois
Details
emerge --info on my host system (emerge--info.txt,4.87 KB, text/plain)
2015-02-05 22:14 UTC, Anthoine Bourgeois
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anthoine Bourgeois 2015-02-05 22:13:22 UTC
I try to update the following stage3 with a qemu user chroot:
http://distfiles.gentoo.org/releases/arm/autobuilds/current-stage3-armv7a_hardfp/stage3-armv7a_hardfp-20141023.tar.bz2

I follow the Gentoo Emebedded Handbook part 1 chapter 5:
https://www.gentoo.org/proj/en/base/embedded/handbook/index.xml?part=1&chap=5

I built my static qemu binary package with user arm.
I configured binfmt_misc with the qemu-wrapper program in the root of the stage3.
I installed the binary package in the stage3 and bind mount portage, dev, proc, ...
I chrooted in the stage3 and it seems ok.

But I can't merge anything because all emerge commend ends during the 'unpack' with this trace:
>>> Emerging (1 of 2) dev-lang/python-exec-2.0.1-r1
 * python-exec-2.0.1.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                             [ ok ]
/bin/bash: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory
 * The ebuild phase 'unpack' has exited unexpectedly. This type of behavior
 * is known to be triggered by things such as failed variable assignments
 * (bug #190128) or bad substitution errors (bug #200313). Normally, before
 * exiting, bash should have displayed an error message above. If bash did
 * not produce an error message above, it's possible that the ebuild has
 * called `exit` when it should have called `die` instead. This behavior
 * may also be triggered by a corrupt bash binary or a hardware problem
 * such as memory or cpu malfunction. If the problem is not reproducible or
 * it appears to occur randomly, then it is likely to be triggered by a
 * hardware problem. If you suspect a hardware problem then you should try
 * some basic hardware diagnostics such as memtest. Please do not report
 * this as a bug unless it is consistently reproducible and you are sure
 * that your bash binary and hardware are functioning properly.

ebuild python-exec-2.0.1-r1.ebuild unpack gives the same result.

I think the problem comes from the error message on libgcc_s.so.1:
/bin/bash: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory
I run /bin/bash on my chroot without problem then my guess is it's somehow related to sandbox or some features in portage.
I don't know how to debug that, can you give me any hints to dig in the problem ?

Reproducible: Always
Comment 1 Anthoine Bourgeois 2015-02-05 22:14:13 UTC
Created attachment 395658 [details]
The emerge --info in the chroot
Comment 2 Anthoine Bourgeois 2015-02-05 22:14:59 UTC
Created attachment 395660 [details]
emerge --info on my host system
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-06 09:37:56 UTC
Please figure out what is causing the issue. If you find that the solution is of a global nature, then reopen this bug report and propose a correction.
Comment 4 Anthoine Bourgeois 2015-04-12 11:57:07 UTC
Running 'ldconfig' in the chroot fixes the issue. Maybe a word on the Gentoo Embedded Handbook is needed.