This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: newbie question: need arm9 native gdb; how to compile gdb source for arm9?
- From: "Wolcott, Ken (MED, Compuware)" <Ken dot Wolcott at med dot ge dot com>
- To: kleine-budde at gmx dot de
- Cc: gdb mailing list <gdb at sources dot redhat dot com>, crossgcc at sources dot redhat dot com
- Date: Mon, 27 Oct 2003 14:23:13 -0600
- Subject: Re: newbie question: need arm9 native gdb; how to compile gdb source for arm9?
- Organization: GEMS-IT
- References: <200310271003.17884.ken.wolcott@med.ge.com> <20031027164136.GA21818@timberwolf.dyndns.org>
- Reply-to: "Wolcott, Ken (MED, Compuware)" <ken dot wolcott at med dot ge dot com>
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)
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.
> > How do I compile an arm9 gdb from source? I know how to compile a native
> > gdb from source.
> >
> > configure --with-gcc=/mumble/../gcc where this is the path to the arm9
> > gcc doesn't result in an arm9 gdb.
>
> You need to compile your gdb on your host system by hand with:
>
> GNU_HOST=i686-unknown-linux-gnu \ (your host system touple)
> GNU_TARGET=arm-linux \ (or whatever your target touple is)
> ./configure \
> --build=$GNU_HOST \
> --host=$GNU_HOST \
> --target=$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=i686-unknown-linux-gnu \
--build=i686-unknown-linux-gnu \
--target=arm-arm9-linux-gnu
But this failed due to the fact that my native gcc and friends are simplly
named "gcc", not "i686-unknown-linux-gnu"...
then I tried:
../gdb-6.0/configure --target=arm-arm9-linux-gnu
which seemed to work fine for a native gdb which (hopefully) understands arm9
corefiles, a crossgdb...
Then I tried:
../gdb-6.0/configure \
--host=arm-arm9-linux-gnu \
--build=i686-unknown-linux-gnu \
--target=arm-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
concat.o dyn-string.o fdmatch.o fibheap.o floatformat.o fnmatch.o getopt.o
getopt1.o getpwd.o getruntime.o hashtab.o hex.o lbasename.o lrealpath.o
make-relative-prefix.o make-temp-file.o objalloc.o obstack.o partition.o
physmem.o pex-unix.o safe-ctype.o sort.o spaces.o splay-tree.o strerror.o
strsignal.o ternary.o xatexit.o xexit.o xmalloc.o xmemdup.o xstrdup.o
xstrerror.o mkstemps.o
make[1]: arm-arm9-linux-gnu-ar: Command not found
make[1]: *** [libiberty.a] Error 127
make[1]: Leaving directory
`/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
crosstool :-(
So, I guess I will try to get a cross compiler built via LSF (Linux From
Scratch at http://www.fr.linuxfromscratch.org/view/lfs-4.1/index.html) and
look further into crosstool scripts...
Ken