1 |
On Wed, 21 Nov 2012 13:25:27 -0800 |
2 |
Grant <emailgrant@×××××.com> wrote: |
3 |
|
4 |
> I'm building a minimal Gentoo system but I always get the following |
5 |
> error when I try to chroot into the final system: |
6 |
> |
7 |
> /bin/bash: error while loading shared libraries: libgcc_s.so.1: |
8 |
> cannot open shared object file: No such file or directory |
9 |
> |
10 |
> I ran 'equery |
11 |
> b /usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.4/libgcc_s.so.1' on one of |
12 |
> my conventionally-built Gentoo systems and the file isn't determined |
13 |
> to belong to any package. |
14 |
> |
15 |
> Where does this file come from and how can I add it to my |
16 |
> manually-built Gentoo system? |
17 |
> |
18 |
> I'm following these instructions to build the minimal Gentoo system: |
19 |
> |
20 |
> http://judepereira.com/blog/going-embedded-with-mgentoo/ |
21 |
> |
22 |
> ROOT=/mounted/ emerge -auvND baselayout uclibc bash dropbear pam udev |
23 |
> iptables coreutils nano util-linux shadow kbd net-tools grep procps |
24 |
> gzip sed findutils mawk htop |
25 |
> |
26 |
> - Grant |
27 |
|
28 |
It comes from gcc. The ebuild install to /usr/lib, not /usr/lib64 like |
29 |
you searched for (one dir is a symlink to the other to make stuff work.) |
30 |
|
31 |
The only reference to libgcc_s in the ebuild comes from the toolchain |
32 |
eclass: |
33 |
|
34 |
# libgcc_s and, with gcc>=4.0, other libs get installed in multilib specific locations by gcc |
35 |
# we pull everything together to simplify working environment |
36 |
if has_multilib_profile ; then |
37 |
case $(tc-arch) in |
38 |
amd64) |
39 |
mv "${D}${LIBPATH}"/../$(get_abi_LIBDIR amd64)/* "${D}${LIBPATH}" |
40 |
mv "${D}${LIBPATH}"/../$(get_abi_LIBDIR x86)/* "${D}${LIBPATH}"/32 |
41 |
;; |
42 |
ppc64) |
43 |
# not supported yet, will have to be adjusted when we |
44 |
# actually build gnat for that arch |
45 |
;; |
46 |
esac |
47 |
fi |
48 |
|
49 |
And that looks like it needs a multilib profile. |
50 |
|
51 |
Dunno how much if any that will help you. |
52 |
|
53 |
-- |
54 |
Alan McKinnon |
55 |
alan.mckinnon@×××××.com |