X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: =?ISO-8859-1?Q?Ren=E9_Berber?= Subject: Re: Fw: CrossCompiling Date: Mon, 19 Dec 2005 19:43:27 -0600 Lines: 44 Message-ID: References: <005501c604ff$1e68e400$6301a8c0 AT eliteprodigy3> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) In-Reply-To: <005501c604ff$1e68e400$6301a8c0@eliteprodigy3> OpenPGP: url=ldap://keyserver.pgp.com X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Jay C. wrote: [snip] > On compiling, it throws the following error. >=20 > /opt/crosstool/gcc-3.4.1-glibc-2.3.2/i686-unknown-linux-gnu/lib/gcc/i686-= unknown-linux-gnu/3.4.1/../../../../i686-unknown-linux-gnu/bin/ld: > cannot find -lgcc_s Just what it says: the linker cannot find library libgcc_s.a (or libgcc_s.s= o if using shared libraries). In general your compiler can tell you where are the libraries it is using: $ gcc -print-libgcc-file-name /usr/lib/gcc/i686-pc-cygwin/3.4.4/libgcc.a $ gcc -print-file-name=3Dlibgcc.a /usr/lib/gcc/i686-pc-cygwin/3.4.4/libgcc.a $ gcc -print-file-name=3Dlibgcc_s.a libgcc_s.a The 3rd test did not find libgcc_s.a and the compiler doesn't show a path b= ut in a way is saying "I'll use it if I find it right here in this directory". > I have glib, glib2, glib-devel, glib2-devel and any other glib packages > I could find installed for Cygwin. If you are cross-compiling those will not work, you need the target librari= es (notice the difference between my libgcc and the one your linker was looking for: .../i686-pc-cygwin/... vs .../i686-unknown-linux/...). In other words, your setup is not complete for doing the cross-compilation = you are trying to do. HTH --=20 Ren=E9 Berber -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/