Cross Compile GDB 6.6 PPC405

Khem Raj kraj@mvista.com
Wed Feb 14 20:48:00 GMT 2007


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 found".
>> 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
http://sourceware.org/ml/crossgcc/2007-02/msg00011.html

-Khem



More information about the Gdb mailing list