From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5885 invoked by alias); 1 Aug 2004 00:24:14 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 5878 invoked from network); 1 Aug 2004 00:24:13 -0000 Received: from unknown (HELO granger.mail.mindspring.net) (207.69.200.148) by sourceware.org with SMTP; 1 Aug 2004 00:24:13 -0000 Received: from user-119a90a.biz.mindspring.com ([66.149.36.10] helo=berman.michael-chastain.com) by granger.mail.mindspring.net with esmtp (Exim 3.33 #1) id 1Br495-0006m4-00; Sat, 31 Jul 2004 20:24:11 -0400 Received: from mindspring.com (localhost [127.0.0.1]) by berman.michael-chastain.com (Postfix) with SMTP id B0F7D4B102; Sat, 31 Jul 2004 20:24:08 -0400 (EDT) Date: Sun, 01 Aug 2004 00:24:00 -0000 From: Michael Chastain To: mckinlay@redhat.com, cagney@gnu.org Subject: Re: Patch: Handle relative paths in .debug_line Cc: jimb@redhat.com, gdb-patches@sources.redhat.com Message-ID: <410C3827.nail9MK1UJ0M2@mindspring.com> References: <41004E5D.5020403@redhat.com> <4101A540.5050208@redhat.com> <4109641D.7090301@redhat.com> <410BF1C7.5050604@redhat.com> <410C0640.1080700@gnu.org> In-Reply-To: <410C0640.1080700@gnu.org> User-Agent: nail 10.8 6/28/04 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2004-08/txt/msg00000.txt.bz2 Andrew Cagney wrote: > Your dejagnu is too old :-( That is the problem all right. I need to write some more doco. In the interim, here is a brain dump for Bryce. You need three packages to test Gdb: TCL, Expect, and DejaGnu. TCL provides the TCL library. Expect provides the 'expect' executable, which is linked with the TCL library. And DejaGnu provides the 'runtest' shell script, which needs the 'expect' executable. You can find the version of these packages by running: % runtest --version WARNING: Couldn't find the global config file. Expect version is 5.41.0 Tcl version is 8.4 Framework version is 1.4.4 The 'framework version' is the DejaGnu version. The TCL version is misreported, I've got TCL 8.4.6, but 'runtest --version' is reporting only two digits of it. To test Gdb, you need these versions: TCL 8.4.1 or later, Expect 5.27 or later, and DejaGnu 1.4.3 or later. In particular, if you get an error on proc setup_kfail, that means your Dejagnu is too old. You can download these packages from: TCL ftp://ftp2.sourceforge.net/pub/sourceforge/t/tc/tcl/tcl8.4.6-src.tar.gz Expect http://expect.nist.gov/src/expect-5.41.0.tar.gz DejaGnu ftp://ftp.gnu.org/pub/gnu/dejagnu/dejagnu-1.4.4.tar.gz To build TCL: Unpack the source. Make build and install directories. cd $dir_build $dir_source/unix/configure --prefix="$dir_install" --enable-gcc --disable-shared make all make install cd $dir_install/bin ln -s tclsh8.4 tclsh The '--prefix' lets you keep your own private install trees without interfering with /usr/bin or /usr/local/bin. Use '--enable-gcc' if you are compiling with gcc. The '--disable-shared' is optional but I always use it. The 'ln -s' at the end is needed by DejaGnu. To build Expect: Unpack the source. Make build and install directories. PATH="$dir_install_tcl/bin":"$PATH" export PATH cd $dir_build $dir_source/configure --prefix="$dir_install" --disable-shared --with-tcl="$dir_install_tcl/lib" --with-tclconfig="$dir_install_tcl/lib" --with-tclinclude="$dir_source_tcl/generic" make all make install Expect needs to be configured with the TCL library that you just built. --disable-shared is optional, as before. "$dir_install_tcl" is the "$dir_install" where you installed TCL. "$dir_source_tcl" is the "$dir_source" where you unpacked the TCL source. [Hmmm, that could probably be "$dir_install_tcl/include" instead of "$dir_source_tcl/generic", I need to work on my own script]. To build DejaGnu: Unpack the source. Make build and install directories. PATH="$dir_install_expect/bin":"$dir_install_tcl/bin":"$PATH" export PATH cd $dir_build $dir_source/configure --prefix="$dir_install" --with-tclinclude="$dir_install_tcl/bin" make all make install DejaGnu needs to find the directory where you installed Expect, so $dir_install_expect/bin has to be in your path. I also throw in the directory where TCL is installed, although TCL is mostly a library. To test GDB: PATH="$dir_install_dejagnu/bin":"$dir_install_expect/bin":$PATH runtest --version make check Hope this helps, Michael C