[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DejaGnu] Where to get the latest dejagnu?

From: Rob Savoye
Subject: Re: [DejaGnu] Where to get the latest dejagnu?
Date: Mon, 28 May 2001 18:40:38 -0600

On Tue, May 29, 2001 at 04:36:49AM +0200, Carlo Wood wrote:
> People tell me that the LATEST dejagnu is part of "binutils+gdb".
> If it is then I must say that it is extremely well hidden :/.

  The latest DejaGnu is on the FSF site at

> Starting on any gnu ftp site or the gnu website, I find
> a seperate project dejagnu with version 1.4.1 (of which someone
> on the gcc list told me it was too old).  So what is the story

  Ha! 1.4.1 is the latest release, but as DejaGnu is now back under more
active development, most bug fixes go into the CVS tree. It's the 1.3
release that's very old... and shouldn't be used.
> is STILL the latest tar on,
> another confusing ftp existance, to 1.4.1 and get the error, while
> running my testsuite:
  That is RedHat's DejaGnu branch, which I do merges against occasionally. Most
development is on the FSF site.

> Running ../../../../libcw/src/libcwd/testsuite/libcwd.tst/test.exp ...
> ERROR: tcl error sourcing 
> ../../../../libcw/src/libcwd/testsuite/libcwd.tst/test.exp.
> ERROR: wrong # args: should be "regsub ?switches? exp string subSpec varName"
>     while executing
> "regsub -all ".*: warning: -f(pic|PIC) ignored for target .*" $text """
>     (procedure "prune_warnings" line 148)
>     invoked from within
> What is the problem here?  That is *inside* dejagnu isn't it?  I am
> totally lost to what I have to upgrade too to fix this :/.

  This is fixed in the current CVS sources. The easy fix is to go into
lib/target.exp, and on the line with "warning: -f(pic|PIC) ignored for target",
nuke the extra newline, so it's all on one line. I'm not sure how this slid
through release testing, but it did. It's now fixed. A patch would be:

--- target.exp  2001/04/04 01:23:15     1.3
+++ target.exp  2001/05/17 04:39:23     1.5
@@ -272,8 +272,7 @@
     regsub -all "(^|\n)\[^\n\]*: In function\[^\n\]*\n\[^\n\]\[^\n\]*is not 
implemented and will always fail\[^\n\]*" $text "" text
     # Cygwin cc1 warns about -fpic and -fPIC
-    regsub -all ".*: warning: -f(pic|PIC) ignored for target .*" $text ""
+    regsub -all ".*: warning: -f(pic|PIC) ignored for target .*" $text "" text
     # It might be tempting to get carried away and delete blank lines, etc.
     # Just delete *exactly* what we're ask to, and that's it.
@@ -498,6 +497,7 @@

        - rob -

reply via email to

[Prev in Thread] Current Thread [Next in Thread]