public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Ben Giddings <ben@thingmagic.com>
To: gdb@sources.redhat.com
Cc: Daniel Jacobowitz <drow@mvista.com>
Subject: Re: Where do I put ncurses for ARM cross-compilation?
Date: Tue, 03 Jun 2003 23:41:00 -0000	[thread overview]
Message-ID: <1054683689.15951.6.camel@localhost.localdomain> (raw)
In-Reply-To: <20030531001009.GA22911@nevyn.them.org>

On Fri, 2003-05-30 at 20:10, Daniel Jacobowitz wrote:
> If that's where libc.a is, it should work.  Try sticking -v options
> on the gcc command line to see what -L paths it is giving ld.

Hi Daniel,

It turns out that it does work if the ncurses lib is in:
/usr/local/armbe/arm-linux/lib/

The problem was that "configure" was caching the results of its probing
somewhere and didn't pick up that that library was now available.

After poking at it all day today I think I finally have a working copy
of gdb.  (YAY!)  But there are some issues.

My eventual command line was this monstrosity:

CC_FOR_BUILD=gcc CFLAGS_FOR_BUILD= CC=/usr/local/armbe/bin/arm-linux-gcc
CFLAGS=-mbig-endian ../configure --host=arm-unknown-linux
--prefix=/usr/local/armbe --build=i386-gnu-linux > configure.out 2>&1

Does that look reasonable?  Trying to set CFLAGS_FOR_BUILD like that
didn't seem to work, and I had to go in and manually edit the Makefile
to set it to nothing, otherwise it picked up CFLAGS, which was meant for
the host only.  In addition, CFLAGS didn't seem to be passed in to the
Makefile for gdbserver, so once again, I went in manually and added
-mbig-endian to its CFLAGS.

I also had to make sure that /usr/local/armbe/bin/ was in my path so
that the process could find all the other arm compilation tools
(arm-linux-ar,etc.)  Is there a way to specify this in the compile
command?  Are there compiler switches that would help out here?

Ben


      reply	other threads:[~2003-06-03 23:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-30 23:18 Ben Giddings
2003-05-30 23:23 ` Daniel Jacobowitz
2003-05-30 23:49   ` Ben Giddings
2003-05-31  0:10     ` Daniel Jacobowitz
2003-06-03 23:41       ` Ben Giddings [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=1054683689.15951.6.camel@localhost.localdomain \
    --to=ben@thingmagic.com \
    --cc=drow@mvista.com \
    --cc=gdb@sources.redhat.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).