From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28637 invoked by alias); 16 Feb 2007 20:12:30 -0000 Received: (qmail 28620 invoked by uid 22791); 16 Feb 2007 20:12:29 -0000 X-Spam-Check-By: sourceware.org Received: from soneticom.com (HELO Soneticom.com) (209.114.210.150) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 16 Feb 2007 20:12:14 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Cross Compile GDB 6.6 PPC405 Date: Sat, 17 Feb 2007 08:51:00 -0000 Message-ID: <3C02138692C13C4BB675FE7EA24095292980BD@bluefin.Soneticom.local> In-Reply-To: <45D36FE8.6020702@mvista.com> From: "Clint Thomas" To: X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-02/txt/msg00178.txt.bz2 So, after trying to make install ncurses several times in several different locations, I gave up and decided to just cross-compile good ol' termcap instead.=20 Here is the link I followed. http://sourceware.org/ml/crossgcc/2007-02/msg00016.html This is just about right, except when I extracted termcap and tried to pass those options to the configure script, it would not take them. So I just ran the configure script, and manually edited the Makefile it generated. I changed the CC=3Dgcc to CC=3Dpowerpc-405-linux-gnu-gcc, saved and hit make. This built the two files I needed, termcap.h and libtermcap.a Took those two files, dropped termcap.h into $(CROSS_COMPILER)/powerpc-405-linux-gnu/include and libtermcap.a into $(CROSS_COMPILER)/powerpc-405-linux-gnu/lib and went on to build GDB. This process worked for both my MPC8540 and PPC405 toolsets. Clint Thomas -----Original Message----- From: Khem Raj [mailto:kraj@mvista.com]=20 Sent: Wednesday, February 14, 2007 3:24 PM To: Clint Thomas; gdb@sourceware.org Subject: Re: Cross Compile GDB 6.6 PPC405 Daniel Jacobowitz wrote: > On Wed, Feb 14, 2007 at 03:09:47PM -0500, Clint Thomas wrote: >=20=20=20 >> I am trying to build a native GDB to run on my powerpc-405 target. To >> do this, I run the configure script in gdb-6.6 as such ./configure=20 >> --build=3Di386-linux-gnu --target=3Dpowerpc-405-linux-gnu=20 >> --host=3Dpowerpc-405-linux-gnu Now beforehand, I tried building this,=20 >> and the make would always fail with the error "No Termcap Library found". >> After finding out that the --builduserland option is broken, I tried=20 >> cross-compiling ncurses manually. After doing that, I moved the=20 >> contents of the ../ncurses/lib directory into the directory=20 >> containing libc.a in my cross-compiler directory. Now when I build=20 >> GDB, I get this output >>=20=20=20=20=20 > > This is still a basic cross-compiling question: if you need ncurses,=20 > you don't just need the libraries, you need the headers too. If you=20 > had them... > >=20=20=20 >> In file included from .././gdb/tui/tui-command.c:28: >> >> ./tui/tui-data.h:40: error: parse error before "WINDOW" >>=20=20=20=20=20 > > ...they'd define this. > >=20=20=20 may be this thread can help you http://sourceware.org/ml/crossgcc/2007-02/msg00011.html -Khem