From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32482 invoked by alias); 17 Jan 2006 03:57:51 -0000 Received: (qmail 32466 invoked by uid 22791); 17 Jan 2006 03:57:50 -0000 X-Spam-Check-By: sourceware.org Received: from yosemite.airs.com (HELO yosemite.airs.com) (205.217.158.180) by sourceware.org (qpsmtpd/0.31) with SMTP; Tue, 17 Jan 2006 03:57:48 +0000 Received: (qmail 2757 invoked from network); 17 Jan 2006 02:11:00 -0000 Received: from mf2.realtek.com.tw (60.248.182.46) by yosemite.airs.com with SMTP; 17 Jan 2006 02:11:00 -0000 Received: from msx.realtek.com.tw (unverified [172.21.1.77]) by mf2.realtek.com.tw (Clearswift SMTPRS 5.1.7) with ESMTP id ; Tue, 17 Jan 2006 10:13:15 +0800 Received: from rtpdii3098 ([172.21.98.16]) by msx.realtek.com.tw (Lotus Domino Release 6.5.3) with ESMTP id 2006011710111201-460264 ; Tue, 17 Jan 2006 10:11:12 +0800 Message-ID: <00a601c61b0b$3638cc40$106215ac@realtek.com.tw> From: "colin" To: "Daniel Jacobowitz" , "Jim Blandy" Cc: References: <002401c61a66$d322afd0$106215ac@realtek.com.tw> <8f2776cb0601152239o1cbdfa40uea72713bde127ddd@mail.gmail.com> <20060116134607.GA31547@nevyn.them.org> Subject: Re: What are the necessary libraries to compile a cross gdb? Date: Tue, 17 Jan 2006 04:34:00 -0000 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="iso-8859-1" X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-01/txt/msg00154.txt.bz2 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" To: "Jim Blandy" Cc: "colin" ; 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 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