* newbie question: need arm9 native gdb; how to compile gdb source for arm9?
@ 2003-10-27 16:01 Wolcott, Ken (MED, Compuware)
2003-10-27 16:37 ` Dan Kegel
2003-10-27 16:41 ` Marc Kleine-Budde
0 siblings, 2 replies; 10+ messages in thread
From: Wolcott, Ken (MED, Compuware) @ 2003-10-27 16:01 UTC (permalink / raw)
To: gdb mailing list; +Cc: crossgcc
Hi;
Here's a newbie question.
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.
Thanks,
Ken Wolcott
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: newbie question: need arm9 native gdb; how to compile gdb source for arm9?
2003-10-27 16:01 newbie question: need arm9 native gdb; how to compile gdb source for arm9? Wolcott, Ken (MED, Compuware)
@ 2003-10-27 16:37 ` Dan Kegel
2003-10-27 16:41 ` Marc Kleine-Budde
1 sibling, 0 replies; 10+ messages in thread
From: Dan Kegel @ 2003-10-27 16:37 UTC (permalink / raw)
To: Wolcott, Ken (MED, Compuware); +Cc: gdb mailing list, crossgcc
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.
Er, did what I posted in http://sources.redhat.com/ml/crossgcc/2003-10/msg00121.html
not help? I gave not only a link to ptxdist, which knows how to build gdb,
but also exactly the Makefile I use to build it.
I suppose I should spell it out more clearly?
- Dan
--
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: newbie question: need arm9 native gdb; how to compile gdb source for arm9?
2003-10-27 16:01 newbie question: need arm9 native gdb; how to compile gdb source for arm9? Wolcott, Ken (MED, Compuware)
2003-10-27 16:37 ` Dan Kegel
@ 2003-10-27 16:41 ` Marc Kleine-Budde
2003-10-27 20:21 ` Wolcott, Ken (MED, Compuware)
1 sibling, 1 reply; 10+ messages in thread
From: Marc Kleine-Budde @ 2003-10-27 16:41 UTC (permalink / raw)
To: Wolcott, Ken (MED, Compuware); +Cc: gdb mailing list, crossgcc
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
--
<Findus> Also Einschalten, Spielen _und_ Brennen mit Linux oder
Einschalten (..) Spielen _oder_ Brennen, Patchen, Patchen, Patchen
mit Windows ;-)
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: newbie question: need arm9 native gdb; how to compile gdb source for arm9?
2003-10-27 16:41 ` Marc Kleine-Budde
@ 2003-10-27 20:21 ` Wolcott, Ken (MED, Compuware)
2003-10-27 20:26 ` Dan Kegel
0 siblings, 1 reply; 10+ messages in thread
From: Wolcott, Ken (MED, Compuware) @ 2003-10-27 20:21 UTC (permalink / raw)
To: kleine-budde; +Cc: gdb mailing list, crossgcc
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: newbie question: need arm9 native gdb; how to compile gdb source for arm9?
2003-10-27 20:21 ` Wolcott, Ken (MED, Compuware)
@ 2003-10-27 20:26 ` Dan Kegel
2003-10-27 20:50 ` Wolcott, Ken (MED, Compuware)
0 siblings, 1 reply; 10+ messages in thread
From: Dan Kegel @ 2003-10-27 20:26 UTC (permalink / raw)
To: Wolcott, Ken (MED, Compuware); +Cc: kleine-budde, gdb mailing list, crossgcc
Wolcott, Ken (MED, Compuware) wrote:
> ../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 :-(
What *do* you have as a result of running crosstool?
Can you do an 'ls' in the bin directory of the toolchain?
Sounds like maybe you just have a path set wrong...
In other words, don't panic, your toolchain is probably fine...
- Dan
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: newbie question: need arm9 native gdb; how to compile gdb source for arm9?
2003-10-27 20:26 ` Dan Kegel
@ 2003-10-27 20:50 ` Wolcott, Ken (MED, Compuware)
2003-10-27 21:12 ` Dan Kegel
0 siblings, 1 reply; 10+ messages in thread
From: Wolcott, Ken (MED, Compuware) @ 2003-10-27 20:50 UTC (permalink / raw)
To: Dan Kegel; +Cc: kleine-budde, gdb mailing list, crossgcc
Hi Dan;
This is my script to build gdb:
**************************************************************
#!/bin/bash
export
PATH="/tuba_local/crosstool/crosstool-0.24/result/arm-arm9-linux-gnu/gcc-3.2.1-glibc-2.3.2/bin:/sbin:/usr/sbin:/usr/bin:/bin"
# This builds an arm9 cross gdb...
# ../gdb-6.0/configure --target=arm-arm9-linux-gnu
# This builds a native arm9 gdb using i686-unknown-linux-gnu to build it...
# ../gdb-6.0/configure --host=arm-arm9-linux-gnu
--build=i686-unknown-linux-gnu --target=arm-arm9-linux-gnu
# only use arm9 tools?
../gdb-6.0/configure --host=arm-arm9-linux-gnu --build=arm-arm9-linux-gnu
--target=arm-arm9-linux-gnu
**************************************************************
This is the output of the ls:
**************************************************************
tuba:/tuba_local/gdb_6.0/build_arm9_gdb_6.0_try3> ls
/tuba_local/crosstool/crosstool-0.24/result/arm-arm9-linux-gnu/gcc-3.2.1-glibc-2.3.2/bin
arm-arm9-linux-gnu-addr2line arm-arm9-linux-gnu-c++filt
arm-arm9-linux-gnu-gccbug arm-arm9-linux-gnu-objcopy
arm-arm9-linux-gnu-size
arm-arm9-linux-gnu-ar arm-arm9-linux-gnu-cpp
arm-arm9-linux-gnu-gcov arm-arm9-linux-gnu-objdump
arm-arm9-linux-gnu-strings
arm-arm9-linux-gnu-as arm-arm9-linux-gnu-g++
arm-arm9-linux-gnu-ld arm-arm9-linux-gnu-ranlib
arm-arm9-linux-gnu-strip
arm-arm9-linux-gnu-c++ arm-arm9-linux-gnu-gcc
arm-arm9-linux-gnu-nm arm-arm9-linux-gnu-readelf
tuba:/tuba_local/gdb_6.0/build_arm9_gdb_6.0_try3>
**************************************************************
Thanks,
Ken
On Monday 27 October 2003 15:15, Dan Kegel wrote:
> Wolcott, Ken (MED, Compuware) wrote:
> > ../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 :-(
>
> What *do* you have as a result of running crosstool?
> Can you do an 'ls' in the bin directory of the toolchain?
> Sounds like maybe you just have a path set wrong...
>
> In other words, don't panic, your toolchain is probably fine...
> - Dan
--
Kenneth A. Wolcott
Consultant, Clinical Systems Engineering
GE Medical Systems Information Technologies
8200 West Tower Avenue, Milwaukee, WI 53223
Phone: 414/362-2720
Email: Ken.Wolcott@med.ge.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: newbie question: need arm9 native gdb; how to compile gdb source for arm9?
2003-10-27 20:50 ` Wolcott, Ken (MED, Compuware)
@ 2003-10-27 21:12 ` Dan Kegel
2003-10-27 21:26 ` Wolcott, Ken (MED, Compuware)
0 siblings, 1 reply; 10+ messages in thread
From: Dan Kegel @ 2003-10-27 21:12 UTC (permalink / raw)
To: Wolcott, Ken (MED, Compuware); +Cc: kleine-budde, gdb mailing list, crossgcc
That all looks fine. Can't imagine why it didn't find ar.
Did you also set PATH when doing the 'make'? All you show
in the script is the 'configure's.
- Dan
Wolcott, Ken (MED, Compuware) wrote:
> Hi Dan;
>
> This is my script to build gdb:
>
> **************************************************************
> #!/bin/bash
>
>
> export
> PATH="/tuba_local/crosstool/crosstool-0.24/result/arm-arm9-linux-gnu/gcc-3.2.1-glibc-2.3.2/bin:/sbin:/usr/sbin:/usr/bin:/bin"
>
> # This builds an arm9 cross gdb...
> # ../gdb-6.0/configure --target=arm-arm9-linux-gnu
>
> # This builds a native arm9 gdb using i686-unknown-linux-gnu to build it...
> # ../gdb-6.0/configure --host=arm-arm9-linux-gnu
> --build=i686-unknown-linux-gnu --target=arm-arm9-linux-gnu
>
> # only use arm9 tools?
> ../gdb-6.0/configure --host=arm-arm9-linux-gnu --build=arm-arm9-linux-gnu
> --target=arm-arm9-linux-gnu
> **************************************************************
>
> This is the output of the ls:
> **************************************************************
> tuba:/tuba_local/gdb_6.0/build_arm9_gdb_6.0_try3> ls
> /tuba_local/crosstool/crosstool-0.24/result/arm-arm9-linux-gnu/gcc-3.2.1-glibc-2.3.2/bin
> arm-arm9-linux-gnu-addr2line arm-arm9-linux-gnu-c++filt
> arm-arm9-linux-gnu-gccbug arm-arm9-linux-gnu-objcopy
> arm-arm9-linux-gnu-size
> arm-arm9-linux-gnu-ar arm-arm9-linux-gnu-cpp
> arm-arm9-linux-gnu-gcov arm-arm9-linux-gnu-objdump
> arm-arm9-linux-gnu-strings
> arm-arm9-linux-gnu-as arm-arm9-linux-gnu-g++
> arm-arm9-linux-gnu-ld arm-arm9-linux-gnu-ranlib
> arm-arm9-linux-gnu-strip
> arm-arm9-linux-gnu-c++ arm-arm9-linux-gnu-gcc
> arm-arm9-linux-gnu-nm arm-arm9-linux-gnu-readelf
> tuba:/tuba_local/gdb_6.0/build_arm9_gdb_6.0_try3>
> **************************************************************
>
> Thanks,
> Ken
>
> On Monday 27 October 2003 15:15, Dan Kegel wrote:
>
>>Wolcott, Ken (MED, Compuware) wrote:
>>
>>>../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 :-(
>>
>>What *do* you have as a result of running crosstool?
>>Can you do an 'ls' in the bin directory of the toolchain?
>>Sounds like maybe you just have a path set wrong...
>>
>>In other words, don't panic, your toolchain is probably fine...
>>- Dan
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: newbie question: need arm9 native gdb; how to compile gdb source for arm9?
2003-10-27 21:12 ` Dan Kegel
@ 2003-10-27 21:26 ` Wolcott, Ken (MED, Compuware)
2003-10-27 22:19 ` Dan Kegel
0 siblings, 1 reply; 10+ messages in thread
From: Wolcott, Ken (MED, Compuware) @ 2003-10-27 21:26 UTC (permalink / raw)
To: Dan Kegel; +Cc: kleine-budde, gdb mailing list, crossgcc
Hi Dan;
I did "export PATH=stuff:"
The script is between the lines of asterisks...
The most recent run can't find nm either :-(
Ken
On Monday 27 October 2003 16:00, Dan Kegel wrote:
> That all looks fine. Can't imagine why it didn't find ar.
>
> Did you also set PATH when doing the 'make'? All you show
> in the script is the 'configure's.
> - Dan
>
> Wolcott, Ken (MED, Compuware) wrote:
> > Hi Dan;
> >
> > This is my script to build gdb:
> >
> > **************************************************************
> > #!/bin/bash
> >
> >
> > export
> > PATH="/tuba_local/crosstool/crosstool-0.24/result/arm-arm9-linux-gnu/gcc-
> >3.2.1-glibc-2.3.2/bin:/sbin:/usr/sbin:/usr/bin:/bin"
> >
> > # This builds an arm9 cross gdb...
> > # ../gdb-6.0/configure --target=arm-arm9-linux-gnu
> >
> > # This builds a native arm9 gdb using i686-unknown-linux-gnu to build
> > it... # ../gdb-6.0/configure --host=arm-arm9-linux-gnu
> > --build=i686-unknown-linux-gnu --target=arm-arm9-linux-gnu
> >
> > # only use arm9 tools?
> > ../gdb-6.0/configure --host=arm-arm9-linux-gnu --build=arm-arm9-linux-gnu
> > --target=arm-arm9-linux-gnu
> > **************************************************************
> >
> > This is the output of the ls:
> > **************************************************************
> > tuba:/tuba_local/gdb_6.0/build_arm9_gdb_6.0_try3> ls
> > /tuba_local/crosstool/crosstool-0.24/result/arm-arm9-linux-gnu/gcc-3.2.1-
> >glibc-2.3.2/bin arm-arm9-linux-gnu-addr2line arm-arm9-linux-gnu-c++filt
> > arm-arm9-linux-gnu-gccbug arm-arm9-linux-gnu-objcopy
> > arm-arm9-linux-gnu-size
> > arm-arm9-linux-gnu-ar arm-arm9-linux-gnu-cpp
> > arm-arm9-linux-gnu-gcov arm-arm9-linux-gnu-objdump
> > arm-arm9-linux-gnu-strings
> > arm-arm9-linux-gnu-as arm-arm9-linux-gnu-g++
> > arm-arm9-linux-gnu-ld arm-arm9-linux-gnu-ranlib
> > arm-arm9-linux-gnu-strip
> > arm-arm9-linux-gnu-c++ arm-arm9-linux-gnu-gcc
> > arm-arm9-linux-gnu-nm arm-arm9-linux-gnu-readelf
> > tuba:/tuba_local/gdb_6.0/build_arm9_gdb_6.0_try3>
> > **************************************************************
> >
> > Thanks,
> > Ken
> >
> > On Monday 27 October 2003 15:15, Dan Kegel wrote:
> >>Wolcott, Ken (MED, Compuware) wrote:
> >>>../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 :-(
> >>
> >>What *do* you have as a result of running crosstool?
> >>Can you do an 'ls' in the bin directory of the toolchain?
> >>Sounds like maybe you just have a path set wrong...
> >>
> >>In other words, don't panic, your toolchain is probably fine...
> >>- Dan
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: newbie question: need arm9 native gdb; how to compile gdb source for arm9?
2003-10-27 21:26 ` Wolcott, Ken (MED, Compuware)
@ 2003-10-27 22:19 ` Dan Kegel
2003-10-27 22:40 ` Wolcott, Ken (MED, Compuware)
0 siblings, 1 reply; 10+ messages in thread
From: Dan Kegel @ 2003-10-27 22:19 UTC (permalink / raw)
To: Wolcott, Ken (MED, Compuware); +Cc: kleine-budde, gdb mailing list, crossgcc
Hi Ken,
that's odd; all that's between the ***'s in your message are aa bunch
of configure runs. You didn't actually build anything.
- Dan
Wolcott, Ken (MED, Compuware) wrote:
> Hi Dan;
>
> I did "export PATH=stuff:"
>
> The script is between the lines of asterisks...
>
> The most recent run can't find nm either :-(
>
> Ken
>
> On Monday 27 October 2003 16:00, Dan Kegel wrote:
>
>>That all looks fine. Can't imagine why it didn't find ar.
>>
>>Did you also set PATH when doing the 'make'? All you show
>>in the script is the 'configure's.
>>- Dan
>>
>>Wolcott, Ken (MED, Compuware) wrote:
>>
>>>Hi Dan;
>>>
>>> This is my script to build gdb:
>>>
>>>**************************************************************
>>>#!/bin/bash
>>>
>>>
>>>export
>>>PATH="/tuba_local/crosstool/crosstool-0.24/result/arm-arm9-linux-gnu/gcc-
>>>3.2.1-glibc-2.3.2/bin:/sbin:/usr/sbin:/usr/bin:/bin"
>>>
>>># This builds an arm9 cross gdb...
>>># ../gdb-6.0/configure --target=arm-arm9-linux-gnu
>>>
>>># This builds a native arm9 gdb using i686-unknown-linux-gnu to build
>>>it... # ../gdb-6.0/configure --host=arm-arm9-linux-gnu
>>>--build=i686-unknown-linux-gnu --target=arm-arm9-linux-gnu
>>>
>>># only use arm9 tools?
>>>../gdb-6.0/configure --host=arm-arm9-linux-gnu --build=arm-arm9-linux-gnu
>>>--target=arm-arm9-linux-gnu
>>>**************************************************************
>>>
>>>This is the output of the ls:
>>>**************************************************************
>>>tuba:/tuba_local/gdb_6.0/build_arm9_gdb_6.0_try3> ls
>>>/tuba_local/crosstool/crosstool-0.24/result/arm-arm9-linux-gnu/gcc-3.2.1-
>>>glibc-2.3.2/bin arm-arm9-linux-gnu-addr2line arm-arm9-linux-gnu-c++filt
>>>arm-arm9-linux-gnu-gccbug arm-arm9-linux-gnu-objcopy
>>>arm-arm9-linux-gnu-size
>>>arm-arm9-linux-gnu-ar arm-arm9-linux-gnu-cpp
>>>arm-arm9-linux-gnu-gcov arm-arm9-linux-gnu-objdump
>>>arm-arm9-linux-gnu-strings
>>>arm-arm9-linux-gnu-as arm-arm9-linux-gnu-g++
>>>arm-arm9-linux-gnu-ld arm-arm9-linux-gnu-ranlib
>>>arm-arm9-linux-gnu-strip
>>>arm-arm9-linux-gnu-c++ arm-arm9-linux-gnu-gcc
>>>arm-arm9-linux-gnu-nm arm-arm9-linux-gnu-readelf
>>>tuba:/tuba_local/gdb_6.0/build_arm9_gdb_6.0_try3>
>>>**************************************************************
>>>
>>>Thanks,
>>>Ken
>>>
>>>On Monday 27 October 2003 15:15, Dan Kegel wrote:
>>>
>>>>Wolcott, Ken (MED, Compuware) wrote:
>>>>
>>>>>../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 :-(
>>>>
>>>>What *do* you have as a result of running crosstool?
>>>>Can you do an 'ls' in the bin directory of the toolchain?
>>>>Sounds like maybe you just have a path set wrong...
>>>>
>>>>In other words, don't panic, your toolchain is probably fine...
>>>>- Da
>
> n
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: newbie question: need arm9 native gdb; how to compile gdb source for arm9?
2003-10-27 22:19 ` Dan Kegel
@ 2003-10-27 22:40 ` Wolcott, Ken (MED, Compuware)
0 siblings, 0 replies; 10+ messages in thread
From: Wolcott, Ken (MED, Compuware) @ 2003-10-27 22:40 UTC (permalink / raw)
To: Dan Kegel; +Cc: kleine-budde, gdb mailing list, crossgcc
Hi Dan;
#!/bin/bash
export
PATH="/tuba_local/crosstool/crosstool-0.24/result/arm-arm9-linux-gnu/gcc-3.2.1-glibc-2.3.2/bin:/sbin:/usr/sbin:/usr/bin:/bin"
...
configure calls
...
Ken
On Monday 27 October 2003 17:08, Dan Kegel wrote:
> Hi Ken,
> that's odd; all that's between the ***'s in your message are aa bunch
> of configure runs. You didn't actually build anything.
> - Dan
>
> Wolcott, Ken (MED, Compuware) wrote:
> > Hi Dan;
> >
> > I did "export PATH=stuff:"
> >
> > The script is between the lines of asterisks...
> >
> > The most recent run can't find nm either :-(
> >
> > Ken
> >
> > On Monday 27 October 2003 16:00, Dan Kegel wrote:
> >>That all looks fine. Can't imagine why it didn't find ar.
> >>
> >>Did you also set PATH when doing the 'make'? All you show
> >>in the script is the 'configure's.
> >>- Dan
> >>
> >>Wolcott, Ken (MED, Compuware) wrote:
> >>>Hi Dan;
> >>>
> >>> This is my script to build gdb:
> >>>
> >>>**************************************************************
> >>>#!/bin/bash
> >>>
> >>>
> >>>export
> >>>PATH="/tuba_local/crosstool/crosstool-0.24/result/arm-arm9-linux-gnu/gcc
> >>>- 3.2.1-glibc-2.3.2/bin:/sbin:/usr/sbin:/usr/bin:/bin"
> >>>
> >>># This builds an arm9 cross gdb...
> >>># ../gdb-6.0/configure --target=arm-arm9-linux-gnu
> >>>
> >>># This builds a native arm9 gdb using i686-unknown-linux-gnu to build
> >>>it... # ../gdb-6.0/configure --host=arm-arm9-linux-gnu
> >>>--build=i686-unknown-linux-gnu --target=arm-arm9-linux-gnu
> >>>
> >>># only use arm9 tools?
> >>>../gdb-6.0/configure --host=arm-arm9-linux-gnu
> >>> --build=arm-arm9-linux-gnu --target=arm-arm9-linux-gnu
> >>>**************************************************************
> >>>
> >>>This is the output of the ls:
> >>>**************************************************************
> >>>tuba:/tuba_local/gdb_6.0/build_arm9_gdb_6.0_try3> ls
> >>>/tuba_local/crosstool/crosstool-0.24/result/arm-arm9-linux-gnu/gcc-3.2.1
> >>>- glibc-2.3.2/bin arm-arm9-linux-gnu-addr2line
> >>> arm-arm9-linux-gnu-c++filt arm-arm9-linux-gnu-gccbug
> >>> arm-arm9-linux-gnu-objcopy
> >>>arm-arm9-linux-gnu-size
> >>>arm-arm9-linux-gnu-ar arm-arm9-linux-gnu-cpp
> >>>arm-arm9-linux-gnu-gcov arm-arm9-linux-gnu-objdump
> >>>arm-arm9-linux-gnu-strings
> >>>arm-arm9-linux-gnu-as arm-arm9-linux-gnu-g++
> >>>arm-arm9-linux-gnu-ld arm-arm9-linux-gnu-ranlib
> >>>arm-arm9-linux-gnu-strip
> >>>arm-arm9-linux-gnu-c++ arm-arm9-linux-gnu-gcc
> >>>arm-arm9-linux-gnu-nm arm-arm9-linux-gnu-readelf
> >>>tuba:/tuba_local/gdb_6.0/build_arm9_gdb_6.0_try3>
> >>>**************************************************************
> >>>
> >>>Thanks,
> >>>Ken
> >>>
> >>>On Monday 27 October 2003 15:15, Dan Kegel wrote:
> >>>>Wolcott, Ken (MED, Compuware) wrote:
> >>>>>../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 :-(
> >>>>
> >>>>What *do* you have as a result of running crosstool?
> >>>>Can you do an 'ls' in the bin directory of the toolchain?
> >>>>Sounds like maybe you just have a path set wrong...
> >>>>
> >>>>In other words, don't panic, your toolchain is probably fine...
> >>>>- Da
> >
> > n
--
Kenneth A. Wolcott
Consultant, Clinical Systems Engineering
GE Medical Systems Information Technologies
8200 West Tower Avenue, Milwaukee, WI 53223
Phone: 414/362-2720
Email: Ken.Wolcott@med.ge.com
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2003-10-27 22:40 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-27 16:01 newbie question: need arm9 native gdb; how to compile gdb source for arm9? Wolcott, Ken (MED, Compuware)
2003-10-27 16:37 ` Dan Kegel
2003-10-27 16:41 ` Marc Kleine-Budde
2003-10-27 20:21 ` Wolcott, Ken (MED, Compuware)
2003-10-27 20:26 ` Dan Kegel
2003-10-27 20:50 ` Wolcott, Ken (MED, Compuware)
2003-10-27 21:12 ` Dan Kegel
2003-10-27 21:26 ` Wolcott, Ken (MED, Compuware)
2003-10-27 22:19 ` Dan Kegel
2003-10-27 22:40 ` Wolcott, Ken (MED, Compuware)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox