From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19905 invoked by alias); 1 Feb 2002 19:30:15 -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 19596 invoked from network); 1 Feb 2002 19:29:49 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 1 Feb 2002 19:29:49 -0000 Received: from drow by nevyn.them.org with local (Exim 3.34 #1 (Debian)) id 16WjNj-0008WP-00; Fri, 01 Feb 2002 14:29:55 -0500 Date: Fri, 01 Feb 2002 11:30:00 -0000 From: Daniel Jacobowitz To: Peter Barada Cc: bgat@billgatliff.com, Keith.Walker@arm.com, crossgcc@sources.redhat.com, gdb@sources.redhat.com Subject: Re: Patch for arm-linux gdbserver Message-ID: <20020201142955.A32707@nevyn.them.org> Mail-Followup-To: Peter Barada , bgat@billgatliff.com, Keith.Walker@arm.com, crossgcc@sources.redhat.com, gdb@sources.redhat.com References: <20020131113611.A2242@saturn.billgatliff.com> <4.1.20020131181535.00b40f00@mhsun1.maidenhead.arm.com> <20020131153627.A3137@saturn.billgatliff.com> <20020131181024.A4883@nevyn.them.org> <200201312321.g0VNLKV11957@hyper.wm.sps.mot.com> <20020201103605.B14977@nevyn.them.org> <200202011833.g11IXoZ15188@hyper.wm.sps.mot.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200202011833.g11IXoZ15188@hyper.wm.sps.mot.com> User-Agent: Mutt/1.3.23i X-SW-Source: 2002-02/txt/msg00042.txt.bz2 On Fri, Feb 01, 2002 at 01:33:50PM -0500, Peter Barada wrote: > > >Simply configure with --host=powerpc-linux. Then run configure > >separately in the gdbserver directory if it did not get done, and make. > > > >Note that to do that first step $CC must be a cross compiler. > > > >Also note that PPC support for gdbserver is not currently available, > >and may go in in a few days depending on some other factors. > > Ok, I built a m68k-linux compiler, and attempted: > > CC=m68k-linux-gcc AR=m68k-linux-ar RANLIB=m68k-linux-ranlib LD=m68k-linux-ld /home/pbarada/work/cvs-wavemark/cross-linux-tools/gdb-5.0.93/configure --host=m68k-linux > > To configure a m68k-linux version of gdbserver to be built on my x86 > box. Unfortunately configure fails. From gleaning over the output, I > see two things, the first I'm not sure about and the second is a problem: > > Created "Makefile" in /home/pbarada/work/cvs-wavemark/cross-linux-tools/obj-crap-linux/m68k-linux/build-gdb using "mt-frag" > /home/pbarada/work/cvs-wavemark/cross-linux-tools/gdb-5.0.93/configure: ./if1747: cannot execute binary file > Configuring intl... > creating cache ../config.cache > > I don't think configure should try to run a cross-compiled > executable... That's normal. I think more recent autoconf suppresses the message, but I'm not sure. > checking compiler warning flags... -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized > checking for cygwin... no > checking for tgetent in -lncurses... (cached) no > checking for tgetent in -lHcurses... no > checking for tgetent in -ltermlib... no > checking for tgetent in -ltermcap... (cached) no > checking for tgetent in -lcurses... (cached) no > checking for tgetent in -lterminfo... no > configure: error: Could not find a term library > Configure in /home/pbarada/work/cvs-wavemark/cross-linux-tools/obj-crap-linux/m68k-linux/build-gdb/gdb failed, exiting. > > Since I'm not trying to run *gdb* on the target, but just *gdbserver*, > how can I get configure to ignore the missing term library and produce > a proper configuration? This is the problem I had the last time I did > this, and ended up resorting to configureing it by *hand*. Basically, this is because we abuse gdb's configure quite badly. I recommend that you build a small curses library or grab one from an m68k disribution or what-have-you, and ignore the problem for now. I'll see about fixing this a little down the road. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer