Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[gentoo-user] What is libgcc_s.so.1?

1,930 views
Skip to first unread message

Grant

unread,
Nov 21, 2012, 4:30:02 PM11/21/12
to
I'm building a minimal Gentoo system but I always get the following error when I try to chroot into the final system:

/bin/bash: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory

I ran 'equery b /usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.4/libgcc_s.so.1' on one of my conventionally-built Gentoo systems and the file isn't determined to belong to any package.

Where does this file come from and how can I add it to my manually-built Gentoo system?

I'm following these instructions to build the minimal Gentoo system:


ROOT=/mounted/ emerge -auvND baselayout uclibc bash dropbear pam udev iptables coreutils nano util-linux shadow kbd net-tools grep procps gzip sed findutils mawk htop

- Grant

Bruce Hill

unread,
Nov 21, 2012, 5:00:02 PM11/21/12
to
emerge pfl && e-file libgcc_s.so.1

For that particular one you're going to get a ton of hits ... e-file is
searching http://www.portagefilelist.de

Sorry to be hit-and-run but we're packing to leave town. You can also locate:

baruch ~ # locate libgcc_s.so.1
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.4/libgcc_s.so.1
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.4/32/libgcc_s.so.1
--
Happy Penguin Computers >')
126 Fenco Drive ( \
Tupelo, MS 38801 ^^
sup...@happypenguincomputers.com
662-269-2706 662-205-6424
http://happypenguincomputers.com/

Don't top-post: http://en.wikipedia.org/wiki/Top_post#Top-posting

Alan McKinnon

unread,
Nov 21, 2012, 5:10:02 PM11/21/12
to
It comes from gcc. The ebuild install to /usr/lib, not /usr/lib64 like
you searched for (one dir is a symlink to the other to make stuff work.)

The only reference to libgcc_s in the ebuild comes from the toolchain
eclass:

# libgcc_s and, with gcc>=4.0, other libs get installed in multilib specific locations by gcc
# we pull everything together to simplify working environment
if has_multilib_profile ; then
case $(tc-arch) in
amd64)
mv "${D}${LIBPATH}"/../$(get_abi_LIBDIR amd64)/* "${D}${LIBPATH}"
mv "${D}${LIBPATH}"/../$(get_abi_LIBDIR x86)/* "${D}${LIBPATH}"/32
;;
ppc64)
# not supported yet, will have to be adjusted when we
# actually build gnat for that arch
;;
esac
fi

And that looks like it needs a multilib profile.

Dunno how much if any that will help you.

--
Alan McKinnon
alan.m...@gmail.com

Grant

unread,
Nov 21, 2012, 5:20:02 PM11/21/12
to
Does this basically mean I must install gcc in order to have a working system?  Jude doesn't install gcc but he doesn't know why I'm getting that error.  I thought gcc was only necessary for compiling.

- Grant

Michael Mol

unread,
Nov 21, 2012, 5:30:02 PM11/21/12
to
On Wed, Nov 21, 2012 at 5:09 PM, Grant <email...@gmail.com> wrote:

[snip]

>
> Does this basically mean I must install gcc in order to have a working
> system? Jude doesn't install gcc but he doesn't know why I'm getting that
> error. I thought gcc was only necessary for compiling.

Virtually all compilers also have a 'runtime' which is a library of
routines common to the program executables they produce. GCC's is
called libgcc.

--
:wq
0 new messages