* Re: GDB for Powerpc building problem
[not found] <01090413014602.07728@asia>
@ 2001-09-04 11:02 ` Keith Seitz
2001-09-04 11:35 ` Jerry Hidayat
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Keith Seitz @ 2001-09-04 11:02 UTC (permalink / raw)
To: Jerry Hidayat; +Cc: cygwin, gdb
On Tue, 4 Sep 2001, Jerry Hidayat wrote:
> I need your help guys....
> Basically, I am trying to build GDB 4.17 for PowerPC target. I have installed
> the latest cygwin on my Win NT 4.0 box which also provides a compiler
> (2.95.3-5). Here is the command I put for configuring GDB builder ,
> ./configure --target=powerpc-linux-gnu --prefix=/usr/local/powerpc/bin
> it's configured without any error message.
> but when I do 'make' I see this error,
> ******************************************************
> In file included from sim_calls.c:43:
> ../../gdb/defs.h:51: conflicting types for 'strsignal'
> /usr/include/string.h:70: previous declaration of 'strsignal'
> make[2]: *** [sim_calls.o] Error 1
> make[2]: Leaving directory '/home/paulh/gdb417/gdb-4.17/sim/ppc'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory '/home/paulh/gdb417/gdb-4.17/sim'
> make: *** [all-sim] Error 2
> *******************************************************
You should have waited for a message from the gdb list... But your problem
is very simple: you're buiding for "powerpc-linux-gun". You cannot build
for one OS on another OS. It doesn't (usually) work.
Are you targeting powerpc-linux??? If so, build it on your powerpc-linux
box. If you are building for generic powerpc-eabi or something, then use
"powerpc-eabi" as a target.
Keith
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GDB for Powerpc building problem
2001-09-04 11:02 ` GDB for Powerpc building problem Keith Seitz
@ 2001-09-04 11:35 ` Jerry Hidayat
2001-09-04 12:34 ` Daniel Jacobowitz
2001-09-04 23:51 ` Momchil Velikov
2 siblings, 0 replies; 4+ messages in thread
From: Jerry Hidayat @ 2001-09-04 11:35 UTC (permalink / raw)
To: Keith Seitz; +Cc: cygwin, gdb
> You should have waited for a message from the gdb list... But your problem
> is very simple: you're buiding for "powerpc-linux-gun". You cannot build
> for one OS on another OS. It doesn't (usually) work.
>
> Are you targeting powerpc-linux??? If so, build it on your powerpc-linux
> box. If you are building for generic powerpc-eabi or something, then use
> "powerpc-eabi" as a target.
>
> Keith
Thanks Keith,
No and Yes,
No, I'm not trying to build a GDB that run on linux, what I am trying to do
is to build a GDB that runs on NT4.0/Cygwin.
And, Yes, I'm trying to build a GDB for powerpc target that run on Cygwin.
so in conclusion, I need to be able to debug a PowerPC target from NT/Cygwin.
Jerry
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GDB for Powerpc building problem
2001-09-04 11:02 ` GDB for Powerpc building problem Keith Seitz
2001-09-04 11:35 ` Jerry Hidayat
@ 2001-09-04 12:34 ` Daniel Jacobowitz
2001-09-04 23:51 ` Momchil Velikov
2 siblings, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2001-09-04 12:34 UTC (permalink / raw)
To: Keith Seitz; +Cc: Jerry Hidayat, cygwin, gdb
On Tue, Sep 04, 2001 at 11:02:54AM -0700, Keith Seitz wrote:
> On Tue, 4 Sep 2001, Jerry Hidayat wrote:
>
> > I need your help guys....
> > Basically, I am trying to build GDB 4.17 for PowerPC target. I have installed
> > the latest cygwin on my Win NT 4.0 box which also provides a compiler
> > (2.95.3-5). Here is the command I put for configuring GDB builder ,
> > ./configure --target=powerpc-linux-gnu --prefix=/usr/local/powerpc/bin
> > it's configured without any error message.
> > but when I do 'make' I see this error,
> > ******************************************************
> > In file included from sim_calls.c:43:
> > ../../gdb/defs.h:51: conflicting types for 'strsignal'
> > /usr/include/string.h:70: previous declaration of 'strsignal'
> > make[2]: *** [sim_calls.o] Error 1
> > make[2]: Leaving directory '/home/paulh/gdb417/gdb-4.17/sim/ppc'
> > make[1]: *** [all] Error 2
> > make[1]: Leaving directory '/home/paulh/gdb417/gdb-4.17/sim'
> > make: *** [all-sim] Error 2
> > *******************************************************
Try a newer GDB version. I believe this is caused by a change in
headers in Cygwin very recently; you may need a current CVS snapshot in
order to fix it.
> You should have waited for a message from the gdb list... But your problem
> is very simple: you're buiding for "powerpc-linux-gun". You cannot build
> for one OS on another OS. It doesn't (usually) work.
Huh? I build Solaris-x-Linux and Cygwin-x-Linux debuggers fairly
frequently. Cross debuggers take some care not to use target-specific
headers in the target-dependent files for exactly this reason.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GDB for Powerpc building problem
2001-09-04 11:02 ` GDB for Powerpc building problem Keith Seitz
2001-09-04 11:35 ` Jerry Hidayat
2001-09-04 12:34 ` Daniel Jacobowitz
@ 2001-09-04 23:51 ` Momchil Velikov
2 siblings, 0 replies; 4+ messages in thread
From: Momchil Velikov @ 2001-09-04 23:51 UTC (permalink / raw)
To: Keith Seitz; +Cc: Jerry Hidayat, cygwin, gdb
>>>>> "Keith" == Keith Seitz <keiths@cygnus.com> writes:
Keith> You should have waited for a message from the gdb list... But your problem
Keith> is very simple: you're buiding for "powerpc-linux-gun". You cannot build
Keith> for one OS on another OS. It doesn't (usually) work.
You can, of course, and it usualy works, provided that you have
installed the target OS headers and libs in the appropriate places.
Regards,
-velco
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-09-04 23:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <01090413014602.07728@asia>
2001-09-04 11:02 ` GDB for Powerpc building problem Keith Seitz
2001-09-04 11:35 ` Jerry Hidayat
2001-09-04 12:34 ` Daniel Jacobowitz
2001-09-04 23:51 ` Momchil Velikov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox