From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18507 invoked by alias); 12 Jan 2006 00:12:36 -0000 Received: (qmail 1053 invoked by uid 22791); 12 Jan 2006 00:03:23 -0000 X-Spam-Check-By: sourceware.org Received: from fallbackmx01.syd.optusnet.com.au (HELO fallbackmx01.syd.optusnet.com.au) (211.29.132.93) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 12 Jan 2006 00:03:21 +0000 Received: from mail07.syd.optusnet.com.au (mail07.syd.optusnet.com.au [211.29.132.188]) by fallbackmx01.syd.optusnet.com.au (8.11.6/8.11.6) with ESMTP id k0BM0Om27900 for ; Thu, 12 Jan 2006 09:00:24 +1100 Received: from localhost.localdomain (webmail03.syd.optusnet.com.au [211.29.132.237]) by mail07.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k0BM0FAf009817; Thu, 12 Jan 2006 09:00:16 +1100 Message-Id: <200601112200.k0BM0FAf009817@mail07.syd.optusnet.com.au> Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: binary Mime-Version: 1.0 Received: from WTCGW.WTC.COM.AU ([203.44.93.226]) by webmail03.syd.optusnet.com.au with http (user=jamessteward@optusnet.com.au); Thu, 12 Jan 2006 09:00:15 +1100 From: James Steward To: Simon Richter Cc: gdb@sources.redhat.com Date: Thu, 12 Jan 2006 00:12:00 -0000 Subject: Re: Re: Really cross compiling gdb. Reply-To: jamessteward@optusnet.com.au X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-01/txt/msg00092.txt.bz2 Hi Simon, > Simon Richter wrote: > > Hello, > > James Steward wrote: > > > This development board has heaps of RAM and CF disk space so I > > thought about compiling gdb to run on the development platform but > > alas with the --host=arm-xscale-linux-gnu and > > --target=arm-xscale-linux-gnu and the readline workaround the gdb > > application is still a i386 executable (the build machine). > > Setting both host and target should usually work, however IIRC there are > > a few broken configure scripts out there that set build=host if only > host is given, later on determine that build==host, so it's obviously a > native build and no cross compiler prefix is needed, so the host gcc is > used. > > Setting "--build=`./config.guess`" or something similar worked for us, > at least. :-) > > Simon Thanks for the tip - but it doesn't seem to have worked for me :-( My configure command now looks like this. ../configure --prefix=/usr/local/arm-linux/gcc-3.4.4-glibc-2.3.5/arm-xscale-linux-gnu/ --program-prefix=arm-xscale-linux-gnu- --build=`../config.guess` --target=arm-xscale-linux-gnu --host=arm-xscale-linux-gnu Still the i386 gcc is used rather than the cross arm-xscale-linux-gnu-gcc, and of course file gdb/gdb says ; gdb/gdb: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), not stripped When I was hoping for an ARM executable. I configured and compiled in a fresh subdir so as not to have any old files laying around from previous attemps. Is it worth noting that the sources are from Debians stable sources.. gdb_6.3.orig.tar.gz gdb_6.3-6.diff.gz Maybe do I need to set CC=arm-xscale-linux-gnu-gcc or something? I think I tried that yesterday and it wasn't helping - but maybe with the --build set as well? I appreciate your thoughts. Regards, James.