This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: newbie question: need arm9 native gdb; how to compile gdb source for arm9?



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]