public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] What is libgcc_s.so.1?
@ 2012-11-21 21:25 Grant
  2012-11-21 21:56 ` Bruce Hill
  2012-11-21 21:57 ` Alan McKinnon
  0 siblings, 2 replies; 5+ messages in thread
From: Grant @ 2012-11-21 21:25 UTC (permalink / raw
  To: Gentoo mailing list

[-- Attachment #1: Type: text/plain, Size: 813 bytes --]

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:

http://judepereira.com/blog/going-embedded-with-mgentoo/

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

[-- Attachment #2: Type: text/html, Size: 1144 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] What is libgcc_s.so.1?
  2012-11-21 21:25 [gentoo-user] What is libgcc_s.so.1? Grant
@ 2012-11-21 21:56 ` Bruce Hill
  2012-11-21 21:57 ` Alan McKinnon
  1 sibling, 0 replies; 5+ messages in thread
From: Bruce Hill @ 2012-11-21 21:56 UTC (permalink / raw
  To: gentoo-user

On Wed, Nov 21, 2012 at 01:25:27PM -0800, Grant wrote:
> 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:
> 
> http://judepereira.com/blog/going-embedded-with-mgentoo/
> 
> 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

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                       ^^
support@happypenguincomputers.com
662-269-2706 662-205-6424
http://happypenguincomputers.com/

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] What is libgcc_s.so.1?
  2012-11-21 21:25 [gentoo-user] What is libgcc_s.so.1? Grant
  2012-11-21 21:56 ` Bruce Hill
@ 2012-11-21 21:57 ` Alan McKinnon
  2012-11-21 22:09   ` Grant
  1 sibling, 1 reply; 5+ messages in thread
From: Alan McKinnon @ 2012-11-21 21:57 UTC (permalink / raw
  To: gentoo-user

On Wed, 21 Nov 2012 13:25:27 -0800
Grant <emailgrant@gmail.com> wrote:

> 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:
> 
> http://judepereira.com/blog/going-embedded-with-mgentoo/
> 
> 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

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.mckinnon@gmail.com



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] What is libgcc_s.so.1?
  2012-11-21 21:57 ` Alan McKinnon
@ 2012-11-21 22:09   ` Grant
  2012-11-21 22:17     ` Michael Mol
  0 siblings, 1 reply; 5+ messages in thread
From: Grant @ 2012-11-21 22:09 UTC (permalink / raw
  To: Gentoo mailing list

[-- Attachment #1: Type: text/plain, Size: 2330 bytes --]

> > 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:
> >
> > http://judepereira.com/blog/going-embedded-with-mgentoo/
> >
> > 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
>
> 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.

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

[-- Attachment #2: Type: text/html, Size: 2894 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] What is libgcc_s.so.1?
  2012-11-21 22:09   ` Grant
@ 2012-11-21 22:17     ` Michael Mol
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Mol @ 2012-11-21 22:17 UTC (permalink / raw
  To: gentoo-user

On Wed, Nov 21, 2012 at 5:09 PM, Grant <emailgrant@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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-11-21 22:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-21 21:25 [gentoo-user] What is libgcc_s.so.1? Grant
2012-11-21 21:56 ` Bruce Hill
2012-11-21 21:57 ` Alan McKinnon
2012-11-21 22:09   ` Grant
2012-11-21 22:17     ` Michael Mol

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox