From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PvwnT-0001CY-1k for garchives@archives.gentoo.org; Sat, 05 Mar 2011 19:05:47 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ABA131C0B3 for ; Sat, 5 Mar 2011 19:05:46 +0000 (UTC) Received: from mail-iy0-f181.google.com (mail-iy0-f181.google.com [209.85.210.181]) by pigeon.gentoo.org (Postfix) with ESMTP id A752A1C040 for ; Sat, 5 Mar 2011 18:33:17 +0000 (UTC) Received: by iyb26 with SMTP id 26so3966578iyb.40 for ; Sat, 05 Mar 2011 10:33:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=aUl5dNjoBBmNY1hzdju5YrG5XzsjaBmklbM4ZjaYxY8=; b=IWCrZyEtVkvM0W+OBk9+VsMi7s1UFvj4YLX4FE+5yvrDHgbGuF/ZMZscSEYItM09jb FJ0dDkwYtnqV45SgMextCM9HP4iLAAsZELVVtcSogjjNXLcnUx5rrgUaqFNbORy1YiVp 6Pj7xUUXYzHWMLr2ayX6afbHJXigeGSzc4qt0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=x/rrp6Gl0bPgV7adCUwN07ARklP9EFzKFW6Mx2PKs0NK/PYowlArU0KVGTNtOltAT0 gNYr5I78sa5MPn7ox03kZHsHzlUGk41ohj4vIhds2ymJqRjUhBNbjoALNMDft0L97Khv dFJJ3rRTUdANdLpUEqDiweY+zML4OXvtDlXWU= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@lists.gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org MIME-Version: 1.0 Received: by 10.43.65.211 with SMTP id xn19mr2455219icb.174.1299349996681; Sat, 05 Mar 2011 10:33:16 -0800 (PST) Received: by 10.231.166.143 with HTTP; Sat, 5 Mar 2011 10:33:16 -0800 (PST) In-Reply-To: References: Date: Sat, 5 Mar 2011 21:33:16 +0300 Message-ID: Subject: [gentoo-embedded] Re: libgcc_s.so and gcc-config on embedded system From: Sergey Mironov To: gentoo-embedded@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 54b9fd2c04b8bf7d4e45f4efc6c6b024 2011/3/5 Sergey Mironov : > Hi. I recently faced (probably well-known) problem while setting up my em= bedded > /usr/arm-module3-linux-gnueabi =A0system tree. The problem is that > /lib/libgcc_s.so does not exist. Here is typical error message: > > ~ # bash > bash: error while loading shared libraries: libgcc_s.so.1: cannot open > shared object file: No such file or directory > > I know that there is a workaround - =A0copying this lib from > /usr/lib/gcc/.. to /usr/lib (paths are relative to arm's root). Also, > manual [1] suggests installing gcc on target system and using host's > gcc-config. I tried it and failed. My actions were: > > emerge-arm-module3-linux-gnueabi gcc > ROOT=3D/usr/arm-module3-linux-gnueabi gcc-config -l > > I looked inside host's gcc-config. Looks like it only works with > NATIVE compiler's libgcc_s.so. It treats arm's gcc as cross-compiler > despite the fact that arm's gcc is actually native for arm system. > Well, I install gcc-config on arm. It turns out, that gcc-config > depends on libgcc_s itself. > > ~ # gcc-config > /bin/bash: error while loading shared libraries: libgcc_s.so.1: cannot > open shared object file: No such file or directory > > Funny. Should I mail gcc-config bug? > > Sergey. > > [1] http://gentoo.mindzoo.de/index.cgi/wiki/Cross%20Install > [2] http://www.gossamer-threads.com/lists/gentoo/amd64/190796 > Heh, too slow. gcc-config is bash-script and it is bash who depends on libgcc_s.so. Well, looks like choosing bash was not wise enough. Sergey