From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28192 invoked by alias); 27 Oct 2003 20:21:45 -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 28176 invoked from network); 27 Oct 2003 20:21:44 -0000 Received: from unknown (HELO ext-nj2gw-5.online-age.net) (64.14.56.41) by sources.redhat.com with SMTP; 27 Oct 2003 20:21:44 -0000 Received: from int-nj2gw-3.online-age.net (int-nj2gw-3 [3.159.236.67]) by ext-nj2gw-5.online-age.net (8.12.9/8.12.9/990426-RLH) with ESMTP id h9RKLZQB012261; Mon, 27 Oct 2003 15:21:35 -0500 (EST) Received: from uswaumsxb4medge.med.ge.com (localhost [127.0.0.1]) by int-nj2gw-3.online-age.net (8.12.9/8.12.8/990426-RLH) with ESMTP id h9RKLXEA004920; Mon, 27 Oct 2003 15:21:34 -0500 (EST) Received: by uswaumsxb4medge.med.ge.com with Internet Mail Service (5.5.2656.59) id ; Mon, 27 Oct 2003 14:18:24 -0600 Received: from tuba.moneng.mei.com ([3.20.87.235]) by uswaumsxbhmedge.med.ge.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id VVRBMK10; Mon, 27 Oct 2003 14:21:25 -0600 From: "Wolcott, Ken (MED, Compuware)" Reply-To: "Wolcott, Ken (MED, Compuware)" To: kleine-budde@gmx.de Cc: gdb mailing list , crossgcc@sources.redhat.com Content-Type: text/plain; charset="iso-8859-1" Organization: GEMS-IT Subject: Re: newbie question: need arm9 native gdb; how to compile gdb source for arm9? Date: Mon, 27 Oct 2003 20:21:00 -0000 User-Agent: KMail/1.4.3 References: <200310271003.17884.ken.wolcott@med.ge.com> <20031027164136.GA21818@timberwolf.dyndns.org> In-Reply-To: <20031027164136.GA21818@timberwolf.dyndns.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200310271423.13383.ken.wolcott@med.ge.com> X-SW-Source: 2003-10/txt/msg00294.txt.bz2 On Monday 27 October 2003 10:41, Marc Kleine-Budde wrote: > On Mon, Oct 27, 2003 at 10:03:17AM -0600, Wolcott, Ken (MED, Compuware)=20 wrote: > > I have an arm9 cross compiler tool chain created by Dan Kegel's > > crosstool (http://www.kegel.com/crosstool/). My developers want a gdb > > that can grok an arm9 coredump. They think that they need an arm9 gdb.= =20 > > How do I compile an arm9 gdb from source? I know how to compile a nati= ve > > gdb from source. > > > > configure --with-gcc=3D/mumble/../gcc where this is the path to the a= rm9 > > gcc doesn't result in an arm9 gdb. > > You need to compile your gdb on your host system by hand with: > > GNU_HOST=3Di686-unknown-linux-gnu \ (your host system touple) > GNU_TARGET=3Darm-linux \ (or whatever your target touple is) > ./configure \ > --build=3D$GNU_HOST \ > --host=3D$GNU_HOST \ > --target=3D$GNU_TARGET > > or use a sophisticated tool like (is here tool advertising allowed :) > ptxdist...(http://ptxdist.sf.net) that can also be used with an external > toolchain from dan's crosstool....please use the CVS version of ptxdist > > hth - Marc Hi Marc; Thanks for your help. First tried the following: ../gdb-6.0/configure \ --host=3Di686-unknown-linux-gnu \ --build=3Di686-unknown-linux-gnu \ --target=3Darm-arm9-linux-gnu But this failed due to the fact that my native gcc and friends are simplly= =20 named "gcc", not "i686-unknown-linux-gnu"... then I tried: ../gdb-6.0/configure --target=3Darm-arm9-linux-gnu which seemed to work fine for a native gdb which (hopefully) understands ar= m9=20 corefiles, a crossgdb... Then I tried: ../gdb-6.0/configure \ --host=3Darm-arm9-linux-gnu \ --build=3Di686-unknown-linux-gnu \ --target=3Darm-arm9-linux-gnu because I want a native arm9 gdb they can run on the board itself. This failed due to: ***************************************************************************= ******************** arm-arm9-linux-gnu-ar rc libiberty.a \ regex.o cplus-dem.o cp-demangle.o md5.o alloca.o argv.o choose-temp.o=20 concat.o dyn-string.o fdmatch.o fibheap.o floatformat.o fnmatch.o getopt.o= =20 getopt1.o getpwd.o getruntime.o hashtab.o hex.o lbasename.o lrealpath.o=20 make-relative-prefix.o make-temp-file.o objalloc.o obstack.o partition.o=20 physmem.o pex-unix.o safe-ctype.o sort.o spaces.o splay-tree.o strerror.o=20 strsignal.o ternary.o xatexit.o xexit.o xmalloc.o xmemdup.o xstrdup.o=20 xstrerror.o mkstemps.o make[1]: arm-arm9-linux-gnu-ar: Command not found make[1]: *** [libiberty.a] Error 127 make[1]: Leaving directory=20 `/tuba_local/gdb_6.0/build_arm9_gdb_6.0_try2/libiberty' make: *** [all-libiberty] Error 2 ***************************************************************************= ******************** I don't have an arm-arm9-linux-gnu-ar executeable as a result of running=20 crosstool :-( So, I guess I will try to get a cross compiler built via LSF (Linux From=20 Scratch at http://www.fr.linuxfromscratch.org/view/lfs-4.1/index.html) and= =20 look further into crosstool scripts... Ken