Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Wolcott, Ken (MED, Compuware)" <Ken.Wolcott@med.ge.com>
To: Dan Kegel <dank@kegel.com>
Cc: kleine-budde@gmx.de, crossgcc@sources.redhat.com,
	gdb mailing list <gdb@sources.redhat.com>
Subject: Re: unable to compile gdb 6.0 as a cross gdb; no termcap library found; and plain gcc is still called
Date: Tue, 28 Oct 2003 21:28:00 -0000	[thread overview]
Message-ID: <200310281529.56380.ken.wolcott@med.ge.com> (raw)
In-Reply-To: <3F9EC941.3010007@kegel.com>

Hi Dan;

  I think your assessment is correct, I really need to immerse myself in 
crosstool and even in Linux itself.  I thought I knew so much :-)

  I did not build the arm9 cross with --builduserland
but I am now :-)

  I will also follow your other suggestions.

Thanks,
Ken

On Tuesday 28 October 2003 13:53, Dan Kegel wrote:
> Hi Ken,
> hmm.  Methinks you could use a Linux expert to sit down with you
> and guide you through this stuff.  Failing that, you need
> to become an expert.  The learning curve is steep, so put on
> your crampons and grab an ice axe!
>
> /etc should not be in PATH; that's a red herring.
>
> More likely, the "no termcap library found" error means
> you haven't build a termcap for your target yet.
> crosstool-0.24 will install termcap.h and libncurses.so (which
> implements the termcap functions) if you pass the --builduserland
> option to all.sh.  Did you?
>
> When you run into a configure failure like this one, the thing
> to do is to edit the configure script in question, locate the
> section that is failing, look backwards towards the top of
> the file a bit until you find the beginning of the test,
> and add a
>    set -x
> statement, then run the configure again, redirecting the output
> of configure to a file.  This produces reams of output which
> you then compare with the configure script to see what it was
> testing for, and what failed.
>
> In other words: you have to actually *read* and *understand*
> parts of the configure script, not just run it.
> It's much easier to do if you also read the configure.in or configure.ac
> script, which is what configure is expanded from.
>
> This will cause your head to explode if you do it without first
> learning a bit about autoconf.  I'd suggest working through one
> of the autoconf tutorials I link to at
> http://www.kegel.com/academy/opensource.html#autotools
> and writing a trivial configure.ac to make sure you understand
> how they work.  (e.g. write a C program that includes the file
> <snorglepuss.h> only if it exists; use autoconf's AC_CHECK_HEADERS
> macro to check for the existence of <snorglepuss.h>.  This will take
> several hours the first time you do it, but it's well worth the effort.)
> Think of it as one more little step on the way to becoming a Linux expert.
> - Dan
>


      reply	other threads:[~2003-10-28 21:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200310271747.52297.ken.wolcott@med.ge.com>
2003-10-28  6:32 ` unable to compile gdb 6.0 as a cross gdb; error: cannot run test program while cross compiling Gleb Natapov
2003-10-28 14:49   ` unable to compile gdb 6.0 as a cross gdb Wolcott, Ken (MED, Compuware)
     [not found] ` <200310281147.46663.ken.wolcott@med.ge.com>
     [not found]   ` <20031028175402.GA30757@timberwolf.dyndns.org>
2003-10-28 19:18     ` unable to compile gdb 6.0 as a cross gdb; no termcap library found; and plain gcc is still called Wolcott, Ken (MED, Compuware)
2003-10-28 19:48       ` Dan Kegel
2003-10-28 21:28         ` Wolcott, Ken (MED, Compuware) [this message]

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=200310281529.56380.ken.wolcott@med.ge.com \
    --to=ken.wolcott@med.ge.com \
    --cc=crossgcc@sources.redhat.com \
    --cc=dank@kegel.com \
    --cc=gdb@sources.redhat.com \
    --cc=kleine-budde@gmx.de \
    /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