From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20268 invoked by alias); 3 Jun 2003 23:41:35 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 20220 invoked from network); 3 Jun 2003 23:41:34 -0000 Received: from unknown (HELO smtp03.exodus.net) (216.34.163.233) by sources.redhat.com with SMTP; 3 Jun 2003 23:41:34 -0000 Received: from ms101.mail1.com (ms101.mail1.com [209.1.5.174]) by smtp03.exodus.net (8.12.9/8.12.9) with ESMTP id h53NPZNh032595 for ; Tue, 3 Jun 2003 18:25:37 -0500 Received: from [10.0.0.42] (unverified [207.98.198.169]) by accounting.espmail.com (Rockliffe SMTPRA 5.2.5) with ESMTP id ; Tue, 3 Jun 2003 16:41:31 -0700 Subject: Re: Where do I put ncurses for ARM cross-compilation? From: Ben Giddings To: gdb@sources.redhat.com Cc: Daniel Jacobowitz In-Reply-To: <20030531001009.GA22911@nevyn.them.org> References: <1054336694.31812.31.camel@localhost.localdomain> <20030530232321.GA22165@nevyn.them.org> <1054338549.31812.35.camel@localhost.localdomain> <20030531001009.GA22911@nevyn.them.org> Content-Type: text/plain Organization: ThingMagic LLC Message-Id: <1054683689.15951.6.camel@localhost.localdomain> Mime-Version: 1.0 Date: Tue, 03 Jun 2003 23:41:00 -0000 Content-Transfer-Encoding: 7bit X-SW-Source: 2003-06/txt/msg00044.txt.bz2 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