From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26476 invoked by alias); 20 Aug 2003 14:17:30 -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 26408 invoked from network); 20 Aug 2003 14:17:21 -0000 Received: from unknown (HELO cam-admin0.cambridge.arm.com) (193.131.176.54) by sources.redhat.com with SMTP; 20 Aug 2003 14:17:21 -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 PAA04259; Wed, 20 Aug 2003 15:17:05 +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 PAA26836; Wed, 20 Aug 2003 15:17:03 +0100 (BST) Subject: Re: Cross Compiling GDB To: Izo Cc: gdb@sources.redhat.com Message-ID: From: Chris.Pedley@arm.com Date: Wed, 20 Aug 2003 14:17:00 -0000 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-SW-Source: 2003-08/txt/msg00235.txt.bz2 On 20/08/2003 15:03:16 Izo wrote: >Chris.Pedley@arm.com wrote: >>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 >> >> > >So you are building the gdb with the ix86 machine - so >host="i386-linux", or better (if you are using PIV - host="i686-linux") >So you are building for the arm target ==> target="arm-linux" >So the build is (amongst other builds) build="arm-linux" > >configure --prefix=whatever --host="i686-linux" --target="arm-linux" >--build="arm-linux" > >Consider using the export CFLAGS/CXXFLAGS="-fsigned-char -mcpu=one of >the arm ones -march=right one" prior to running configure to get the >properly working and optimized code for your target. Especially the >-fsigned-char (see the newest DrDobbsJournal for other ARM >compatibility/portability issues) > So you think host should be i386-linux, but the previous email in this thread suggests that Daniel Jacobowitz gets it to build with the host as arm-linux. Can someone please give me a definition of, or the document that defines the meaning of host, target and build? 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