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