From: "Clint Thomas" <cthomas@Soneticom.com>
To: <gdb@sourceware.org>
Subject: RE: Cross Compile GDB 6.6 PPC405
Date: Sat, 17 Feb 2007 08:51:00 -0000 [thread overview]
Message-ID: <3C02138692C13C4BB675FE7EA24095292980BD@bluefin.Soneticom.local> (raw)
In-Reply-To: <45D36FE8.6020702@mvista.com>
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.
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=gcc to CC=powerpc-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]
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:
>
>> 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
next prev parent reply other threads:[~2007-02-16 20:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-14 20:24 Clint Thomas
2007-02-14 20:27 ` Daniel Jacobowitz
2007-02-14 20:48 ` Khem Raj
2007-02-17 8:51 ` Clint Thomas [this message]
2007-02-15 7:35 ` Michael Snyder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3C02138692C13C4BB675FE7EA24095292980BD@bluefin.Soneticom.local \
--to=cthomas@soneticom.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox