* Fw: error in ppc-linux-nat.c - cross-compiling gdb 61. for powerpc -linux
@ 2004-04-13 14:18 Ashish Goyal
2004-04-13 14:26 ` Daniel Jacobowitz
0 siblings, 1 reply; 6+ messages in thread
From: Ashish Goyal @ 2004-04-13 14:18 UTC (permalink / raw)
To: gdb
Hi,
My compilations fails in ppc-linux-nat.c . I am cross compiling gdb6.1 with
gcc-3.3.1 on redhat linux 9.0. Here are the commands I run.
./configure --host=powerpc-linux --target=powerpc-linux --without-sim
make
Must remake target `ppc-linux-nat.o'.
gcc -c -g -O2 -I. -I. -I./config -DLOCALEDIR="\"/usr/local/share/locale\"
" -DHAVE_CONFIG_H -I./../include/opcode -I./../readline/.. -I../bfd -I./../b
fd -I./../include -I../intl -I./../intl -DMI_OUT=1 -DTUI=1 -Wimplicit -Wret
urn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wunin
itialized -Wformat-nonliteral -Wunused-label -Wunused-function
ppc-linux-nat.c
Putting child 0x08132218 (ppc-linux-nat.o) PID 28728 on the chain.
Live child 0x08132218 (ppc-linux-nat.o) PID 28728
ppc-linux-nat.c: In function `ppc_register_u_addr':
ppc-linux-nat.c:136: `PT_R0' undeclared (first use in this function)
ppc-linux-nat.c:136: (Each undeclared identifier is reported only once
ppc-linux-nat.c:136: for each function it appears in.)
ppc-linux-nat.c:142: `PT_FPR0' undeclared (first use in this function)
ppc-linux-nat.c:146: `PT_NIP' undeclared (first use in this function)
ppc-linux-nat.c:148: `PT_LNK' undeclared (first use in this function)
ppc-linux-nat.c:150: `PT_CCR' undeclared (first use in this function)
ppc-linux-nat.c:152: `PT_XER' undeclared (first use in this function)
ppc-linux-nat.c:154: `PT_CTR' undeclared (first use in this function)
ppc-linux-nat.c:160: `PT_MSR' undeclared (first use in this function)
ppc-linux-nat.c:162: `PT_FPSCR' undeclared (first use in this function)
ppc-linux-nat.c: In function `fill_gregset':
ppc-linux-nat.c:529: `PT_R0' undeclared (first use in this function)
ppc-linux-nat.c:533: `PT_NIP' undeclared (first use in this function)
ppc-linux-nat.c:535: `PT_LNK' undeclared (first use in this function)
ppc-linux-nat.c:537: `PT_CCR' undeclared (first use in this function)
ppc-linux-nat.c:539: `PT_XER' undeclared (first use in this function)
ppc-linux-nat.c:541: `PT_CTR' undeclared (first use in this function)
ppc-linux-nat.c:548: `PT_MSR' undeclared (first use in this function)
ppc-linux-nat.c: In function `fill_fpregset':
ppc-linux-nat.c:570: invalid operands to binary +
ppc-linux-nat.c:573: invalid operands to binary +
/usr/include/sys/stat.h: At top level:
ppc-linux-nat.c:169: warning: `ppc_ptrace_cannot_fetch_store_register'
defined but not used
Got a SIGCHLD; 1 unreaped children.
Reaping losing child 0x08132218 PID 28728
make[1]: *** [ppc-linux-nat.o] Error 1
Thanks,
Ashish
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Fw: error in ppc-linux-nat.c - cross-compiling gdb 61. for powerpc -linux
2004-04-13 14:26 ` Daniel Jacobowitz
@ 2004-04-13 14:26 ` Ashish Goyal
2004-04-13 15:12 ` Daniel Jacobowitz
0 siblings, 1 reply; 6+ messages in thread
From: Ashish Goyal @ 2004-04-13 14:26 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: gdb
> On Tue, Apr 13, 2004 at 09:18:16AM -0500, Ashish Goyal wrote:
> >
> >
> >
> > Hi,
> > My compilations fails in ppc-linux-nat.c . I am cross compiling gdb6.1
with
> > gcc-3.3.1 on redhat linux 9.0. Here are the commands I run.
> > ./configure --host=powerpc-linux --target=powerpc-linux --without-sim
> >
> > make
> >
> > Must remake target `ppc-linux-nat.o'.
> >
gcc -c -g -O2 -I. -I. -I./config -DLOCALEDIR="\"/usr/local/share/locale\"
> >
" -DHAVE_CONFIG_H -I./../include/opcode -I./../readline/.. -I../bfd -I./../b
> >
fd -I./../include -I../intl -I./../intl -DMI_OUT=1 -DTUI=1 -Wimplicit -Wret
> >
urn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wunin
> > itialized -Wformat-nonliteral -Wunused-label -Wunused-function
> > ppc-linux-nat.c
>
> What are you trying to do? You're using the system (x86) GCC and
> --host=powerpc-linux means you want to build a PowerPC binary.
Thats correct - I am trying to build a gdb that would run on powerpc-linux.
Ashish
>
> --
> Daniel Jacobowitz
> MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Fw: error in ppc-linux-nat.c - cross-compiling gdb 61. for powerpc -linux
2004-04-13 14:18 Fw: error in ppc-linux-nat.c - cross-compiling gdb 61. for powerpc -linux Ashish Goyal
@ 2004-04-13 14:26 ` Daniel Jacobowitz
2004-04-13 14:26 ` Ashish Goyal
0 siblings, 1 reply; 6+ messages in thread
From: Daniel Jacobowitz @ 2004-04-13 14:26 UTC (permalink / raw)
To: Ashish Goyal; +Cc: gdb
On Tue, Apr 13, 2004 at 09:18:16AM -0500, Ashish Goyal wrote:
>
>
>
> Hi,
> My compilations fails in ppc-linux-nat.c . I am cross compiling gdb6.1 with
> gcc-3.3.1 on redhat linux 9.0. Here are the commands I run.
> ./configure --host=powerpc-linux --target=powerpc-linux --without-sim
>
> make
>
> Must remake target `ppc-linux-nat.o'.
> gcc -c -g -O2 -I. -I. -I./config -DLOCALEDIR="\"/usr/local/share/locale\"
> " -DHAVE_CONFIG_H -I./../include/opcode -I./../readline/.. -I../bfd -I./../b
> fd -I./../include -I../intl -I./../intl -DMI_OUT=1 -DTUI=1 -Wimplicit -Wret
> urn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wunin
> itialized -Wformat-nonliteral -Wunused-label -Wunused-function
> ppc-linux-nat.c
What are you trying to do? You're using the system (x86) GCC and
--host=powerpc-linux means you want to build a PowerPC binary.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Fw: error in ppc-linux-nat.c - cross-compiling gdb 61. for powerpc -linux
2004-04-13 14:26 ` Ashish Goyal
@ 2004-04-13 15:12 ` Daniel Jacobowitz
0 siblings, 0 replies; 6+ messages in thread
From: Daniel Jacobowitz @ 2004-04-13 15:12 UTC (permalink / raw)
To: Ashish Goyal; +Cc: gdb
On Tue, Apr 13, 2004 at 09:28:02AM -0500, Ashish Goyal wrote:
>
>
> > On Tue, Apr 13, 2004 at 09:18:16AM -0500, Ashish Goyal wrote:
> > >
> > >
> > >
> > > Hi,
> > > My compilations fails in ppc-linux-nat.c . I am cross compiling gdb6.1
> with
> > > gcc-3.3.1 on redhat linux 9.0. Here are the commands I run.
> > > ./configure --host=powerpc-linux --target=powerpc-linux --without-sim
> > >
> > > make
> > >
> > > Must remake target `ppc-linux-nat.o'.
> > >
> gcc -c -g -O2 -I. -I. -I./config -DLOCALEDIR="\"/usr/local/share/locale\"
> > >
> " -DHAVE_CONFIG_H -I./../include/opcode -I./../readline/.. -I../bfd -I./../b
> > >
> fd -I./../include -I../intl -I./../intl -DMI_OUT=1 -DTUI=1 -Wimplicit -Wret
> > >
> urn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wunin
> > > itialized -Wformat-nonliteral -Wunused-label -Wunused-function
> > > ppc-linux-nat.c
> >
> > What are you trying to do? You're using the system (x86) GCC and
> > --host=powerpc-linux means you want to build a PowerPC binary.
>
> Thats correct - I am trying to build a gdb that would run on powerpc-linux.
> Ashish
Then don't use an x86 native GCC to do it.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Fw: error in ppc-linux-nat.c - cross-compiling gdb 61. for powerpc -linux
2004-04-13 20:07 Michael Elizabeth Chastain
@ 2004-04-14 15:08 ` Ashish Goyal
0 siblings, 0 replies; 6+ messages in thread
From: Ashish Goyal @ 2004-04-14 15:08 UTC (permalink / raw)
To: gdb, Michael Elizabeth Chastain
I did use Dan Kegel's cross tools to compile. The reason I cannot drop the
cross compilation is that the target platform is a slow embedded motorola
processor.
Thanks,
Ashish
----- Original Message -----
From: "Michael Elizabeth Chastain" <mec.gnu@mindspring.com>
To: <agoyal@kmvtechnologies.com>; <gdb@sources.redhat.com>
Sent: Tuesday, April 13, 2004 2:58 PM
Subject: Re: Fw: error in ppc-linux-nat.c - cross-compiling gdb 61. for
powerpc -linux
> Like Daniel Jacobowitz said: if you are compiling for execution
> on powerpc-linux, you need a powerpc-linux cross compiler.
>
> Go look for Dan Kegel's cross tools FAQ and read that.
>
> Or, you could just abandon the "cross" part and build your gdb
> on your powerpc-linux box.
>
> Michael C
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Fw: error in ppc-linux-nat.c - cross-compiling gdb 61. for powerpc -linux
@ 2004-04-13 20:07 Michael Elizabeth Chastain
2004-04-14 15:08 ` Ashish Goyal
0 siblings, 1 reply; 6+ messages in thread
From: Michael Elizabeth Chastain @ 2004-04-13 20:07 UTC (permalink / raw)
To: agoyal, gdb
Like Daniel Jacobowitz said: if you are compiling for execution
on powerpc-linux, you need a powerpc-linux cross compiler.
Go look for Dan Kegel's cross tools FAQ and read that.
Or, you could just abandon the "cross" part and build your gdb
on your powerpc-linux box.
Michael C
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-04-14 15:01 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-13 14:18 Fw: error in ppc-linux-nat.c - cross-compiling gdb 61. for powerpc -linux Ashish Goyal
2004-04-13 14:26 ` Daniel Jacobowitz
2004-04-13 14:26 ` Ashish Goyal
2004-04-13 15:12 ` Daniel Jacobowitz
2004-04-13 20:07 Michael Elizabeth Chastain
2004-04-14 15:08 ` Ashish Goyal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox