Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* What are the necessary libraries to compile a cross gdb?
@ 2006-01-16  6:34 colin
  2006-01-16  6:40 ` Jim Blandy
  0 siblings, 1 reply; 5+ messages in thread
From: colin @ 2006-01-16  6:34 UTC (permalink / raw)
  To: gdb


Hi all,
Our MIPS platform contains only Linux, uClibc, and Busybox.
When I cross-compiling gdb, it seems to lack some libraries to successfully
compile it.
Can I use --disable-* to omit all of these libraries? What are the
necessaries libraries?

Regards,
Colin




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: What are the necessary libraries to compile a cross gdb?
  2006-01-16  6:34 What are the necessary libraries to compile a cross gdb? colin
@ 2006-01-16  6:40 ` Jim Blandy
  2006-01-16 13:46   ` Daniel Jacobowitz
  0 siblings, 1 reply; 5+ messages in thread
From: Jim Blandy @ 2006-01-16  6:40 UTC (permalink / raw)
  To: colin; +Cc: gdb

On 1/15/06, colin <colin@realtek.com.tw> wrote:
> Our MIPS platform contains only Linux, uClibc, and Busybox.
> When I cross-compiling gdb, it seems to lack some libraries to successfully
> compile it.
> Can I use --disable-* to omit all of these libraries? What are the
> necessaries libraries?

First, let me make sure I understand what you're trying to do.  You're
not trying to build a GDB that runs directly on your MIPS platform;
you're trying to build a GDB that runs somewhere else but debugs
programs that are running on your MIPS platform.  Right?  (So you're
not "cross-compiling" GDB; that would mean you were building a gdb
executable which you expected to run on some other platform.  Rather,
you're building GDB as a cross-platform debugger.)

What are the error messages you're getting?  Give us a transcript of
the relevant part of your failing compilation, with context.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: What are the necessary libraries to compile a cross gdb?
  2006-01-16  6:40 ` Jim Blandy
@ 2006-01-16 13:46   ` Daniel Jacobowitz
  2006-01-17  4:34     ` colin
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Jacobowitz @ 2006-01-16 13:46 UTC (permalink / raw)
  To: Jim Blandy; +Cc: colin, gdb

On Sun, Jan 15, 2006 at 10:39:57PM -0800, Jim Blandy wrote:
> On 1/15/06, colin <colin@realtek.com.tw> wrote:
> > Our MIPS platform contains only Linux, uClibc, and Busybox.
> > When I cross-compiling gdb, it seems to lack some libraries to successfully
> > compile it.
> > Can I use --disable-* to omit all of these libraries? What are the
> > necessaries libraries?
> 
> First, let me make sure I understand what you're trying to do.  You're
> not trying to build a GDB that runs directly on your MIPS platform;
> you're trying to build a GDB that runs somewhere else but debugs
> programs that are running on your MIPS platform.  Right?  (So you're
> not "cross-compiling" GDB; that would mean you were building a gdb
> executable which you expected to run on some other platform.  Rather,
> you're building GDB as a cross-platform debugger.)
> 
> What are the error messages you're getting?  Give us a transcript of
> the relevant part of your failing compilation, with context.

From the other direction, to cross compile GDB, you need ncurses or
some other library providing a termcap interface.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: What are the necessary libraries to compile a cross gdb?
  2006-01-17  4:34     ` colin
@ 2006-01-17  3:57       ` Daniel Jacobowitz
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2006-01-17  3:57 UTC (permalink / raw)
  To: colin; +Cc: Jim Blandy, gdb

On Tue, Jan 17, 2006 at 10:10:39AM +0800, colin wrote:
> 
> Sorry, my poor English makes you misunderstand my question.
> I want to cross-compile a MIPS gdb on an x86 machine. Target and host are
> both MIPS.
> To prepare a library of MIPS is not easy, so I would like to omit all
> unnecessary libraries to compile a gdb.

Try building ncurses first, then.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: What are the necessary libraries to compile a cross gdb?
  2006-01-16 13:46   ` Daniel Jacobowitz
@ 2006-01-17  4:34     ` colin
  2006-01-17  3:57       ` Daniel Jacobowitz
  0 siblings, 1 reply; 5+ messages in thread
From: colin @ 2006-01-17  4:34 UTC (permalink / raw)
  To: Daniel Jacobowitz, Jim Blandy; +Cc: gdb


Sorry, my poor English makes you misunderstand my question.
I want to cross-compile a MIPS gdb on an x86 machine. Target and host are
both MIPS.
To prepare a library of MIPS is not easy, so I would like to omit all
unnecessary libraries to compile a gdb.

Thanks and regards,
Colin



----- Original Message ----- 
From: "Daniel Jacobowitz" <drow@false.org>
To: "Jim Blandy" <jimb@red-bean.com>
Cc: "colin" <colin@realtek.com.tw>; <gdb@sourceware.org>
Sent: Monday, January 16, 2006 9:46 PM
Subject: Re: What are the necessary libraries to compile a cross gdb?


> On Sun, Jan 15, 2006 at 10:39:57PM -0800, Jim Blandy wrote:
> > On 1/15/06, colin <colin@realtek.com.tw> wrote:
> > > Our MIPS platform contains only Linux, uClibc, and Busybox.
> > > When I cross-compiling gdb, it seems to lack some libraries to
successfully
> > > compile it.
> > > Can I use --disable-* to omit all of these libraries? What are the
> > > necessaries libraries?
> >
> > First, let me make sure I understand what you're trying to do.  You're
> > not trying to build a GDB that runs directly on your MIPS platform;
> > you're trying to build a GDB that runs somewhere else but debugs
> > programs that are running on your MIPS platform.  Right?  (So you're
> > not "cross-compiling" GDB; that would mean you were building a gdb
> > executable which you expected to run on some other platform.  Rather,
> > you're building GDB as a cross-platform debugger.)
> >
> > What are the error messages you're getting?  Give us a transcript of
> > the relevant part of your failing compilation, with context.
>
> From the other direction, to cross compile GDB, you need ncurses or
> some other library providing a termcap interface.
>
> -- 
> Daniel Jacobowitz
> CodeSourcery


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-01-17  3:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-16  6:34 What are the necessary libraries to compile a cross gdb? colin
2006-01-16  6:40 ` Jim Blandy
2006-01-16 13:46   ` Daniel Jacobowitz
2006-01-17  4:34     ` colin
2006-01-17  3:57       ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox