From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 690931381F3 for ; Wed, 21 Nov 2012 22:11:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4D865E0667; Wed, 21 Nov 2012 22:10:47 +0000 (UTC) Received: from mail-ea0-f181.google.com (mail-ea0-f181.google.com [209.85.215.181]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 52ADEE0444 for ; Wed, 21 Nov 2012 22:09:05 +0000 (UTC) Received: by mail-ea0-f181.google.com with SMTP id k14so1502443eaa.40 for ; Wed, 21 Nov 2012 14:09:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ctQq1llG9vXJJhwkt6ZjEGNBfVEt6OtLSFqI10c6f6c=; b=atAb9EZvfE1QmACuHZ70eQ8xP0i+FmN2GXT+Sa/ijMe6Q7b3EMQ7wnbLEBZaSP+QeE ej2HW8OGNTeQWUjbCGwzoH4o/t+REQpBY4VQ5IZcahCxCecmMQvh36qVMNk8+kV2Jmmr hjix4lR1zFdkFLpu79fJNeFaOFFtVz0XV96IO4BN2sbQPLvwYVe19TW6QXKZimYdaRkf eOP2SPXjFmByvDRs6lNtIFsu63zXn6KhCjAIKDSDOTji9hIqU8mPedGfgE9aMM01FhVZ biTcXCIgnl1mmAHxSu/hnVkbRkbF2t1PVT6qeTcB/Wm3uJqpudw+3SgPKP/bETI7Z/cm NzaQ== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.14.194.71 with SMTP id l47mr49577538een.6.1353535744001; Wed, 21 Nov 2012 14:09:04 -0800 (PST) Received: by 10.223.77.2 with HTTP; Wed, 21 Nov 2012 14:09:03 -0800 (PST) In-Reply-To: <20121121235737.28061d6b@khamul.example.com> References: <20121121235737.28061d6b@khamul.example.com> Date: Wed, 21 Nov 2012 14:09:03 -0800 Message-ID: Subject: Re: [gentoo-user] What is libgcc_s.so.1? From: Grant To: Gentoo mailing list Content-Type: multipart/alternative; boundary=047d7b3436b036453d04cf0899da X-Archives-Salt: 5aa5e2de-8689-4982-b16c-c1c6905927aa X-Archives-Hash: ebd7399a0f1fbaa27bd2f5dab6241dd0 --047d7b3436b036453d04cf0899da Content-Type: text/plain; charset=ISO-8859-1 > > 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 --047d7b3436b036453d04cf0899da Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable > > I'm building a minimal Gentoo system but I always get the fol= lowing
> > error when I try to chroot into the final system:
&g= t; >
> > /bin/bash: error while loading shared libraries: libgc= c_s.so.1:
> > cannot open shared object file: No such file or directory
>= >
> > I ran 'equery
> > b /usr/lib64/gcc/x86_64-p= c-linux-gnu/4.5.4/libgcc_s.so.1' on one of
> > my conventional= ly-built Gentoo systems and the file isn't determined
> > to belong to any package.
> >
> > Where does th= is file come from and how can I add it to my
> > manually-built Ge= ntoo system?
> >
> > I'm following these instructions= to build the minimal Gentoo system:
> >
> > http://judepereira.com/blog/going-embedded-with-mgentoo/
> >
> > ROOT=3D/mounted/ emerge -auvND baselayout ucli= bc bash dropbear pam udev
> > iptables coreutils nano util-linux shadow kbd net-tools grep proc= ps
> > gzip sed findutils mawk htop
> >
> > - Gr= ant
>
> 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:
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0# libgcc_s =A0and, with gcc>=3D4.0, other libs get installed in multi= lib specific locations by gcc
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 # we pull everything together to simpl= ify working environment
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 if has_mult= ilib_profile ; then
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= case $(tc-arch) in
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 amd64)
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 mv "${D}${LIBPATH}"/../$(get_abi_LIBDIR amd64)/* &quo= t;${D}${LIBPATH}"
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 mv "${D}${LIBPATH}"/../$(get_= abi_LIBDIR x86)/* "${D}${LIBPATH}"/32
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ;;
= > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ppc64)=
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 # not supported yet, will have to be adjusted when we
&g= t; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 # actually build gnat for that arch
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ;;
= > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 esac
> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 fi
>
> And that looks like it needs a m= ultilib profile.
>
> Dunno how much if any that will help you.<= br>
Does this basically mean I must install gcc in order to have a wor= king system? =A0Jude doesn't install gcc but he doesn't know why I&= #39;m getting that error. =A0I thought gcc was only necessary for compiling= .

- Grant
--047d7b3436b036453d04cf0899da--