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 7DEDF1381F3 for ; Wed, 21 Nov 2012 22:02:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1AD2421C0D7; Wed, 21 Nov 2012 22:02:03 +0000 (UTC) Received: from mail-wg0-f53.google.com (mail-wg0-f53.google.com [74.125.82.53]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6347621C089 for ; Wed, 21 Nov 2012 22:00:45 +0000 (UTC) Received: by mail-wg0-f53.google.com with SMTP id e12so1118422wge.10 for ; Wed, 21 Nov 2012 14:00:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:organization :x-mailer:mime-version:content-type:content-transfer-encoding; bh=n7uT+xpZfWmgWdjPof+Gy8LdShm8LHFKyIVX9BtG0Mk=; b=OsoNgwR0t500tdFCo+7yyfQ52XLbGbpY8s5F3f6aLxXrZZ+1IiUgCa3p20EZfHsGvS HoN8Dti+h4qHWvDxiIxe2Hn9RVb3keCbfLEHYrYLw1rz5y4k9A426skNHOZdeB+W3zVb 5RT3tLotsgg40uWtMgDsGfcdZW9aMmNzAMn1VfhUDlGWDkR5fTp8blTHcVbl9UJQr1zs Ms7XLFHpuPyMldMmGw/PEIsz+V1xmUA8epZfFMhL6sykCC5zalragKou71QWQyvmJEKe O2n+e05mpasL17dTfLonuy6TBsEwrJzznSMX69FAV539cICYK+UMTGtbZzibyFjwD5dv zPRQ== Received: by 10.180.101.70 with SMTP id fe6mr1375416wib.21.1353535222968; Wed, 21 Nov 2012 14:00:22 -0800 (PST) Received: from khamul.example.com (196-210-222-61.dynamic.isadsl.co.za. [196.210.222.61]) by mx.google.com with ESMTPS id dd4sm1389033wib.2.2012.11.21.14.00.20 (version=SSLv3 cipher=OTHER); Wed, 21 Nov 2012 14:00:22 -0800 (PST) Date: Wed, 21 Nov 2012 23:57:37 +0200 From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] What is libgcc_s.so.1? Message-ID: <20121121235737.28061d6b@khamul.example.com> In-Reply-To: References: Organization: Internet Solutions X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.13; x86_64-pc-linux-gnu) 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 9fff6fad-6400-4cbf-803a-a760f602ff5a X-Archives-Hash: 2caa5179152f4418652f624c161b7ad6 On Wed, 21 Nov 2012 13:25:27 -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 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