From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25044 invoked by alias); 30 Oct 2003 22:12:48 -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 25018 invoked from network); 30 Oct 2003 22:12:47 -0000 Received: from unknown (HELO relay.pair.com) (209.68.1.20) by sources.redhat.com with SMTP; 30 Oct 2003 22:12:47 -0000 Received: (qmail 70374 invoked from network); 30 Oct 2003 22:12:47 -0000 Received: from c-24-126-73-164.we.client2.attbi.com (HELO kegel.com) (24.126.73.164) by relay.pair.com with SMTP; 30 Oct 2003 22:12:47 -0000 X-pair-Authenticated: 24.126.73.164 Message-ID: <3FA18E26.8030309@kegel.com> Date: Thu, 30 Oct 2003 22:12:00 -0000 From: Dan Kegel User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031008 X-Accept-Language: de-de, en MIME-Version: 1.0 To: "Wolcott, Ken (MED, Compuware)" CC: gdb mailing list , crossgcc@sources.redhat.com, ncurses mailing list Subject: Re: unable to build arm9 gdb lack of termcap, termcap not provided by ncurses, rather terminfo References: <200310301552.03913.ken.wolcott@med.ge.com> In-Reply-To: <200310301552.03913.ken.wolcott@med.ge.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-10/txt/msg00342.txt.bz2 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. crosstool apparently builds > the arm9 cross toolchain successfully. 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=$(CROSS_LIB_DIR) prefix='' exec_prefix='' install where CROSS_LIB_DIR is $(PTXCONF_PREFIX)/$(PTXCONF_GNU_TARGET) or something like /opt/crosstool/$(TARGET)/$(TOOLCOMBO)/$(TARGET) - Dan -- Dan Kegel http://www.kegel.com http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045