From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16559 invoked by alias); 20 Aug 2003 13:28:18 -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 16552 invoked from network); 20 Aug 2003 13:28:18 -0000 Received: from unknown (HELO cam-admin0.cambridge.arm.com) (193.131.176.54) by sources.redhat.com with SMTP; 20 Aug 2003 13:28:18 -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 OAA00306; Wed, 20 Aug 2003 14:28:16 +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 OAA23344; Wed, 20 Aug 2003 14:28:15 +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 13:28:00 -0000 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-SW-Source: 2003-08/txt/msg00233.txt.bz2 On 20/08/2003 14:05:30 gdb-owner wrote: >On Wed, Aug 20, 2003 at 10:20:47AM +0100, Chris.Pedley@arm.com wrote: >> 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? > >Can you be a little clearer what you're trying to do? > >First of all, that seems like a really lame bug in readline. But it's >easily fixable. But second, do you want a cross debugger or a native >debugger for a non-cygwin host? $is_cross_compiler is whether the GCC >being built will be a cross compiler - that configure script is shared >with GDB. That's a host vs target issue. So is it definitely a bug, and is it definitely possible to cross compile gdb for other systems than cygwin? I'm trying to build a gdb debugger to be run on ARM Linux to debug apps natively running under ARM Linux. I will be building gdb using the arm-linux-gcc cross compiler on an Intel box, so was trying to configure with: target=arm-linux build=i386-linux host=arm-linux with-headers=/linux-2.4.19/include This will fail because it will report that with-headers is only supported when cross compiling. I'm muddled as to what target, build and host therefore actually are? -- 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