From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26364 invoked by alias); 20 Aug 2003 09:21:56 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 26335 invoked from network); 20 Aug 2003 09:21:50 -0000 Received: from unknown (HELO cam-admin0.cambridge.arm.com) (193.131.176.54) by sources.redhat.com with SMTP; 20 Aug 2003 09:21:50 -0000 Received: from cam-mail2.cambridge.arm.com (cam-mail2.cambridge.arm.com [10.1.127.39]) by cam-admin0.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id KAA11363; Wed, 20 Aug 2003 10:20:49 +0100 (BST) Received: from notescammail2.cambridge.arm.com (notescammail2.cambridge.arm.com [10.1.255.56]) by cam-mail2.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id KAA04711; Wed, 20 Aug 2003 10:20:48 +0100 (BST) Subject: Re: Cross Compiling GDB To: Daniel Jacobowitz Cc: gdb@sources.redhat.com Message-ID: From: Chris.Pedley@arm.com Date: Wed, 20 Aug 2003 09:21:00 -0000 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-SW-Source: 2003-08/txt/msg00231.txt.bz2 On 19/08/2003 19:31:05 gdb-owner wrote: >On Tue, Aug 19, 2003 at 02:00:37PM -0400, Christopher Faylor wrote: >> On Tue, Aug 19, 2003 at 01:43:05PM -0400, Daniel Jacobowitz wrote: >> >On Tue, Aug 19, 2003 at 06:40:12PM +0100, Chris.Pedley@arm.com wrote: >> >>Is it actually possible to cross compile GDB for anything other than >> >>cygwin. In the output from ./configure when trying to configure for >> >>cross compiling using the GNU ARM tools I get the message: configure: >> >>cross-compiling for a non-cygwin target is not supported >> >> >> >>Also, can anyone confirm to me what the exact definitions of host, >> >>target and build are when passed to ./configure? >> >> >> >>Thanks. >> > >> >It sounds like you're using the Cygwin sources for GDB. If you're not >> >building a Cygwin-targeted GDB, don't do that - or direct comments to >> >the cygwin list. >> >> "Cygwin sources for gdb"? The sources for cygwin's gdb are the same as >> for any other platform. > >If so I apologize, but I swear I've heard of local patches from the >cygwin people before. Maybe I was thinking of another tool? > >In any case, that error message doesn't come from the FSF sources >anywhere. > >-- >Daniel Jacobowitz >MontaVista Software Debian GNU/Linux Developer I presume that the GDB at the following location isn't cygwin specific? ftp.gnu.org/gnu/gdb/gdb-5.3.tar.gz However, if you look at line 53 in gdb-5.3/readline/configure.in then it issues the error given above if cross compiling for a non-cygwin target. Also my questions about build, host and target have been raised because I'm unsure about the check for a cross compiler at line 123 in gdb-5.3/configure.in. This checks whether the host and target are the same thing, and only assumes it is a cross compiler if they are different. Why isn't this actually checking build and host? Thanks. -- Chris Pedley, Graduate Engineer Intellectual Property Solutions Division ARM Ltd, 110 Fulbourn Rd, Cambridge CB1 9NJ UK Tel : +44 1223 400847 Fax: +44 1223 400410