From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] What is libgcc_s.so.1?
Date: Wed, 21 Nov 2012 23:57:37 +0200 [thread overview]
Message-ID: <20121121235737.28061d6b@khamul.example.com> (raw)
In-Reply-To: <CAN0CFw152tjJL1sqpOAOQ1EDzxfs4ub9UuY6RLPE_SYNSMeDpA@mail.gmail.com>
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
next prev parent reply other threads:[~2012-11-21 22:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2012-11-21 22:09 ` Grant
2012-11-21 22:17 ` Michael Mol
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121121235737.28061d6b@khamul.example.com \
--to=alan.mckinnon@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox