From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16375 invoked by alias); 31 Oct 2003 17:41:16 -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 16362 invoked from network); 31 Oct 2003 17:41:15 -0000 Received: from unknown (HELO ext-nj2gw-1.online-age.net) (216.35.73.163) by sources.redhat.com with SMTP; 31 Oct 2003 17:41:15 -0000 Received: from int-nj2gw-1.online-age.net (int-nj2gw-1 [3.159.236.65]) by ext-nj2gw-1.online-age.net (8.12.9/8.12.9/990426-RLH) with ESMTP id h9VHf9HB028066; Fri, 31 Oct 2003 12:41:09 -0500 (EST) Received: from uswaumsxb4medge.med.ge.com (localhost [127.0.0.1]) by int-nj2gw-1.online-age.net (8.12.9/8.12.8/990426-RLH) with ESMTP id h9VHf7ZD014016; Fri, 31 Oct 2003 12:41:08 -0500 (EST) Received: by uswaumsxb4medge.med.ge.com with Internet Mail Service (5.5.2656.59) id ; Fri, 31 Oct 2003 11:37:56 -0600 Received: from tuba.moneng.mei.com ([3.20.87.235]) by uswaumsxbhmedge.med.ge.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id VVRCXXL7; Fri, 31 Oct 2003 11:40:52 -0600 From: "Wolcott, Ken (MED, Compuware)" Reply-To: "Wolcott, Ken (MED, Compuware)" To: Dan Kegel Cc: gdb mailing list , crossgcc@sources.redhat.com, ncurses mailing list Content-Type: text/plain; charset="iso-8859-1" Organization: GEMS-IT Subject: Re: unable to build arm9 gdb lack of termcap, termcap not provided by ncurses, rather terminfo Date: Fri, 31 Oct 2003 17:41:00 -0000 User-Agent: KMail/1.4.3 References: <200310301552.03913.ken.wolcott@med.ge.com> <3FA18E26.8030309@kegel.com> In-Reply-To: <3FA18E26.8030309@kegel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200310311143.29532.ken.wolcott@med.ge.com> X-SW-Source: 2003-10/txt/msg00351.txt.bz2 On Thursday 30 October 2003 16:18, Dan Kegel wrote: > Wolcott, Ken (MED, Compuware) wrote: > > I'm still unable to build an arm9 gdb using Dan Kegel's crosstool > > (http://www.kegel.com/crosstool/) and a patched (ncurses-5.3-20031025) > > ncurses-5.3 because it complains about a missing termcap. ncurses > > provides terminfo but I don't see a termcap. The patched ncurses-53 > > apparently builds successfully if I turn off ada language support.=20 > > crosstool apparently builds the arm9 cross toolchain successfully.=20 > > Perhaps I haven't placed the libraries generated by ncurses in the > > correct location for the gdb build to see them. I copied > > /tmp/ncurses/src/lib/* to the lib dir created by crosstool. Perhaps gdb > > configure needs to be told where to get libraries from? Bzip2'd output > > from the gdb build attempt and the script that initiates the build are > > attached. > > (A couple tips: > add set -x to your build scripts in the future, makes the logs easier to > read. add set -e as well, so the script aborts at first error.) > > The thing to do here is to read gdb's configure script to see where it is > outputting that error message, "configure: error: no termcap library > found". That will tell you how it's looking for the library. > > Another thing you could do is use your cross-compiler to do a trivial > program that uses ncurses. If it doesn't compile, or doesn't link, you > have installed ncurses wrong. > > If you copied the files by hand, you probably installed them wrong. > It's better form to use ncurses' "make install" rule to install the files. > You may need to override the destination directory when you do this. > To tell how to do this, either read the ncurses Makefile, or look > at how some other package cross-builds and installs ncurses. ptxdist > does the install step like this: > > make DESTDIR=3D$(CROSS_LIB_DIR) prefix=3D'' exec_prefix=3D'' install > > where CROSS_LIB_DIR is $(PTXCONF_PREFIX)/$(PTXCONF_GNU_TARGET) > or something like /opt/crosstool/$(TARGET)/$(TOOLCOMBO)/$(TARGET) > > - Dan Hi Dan; I'm trying to remember to append my replies to the bottom of existing msg= s=20 :-) I added -ex to my script. I looked at gdb configure and the resultant Makefile for the specific err= or=20 string...it is very hard for me to follow :-( looking for termcap in configure: ******************************************************* grep termcap ../gdb-6.0/configure configdirs=3D"$configdirs libtermcap" ;; target_configdirs=3D"$target_configdirs target-libtermcap target-winsup" ******************************************************* looking for termcap in Makefile generates lots of output, but in that outpu= t,=20 library is not found: **************************************** grep termcap Makefile | grep library **************************************** I changed the make install line for ncurses compile script to point to the = lib=20 generated by crosstool. Looks like the libraries were written there=20 successfully. But the gdb compile still fails for the same reason. :-( Ken