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 1PvwlU-0000qi-Fb for garchives@archives.gentoo.org; Sat, 05 Mar 2011 19:03:45 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3D4F31C0CD for ; Sat, 5 Mar 2011 19:03:43 +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 3C46CE0458 for ; Sat, 5 Mar 2011 18:23:44 +0000 (UTC) Received: by iyb26 with SMTP id 26so3960041iyb.40 for ; Sat, 05 Mar 2011 10:23:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=bnCLwbuuep9aXvFM1duZtXUjmBcL2Akl/XsiBHhfcNk=; b=rXIWrIQGI7jJccUdzQ7mWdfVHky65KFv2g504pNraQapyykdeKTOeABYiVfKMqobE5 AhiRbIMNzfG1/WhOr1y+DuigG5NLJZXPYrsRn6KZIcZSHp4QWh/EB3cnCzUwKcEGe5TU Hwatju0N9G5e+lQrOCTqdg9IdCPEszI3nwdrQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=QBE0FVuXIyKnuI7GXHYNSyut2W8fcMSO9gS3BNp3r0RFsN++cf0Ai0gcbNv6OMwyhP nTlj0mCz8aCQygwgUG9srnyzcy+vzstR15k4f0bOWrkqrEjJ/nCyzJOZIGfdfI0WHRsH cVhBalLVHTWTJiMEKOtRcJuMpPGWUwGW/OrQQ= 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.42.178.9 with SMTP id bk9mr615068icb.107.1299349423051; Sat, 05 Mar 2011 10:23:43 -0800 (PST) Received: by 10.231.166.143 with HTTP; Sat, 5 Mar 2011 10:23:43 -0800 (PST) Date: Sat, 5 Mar 2011 21:23:43 +0300 Message-ID: Subject: [gentoo-embedded] 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 X-Archives-Salt: X-Archives-Hash: c20099bf9a6ae17c450a74fd82adfaf0 Hi. I recently faced (probably well-known) problem while setting up my embedded /usr/arm-module3-linux-gnueabi system 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 - copying 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=/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