From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22600 invoked by alias); 26 Jan 2010 10:38:48 -0000 Received: (qmail 22587 invoked by uid 22791); 26 Jan 2010 10:38:47 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from wmh1.mail.saunalahti.fi (HELO wmh1.mail.saunalahti.fi) (62.142.5.133) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 26 Jan 2010 10:38:33 +0000 Received: from [192.168.0.42] (dsl-olubrasgw1-ff58c000-204.dhcp.inet.fi [88.192.88.204]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: karuottu) by wmh1.mail.saunalahti.fi (Postfix) with ESMTPSA id 89D951FC063; Tue, 26 Jan 2010 12:38:28 +0200 (EET) Message-ID: <4B5EC7AA.8010507@wippies.com> Date: Tue, 26 Jan 2010 10:38:00 -0000 From: Kai Ruottu User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: mahmoodn CC: gcc-help@gcc.gnu.org Subject: Re: cannot find -lc References: <27308008.post@talk.nabble.com> <20100125183340.GW25244@axel> <27318902.post@talk.nabble.com> In-Reply-To: <27318902.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2010-01/txt/msg00245.txt.bz2 mahmoodn wrote: >> The linker states it is not able to find the library libc. >> > I have these: > [mahmood@Saturn minipthreads]$rpm -qa '*libc*' > glibc-headers-2.8-3.i386 > libcurl-devel-7.18.1-1.fc9.i386 > glibc-common-2.8-3.i386 > libcap-devel-2.06-4.fc9.i386 > glibc-2.8-3.i686 > libcap-2.06-4.fc9.i386 > libcurl-7.18.1-1.fc9.i386 > libcdio-0.79-3.fc9.i386 > libconfig-1.2.1-2.fc9.i386 > libcroco-0.6.1-5.fc9.i386 > glibc-devel-2.8-3.i386 > > How about that? Are they correct? > Absolutely NOT ! It looks like that the PPU-toolchain requires TWO glibcs for PPU, 32-bit and 64-bit : [root@Dell lib]# file libc-2.6.so libc-2.6.so: ELF 32-bit MSB shared object, PowerPC or cisco 4500, version 1 (SYSV), for GNU/Linux 2.6.9, not stripped [root@Dell lib]# cd ../lib64 [root@Dell lib64]# file libc-2.6.so libc-2.6.so: ELF 64-bit MSB shared object, 64-bit PowerPC or cisco 7500, version 1 (SYSV), for GNU/Linux 2.6.9, not stripped One is expected to find things like "GCC for PPU" and "glibc for PPU" with very simple net searches... It took me only a few seconds to find the PPU crosstoolchain for a x86 host and the host-independent (but target dependent) glibc or "sysroot" stuff.