This is the mail archive of the
mailing list for the GDB project.
RE: Cross Compile GDB 6.6 PPC405
- From: "Clint Thomas" <cthomas at Soneticom dot com>
- To: <gdb at sourceware dot org>
- Date: Fri, 16 Feb 2007 15:12:09 -0500
- Subject: RE: Cross Compile GDB 6.6 PPC405
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.
Here is the link I followed.
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=gcc to CC=powerpc-405-linux-gnu-gcc, saved
and hit make. This built the two files I needed, termcap.h and
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.
From: Khem Raj [mailto:firstname.lastname@example.org]
Sent: Wednesday, February 14, 2007 3:24 PM
To: Clint Thomas; email@example.com
Subject: Re: Cross Compile GDB 6.6 PPC405
Daniel Jacobowitz wrote:
> On Wed, Feb 14, 2007 at 03:09:47PM -0500, Clint Thomas wrote:
>> 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
>> --build=i386-linux-gnu --target=powerpc-405-linux-gnu
>> --host=powerpc-405-linux-gnu Now beforehand, I tried building this,
>> and the make would always fail with the error "No Termcap Library
>> After finding out that the --builduserland option is broken, I tried
>> cross-compiling ncurses manually. After doing that, I moved the
>> contents of the ../ncurses/lib directory into the directory
>> containing libc.a in my cross-compiler directory. Now when I build
>> GDB, I get this output
> This is still a basic cross-compiling question: if you need ncurses,
> you don't just need the libraries, you need the headers too. If you
> had them...
>> In file included from .././gdb/tui/tui-command.c:28:
>> ./tui/tui-data.h:40: error: parse error before "WINDOW"
> ...they'd define this.
may be this thread can help you