From MAILER-DAEMON Sat Apr 09 14:58:32 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Q8dMe-0004nW-Nx
	for mharc-bug-bison@gnu.org; Sat, 09 Apr 2011 14:58:32 -0400
Received: from [140.186.70.92] (port=46525 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Q8dMd-0004n5-Fv
	for bug-bison@gnu.org; Sat, 09 Apr 2011 14:58:32 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <joeldenny@joeldenny.org>) id 1Q8dMc-0006a5-IL
	for bug-bison@gnu.org; Sat, 09 Apr 2011 14:58:31 -0400
Received: from p3plsmtpa01-10.prod.phx3.secureserver.net ([72.167.82.90]:33387)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <joeldenny@joeldenny.org>) id 1Q8dMc-0006Zj-65
	for bug-bison@gnu.org; Sat, 09 Apr 2011 14:58:30 -0400
Received: (qmail 3544 invoked from network); 9 Apr 2011 18:58:26 -0000
Received: from unknown (216.218.124.79)
	by p3plsmtpa01-10.prod.phx3.secureserver.net (72.167.82.90) with ESMTP;
	09 Apr 2011 18:58:25 -0000
Date: Sat, 9 Apr 2011 14:57:55 -0400 (EDT)
From: "Joel E. Denny" <joeldenny@joeldenny.org>
X-X-Sender: jdenny@vega
To: Akim Demaille <akim@lrde.epita.fr>
In-Reply-To: <8157AEB9-8775-4403-A604-3206F5CF8BE0@lrde.epita.fr>
Message-ID: <alpine.DEB.2.00.1104031921570.15514@vega>
References: <E1OfeNi-0001e0-Ed@eggs.gnu.org>
	<alpine.DEB.1.00.1008022008430.10051@vega>
	<alpine.DEB.1.00.1008041922110.5846@vega>
	<alpine.DEB.2.00.1103271323280.2888@vega>
	<8157AEB9-8775-4403-A604-3206F5CF8BE0@lrde.epita.fr>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-1892406505-1301872954=:15514"
Content-ID: <alpine.DEB.2.00.1104031924410.15514@vega>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 72.167.82.90
Cc: bison-patches@gnu.org, bug-bison@gnu.org
Subject: Re: warning flags in 2.4.1
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 09 Apr 2011 18:58:32 -0000

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--8323329-1892406505-1301872954=:15514
Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-15
Content-Transfer-Encoding: 8BIT
Content-ID: <alpine.DEB.2.00.1104031924411.15514@vega>

Hi Akim,

On Mon, 28 Mar 2011, Akim Demaille wrote:

> Le 28 mars 2011 à 04:55, Joel E. Denny a écrit :
> 
> > To put that another way, -Wall doesn't enable -Werror, so -Wnone shouldn't 
> > disable -Werror.  I'd like to fix that on branch-2.5 and master.
> > 
> > However, I first need to cherry pick a related patch from master to 
> > branch-2.5 and document that patch in NEWS.
> > 
> > The whole patch series appears below.  Any objections?
> 
> This is fine.  With the exception of a minor coding style issue on the 
> braces here:

Oops.  Thanks.  I fixed that and pushed to branch-2.5 and master.
--8323329-1892406505-1301872954=:15514--


From MAILER-DAEMON Sat Apr 09 14:59:12 2011
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Q8dNH-0005Ra-V8
	for mharc-bug-bison@gnu.org; Sat, 09 Apr 2011 14:59:12 -0400
Received: from [140.186.70.92] (port=46663 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Q8dNE-0005RC-GV
	for bug-bison@gnu.org; Sat, 09 Apr 2011 14:59:10 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <joeldenny@joeldenny.org>) id 1Q8dNA-0006dS-Q5
	for bug-bison@gnu.org; Sat, 09 Apr 2011 14:59:05 -0400
Received: from p3plsmtpa01-04.prod.phx3.secureserver.net ([72.167.82.84]:40721)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <joeldenny@joeldenny.org>) id 1Q8dNA-0006dI-IL
	for bug-bison@gnu.org; Sat, 09 Apr 2011 14:59:04 -0400
Received: (qmail 19103 invoked from network); 9 Apr 2011 18:59:02 -0000
Received: from unknown (216.218.124.79)
	by p3plsmtpa01-04.prod.phx3.secureserver.net (72.167.82.84) with ESMTP;
	09 Apr 2011 18:59:02 -0000
Date: Sat, 9 Apr 2011 14:58:32 -0400 (EDT)
From: "Joel E. Denny" <joeldenny@joeldenny.org>
X-X-Sender: jdenny@vega
To: Akim Demaille <akim@lrde.epita.fr>
In-Reply-To: <C9AC5FB0-8ECB-457C-B25A-49F6F5EE04F1@lrde.epita.fr>
Message-ID: <alpine.DEB.2.00.1104031922580.15514@vega>
References: <E1OfeNi-0001e0-Ed@eggs.gnu.org>
	<alpine.DEB.1.00.1008022008430.10051@vega>
	<alpine.DEB.1.00.1008041922110.5846@vega>
	<alpine.DEB.2.00.1103271612220.2888@vega>
	<C9AC5FB0-8ECB-457C-B25A-49F6F5EE04F1@lrde.epita.fr>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-727041675-1301873079=:15514"
Content-ID: <alpine.DEB.2.00.1104031924460.15514@vega>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 72.167.82.84
Cc: bison-patches@gnu.org, bug-bison@gnu.org
Subject: Re: warning flags in 2.4.1
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 09 Apr 2011 18:59:10 -0000

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--8323329-727041675-1301873079=:15514
Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-15
Content-Transfer-Encoding: 8BIT
Content-ID: <alpine.DEB.2.00.1104031924461.15514@vega>

On Mon, 28 Mar 2011, Akim Demaille wrote:

> 
> Le 28 mars 2011 à 04:56, Joel E. Denny a écrit :
> 
> > I feel that -Wnone should affect all warnings.  That's how it's currently 
> > documented, and it seems like a useful feature.  I'd like to push the 
> > following patches to branch-2.5 and master.  Any objections?
> 
> none ;)

Thanks.

I've discovered that I'm not fully suppressing reports about useless 
rules.  I folded in the diff below to fix that and pushed to branch-2.5 
and master.  The next patch to come will test that stderr is fully 
scrubbed.

diff --git a/ChangeLog b/ChangeLog
index eb2e1f9..5c79812 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,8 @@
 	(warnings_args, warnings_types): Add entry for warnings_other.
 	(usage): Update.
 	* src/getargs.h (enum warnings): Add entry for warnings_other.
+	* src/gram.c (grammar_rules_useless_report): If -Wno-other, then
+	don't print useless rules.
 	* src/reader.c (symbol_should_be_used): Rather than adjusting the
 	return value based on whether midrule value warnings are enabled,
 	accept a new parameter for telling the caller whether true is
diff --git a/src/gram.c b/src/gram.c
index 76accee..2121279 100644
--- a/src/gram.c
+++ b/src/gram.c
@@ -24,6 +24,7 @@
 #include <quotearg.h>
 
 #include "complain.h"
+#include "getargs.h"
 #include "gram.h"
 #include "print-xml.h"
 #include "reader.h"
@@ -310,8 +311,11 @@ grammar_rules_useless_report (const char *message)
     if (!rules[r].useful)
       {
         warn_at (rules[r].location, "%s: ", message);
-        rule_print (&rules[r], stderr);
-        fflush (stderr);
+        if (warnings_flag & warnings_other)
+          {
+            rule_print (&rules[r], stderr);
+            fflush (stderr);
+          }
       }
 }
 
--8323329-727041675-1301873079=:15514--


From MAILER-DAEMON Sat Apr 16 05:39:17 2011
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1QB1yH-0000By-Fu
	for mharc-bug-bison@gnu.org; Sat, 16 Apr 2011 05:39:17 -0400
Received: from eggs.gnu.org ([140.186.70.92]:34300)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1QB1yE-0000Bj-GB
	for bug-bison@gnu.org; Sat, 16 Apr 2011 05:39:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1QB1yC-0003Xo-PL
	for bug-bison@gnu.org; Sat, 16 Apr 2011 05:39:14 -0400
Received: from mx.meyering.net ([82.230.74.64]:34589)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1QB1yC-0003Xg-En
	for bug-bison@gnu.org; Sat, 16 Apr 2011 05:39:12 -0400
Received: by rho.meyering.net (Acme Bit-Twister, from userid 1000)
	id 28C07600CC; Sat, 16 Apr 2011 11:39:10 +0200 (CEST)
From: Jim Meyering <jim@meyering.net>
To: Bison Bugs <bug-bison@gnu.org>
Subject: [GNU Bison 2.4.588-2f658] testsuite: 74 75 76 77 78 79 80 81 82 141
	149 185 186 188 189 190 191 195 247 250 287 289 291 293 295 296
	297 298 299 300 301 302 304 305 306 307 310 311 failed
Date: Sat, 16 Apr 2011 11:39:10 +0200
Message-ID: <871v12k01t.fsf@rho.meyering.net>
Lines: 193
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 82.230.74.64
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 16 Apr 2011 09:39:16 -0000

Hello,

I've just bootstrapped, configured with --enable-gcc-warnings, built
and run "make check" on Fedora 15 (i.e., gcc version 4.6.0 20110413)
I was surprised to see so many failures (abbreviated output below).

However, they're all due to one newly-enabled gcc warning:
note the [-Werror=3Dunused-but-set-variable] in every case below.
At first I tried to turn off only that one new warning,
but -Wno-unused-but-set-variable had no effect, so I
resorted to -Wno-unused.  In case you want precisely that
change, here's a patch.  With this, all of the tests passed.


From=20de66004f2a397ee0297196499bdf8e71c09418ba Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@redhat.com>
Date: Sat, 16 Apr 2011 11:33:15 +0200
Subject: [PATCH] avoid spurious test failures due to new gcc warnings

* configure.ac (WARN_CFLAGS_TEST): Disable -Wunused, to
avoid many spurious test failures when using gcc-4.6.0
and when configured with --enable-gcc-warnings.
=2D--
 ChangeLog    |    7 +++++++
 configure.ac |    1 +
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 84bc913..4a59dae 100644
=2D-- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-04-16  Jim Meyering  <meyering@redhat.com>
+
+	avoid spurious test failures due to new gcc warnings
+	* configure.ac (WARN_CFLAGS_TEST): Disable -Wunused, to
+	avoid many spurious test failures when using gcc-4.6.0
+	and when configured with --enable-gcc-warnings.
+
 2011-04-09  Joel E. Denny  <joeldenny@joeldenny.org>

 	Fix missing updates to GPLv3.
diff --git a/configure.ac b/configure.ac
index 39d4257..1a612fc 100644
=2D-- a/configure.ac
+++ b/configure.ac
@@ -80,6 +80,7 @@ if test "${enableval}" =3D yes; then
   AC_SUBST([WARN_CFLAGS])
   # Warnings for the test suite only.
   gl_WARN_ADD([-Wundef], [WARN_CFLAGS_TEST])
+  gl_WARN_ADD([-Wno-unused], [WARN_CFLAGS_TEST])
   WARN_CXXFLAGS_TEST=3D"$WARN_CXXFLAGS $WARN_CFLAGS_TEST"
   WARN_CFLAGS_TEST=3D"$WARN_CFLAGS $WARN_CFLAGS_TEST"
   AC_SUBST([WARN_CXXFLAGS_TEST])
=2D-
1.7.5.rc1.228.g86d60b



## ----------------------------------- ##
## GNU Bison 2.4.588-2f658 test suite. ##
## ----------------------------------- ##
...
ERROR: All 316 tests were run,
38 failed unexpectedly.

## ------------------------ ##
## Summary of the failures. ##
## ------------------------ ##
Failed tests:
GNU Bison 2.4.588-2f658 test suite test groups:

 NUM: FILE-NAME:LINE     TEST-GROUP-NAME
      KEYWORDS

  74: output.at:225      Output file name: `~!@#$%^&*()-=3D_+{}[]|\:
      <>, .'
  75: output.at:232      Output file name: (
      c++
  76: output.at:233      Output file name: )
      c++
  77: output.at:234      Output file name: #
      c++
  78: output.at:235      Output file name: @@
      c++
  79: output.at:236      Output file name: @{
      c++
  80: output.at:237      Output file name: @}
      c++
  81: output.at:238      Output file name: [
      c++
  82: output.at:239      Output file name: ]
      c++
 141: actions.at:1190    Default %printer and %destructor for mid-rule valu=
es
 149: conflicts.at:151   parse.error=3Dverbose and consistent errors
      glr c++ java
 185: calc.at:649        Calculator %glr-parser
      glr
 186: calc.at:651        Calculator %glr-parser %defines
      glr
 188: calc.at:653        Calculator %glr-parser %name-prefix "calc"
      glr
 189: calc.at:654        Calculator %glr-parser %verbose
      glr
 190: calc.at:655        Calculator %glr-parser %yacc
      glr
 191: calc.at:656        Calculator %glr-parser %define parse.error verbose
      glr
 195: calc.at:663        Calculator %glr-parser %debug
      glr
 247: regression.at:941  Dancer %glr-parser
      glr
 250: regression.at:1037 Expecting two tokens %glr-parser
      glr
 287: cxx-type.at:413    GLR: Resolve ambiguity, impure, no locations
 289: cxx-type.at:426    GLR: Resolve ambiguity, pure, no locations
 291: cxx-type.at:440    GLR: Merge conflicting parses, impure, no locations
 293: cxx-type.at:454    GLR: Merge conflicting parses, pure, no locations
 295: cxx-type.at:467    GLR: Verbose messages, resolve ambiguity, impure, =
no locations
 296: glr-regression.at:25 Badly Collapsed GLR States
 297: glr-regression.at:120 Improper handling of embedded actions and dolla=
r(-N) in GLR parsers
 298: glr-regression.at:239 Improper merging of GLR delayed action sets
 299: glr-regression.at:348 Duplicate representation of merged trees
 300: glr-regression.at:451 User destructor for unresolved GLR semantic val=
ue
 301: glr-regression.at:524 User destructor after an error during a split p=
arse
 302: glr-regression.at:591 Duplicated user destructor for lookahead
 304: glr-regression.at:781 No users destructors if stack 0 deleted
 305: glr-regression.at:861 Corrupted semantic options if user action cuts =
parse
 306: glr-regression.at:926 Undesirable destructors if user action cuts par=
se
 307: glr-regression.at:995 Leaked semantic values if user action cuts parse
 310: glr-regression.at:1484 Leaked semantic values when reporting ambiguity
 311: glr-regression.at:1577 Leaked lookahead after nondeterministic parse =
syntax error

## ---------------------- ##
## Detailed failed tests. ##
## ---------------------- ##

#                             -*- compilation -*-
74. output.at:225: testing Output file name: `~!@#$%^&*()-=3D_+{}[]|\:;<>, =
.' ...
./output.at:225: touch "\`~!@#\$%^&*()-=3D_+{}[]|\\:;<>, .'.tmp" || exit 77
./output.at:225: bison -o "\`~!@#\$%^&*()-=3D_+{}[]|\\:;<>, .'.c" --defines=
=3D"\`~!@#\$%^&*()-=3D_+{}[]|\\:;<>, .'.h" glr.y
./output.at:225: ls "\`~!@#\$%^&*()-=3D_+{}[]|\\:;<>, .'.c" "\`~!@#\$%^&*()=
-=3D_+{}[]|\\:;<>, .'.h"
stdout:
`~!@#$%^&*()-=3D_+{}[]|\:;<>, .'.c
`~!@#$%^&*()-=3D_+{}[]|\:;<>, .'.h
./output.at:225: $CC $CFLAGS $CPPFLAGS -o glr.o -c "\`~!@#\$%^&*()-=3D_+{}[=
]|\\:;<>, .'.c"
stderr:
`~!@#$%^&*()-=3D_+{}[]|\:;<>, .'.c: In function 'yyresolveLocations':
`~!@#$%^&*()-=3D_+{}[]|\:;<>, .'.c:1729:19: error: variable 'yyrhsloc' set =
but not used [-Werror=3Dunused-but-set-variable]
cc1: all warnings being treated as errors

stdout:
./output.at:225: exit code was 1, expected 0
74. output.at:225: 74. Output file name: `~!@#$%^&*()-=3D_+{}[]|\:;<>, .' (=
output.at:225): FAILED (output.at:225)

#                             -*- compilation -*-
75. output.at:232: testing Output file name: ( ...
./output.at:232: touch "(.tmp" || exit 77
./output.at:232: bison -o "(.c" --defines=3D"(.h" glr.y
./output.at:232: ls "(.c" "(.h"
stdout:
(.c
(.h
./output.at:232: $CC $CFLAGS $CPPFLAGS -o glr.o -c "(.c"
stderr:
(.c: In function 'yyresolveLocations':
(.c:1729:19: error: variable 'yyrhsloc' set but not used [-Werror=3Dunused-=
but-set-variable]
cc1: all warnings being treated as errors

stdout:
./output.at:232: exit code was 1, expected 0
75. output.at:232: 75. Output file name: ( (output.at:232): FAILED (output.=
at:232)

#                             -*- compilation -*-
76. output.at:233: testing Output file name: ) ...
./output.at:233: touch ").tmp" || exit 77
./output.at:233: bison -o ").c" --defines=3D").h" glr.y
./output.at:233: ls ").c" ").h"
stdout:
).c
).h
./output.at:233: $CC $CFLAGS $CPPFLAGS -o glr.o -c ").c"
stderr:
).c: In function 'yyresolveLocations':
).c:1729:19: error: variable 'yyrhsloc' set but not used [-Werror=3Dunused-=
but-set-variable]
cc1: all warnings being treated as errors

stdout:
./output.at:233: exit code was 1, expected 0
76. output.at:233: 76. Output file name: ) (output.at:233): FAILED (output.=
at:233)

#                             -*- compilation -*-
...


From MAILER-DAEMON Sat Apr 16 18:45:05 2011
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1QBEEj-0003YJ-CM
	for mharc-bug-bison@gnu.org; Sat, 16 Apr 2011 18:45:05 -0400
Received: from eggs.gnu.org ([140.186.70.92]:57298)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <joeldenny@joeldenny.org>) id 1QBEEg-0003Xx-71
	for bug-bison@gnu.org; Sat, 16 Apr 2011 18:45:03 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <joeldenny@joeldenny.org>) id 1QBEEe-0006CS-JD
	for bug-bison@gnu.org; Sat, 16 Apr 2011 18:45:02 -0400
Received: from p3plsmtpa07-02.prod.phx3.secureserver.net
	([173.201.192.231]:58179) by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <joeldenny@joeldenny.org>) id 1QBEEe-0006CI-7E
	for bug-bison@gnu.org; Sat, 16 Apr 2011 18:45:00 -0400
Received: (qmail 24276 invoked from network); 16 Apr 2011 22:44:58 -0000
Received: from unknown (173.233.121.70)
	by p3plsmtpa07-02.prod.phx3.secureserver.net (173.201.192.231) with
	ESMTP; 16 Apr 2011 22:44:58 -0000
Date: Sat, 16 Apr 2011 18:45:28 -0400 (EDT)
From: "Joel E. Denny" <joeldenny@joeldenny.org>
X-X-Sender: jdenny@vega
To: Jim Meyering <jim@meyering.net>
Subject: Re: [GNU Bison 2.4.588-2f658] testsuite: 74 75 76 77 78 79 80 81 82
	141 149 185 186 188 189 190 191 195 247 250 287 289 291 293 295 296 297
	298 299 300 301 302 304 305 306 307 310 311 failed
In-Reply-To: <871v12k01t.fsf@rho.meyering.net>
Message-ID: <alpine.DEB.2.00.1104161719390.10935@vega>
References: <871v12k01t.fsf@rho.meyering.net>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 173.201.192.231
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 16 Apr 2011 22:45:03 -0000

Hi Jim,

On Sat, 16 Apr 2011, Jim Meyering wrote:

> I've just bootstrapped, configured with --enable-gcc-warnings, built
> and run "make check" on Fedora 15 (i.e., gcc version 4.6.0 20110413)
> I was surprised to see so many failures (abbreviated output below).
> 
> However, they're all due to one newly-enabled gcc warning:
> note the [-Werror=unused-but-set-variable] in every case below.

Thanks for the report.  In all but one case, that warning is revealing an 
old bug in glr.c.  In the remaining case, it's suprious but easy to 
suppress.  I pushed the fixes below to master and branch-2.5.

> At first I tried to turn off only that one new warning,
> but -Wno-unused-but-set-variable had no effect, so I
> resorted to -Wno-unused.

In case it helps, either of those worked for me.

>From 55dd35633675f588c58ead46ecd6b5f4db504192 Mon Sep 17 00:00:00 2001
From: Joel E. Denny <joeldenny@joeldenny.org>
Date: Sat, 16 Apr 2011 18:15:40 -0400
Subject: [PATCH 1/2] glr.c: omit yyresolveLocations when locations are disabled.

This prevents gcc 4.6.0's -Wunused-but-set-variable from warning
about yyresolveLocations's local yyrhsloc.  When locations are
enabled, there's no such warning because YYLLOC_DEFAULT then uses
yyrhsloc.  Reported by Jim Meyering at
<http://lists.gnu.org/archive/html/bug-bison/2011-04/msg00002.html>.
* data/glr.c (yyresolveLocations): Omit definition when locations
are disabled.
(yyresolveValue): Omit yyresolveLocations invocation when
locations are disabled.
---
 ChangeLog  |   13 +++++++++++++
 data/glr.c |    8 ++++----
 2 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 70ee004..4c63cb1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,18 @@
 2011-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
 
+	glr.c: omit yyresolveLocations when locations are disabled.
+	This prevents gcc 4.6.0's -Wunused-but-set-variable from warning
+	about yyresolveLocations's local yyrhsloc.  When locations are
+	enabled, there's no such warning because YYLLOC_DEFAULT then uses
+	yyrhsloc.  Reported by Jim Meyering at
+	<http://lists.gnu.org/archive/html/bug-bison/2011-04/msg00002.html>.
+	* data/glr.c (yyresolveLocations): Omit definition when locations
+	are disabled.
+	(yyresolveValue): Omit yyresolveLocations invocation when
+	locations are disabled.
+
+2011-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
+
 	gnulib, autoconf: update.
 	* README-hacking (Updating a submodule): Give advice on how to
 	determine the versions of gnulib and autoconf to which we should
diff --git a/data/glr.c b/data/glr.c
index 6829ca3..df90201 100644
--- a/data/glr.c
+++ b/data/glr.c
@@ -1802,7 +1802,7 @@ yyreportAmbiguity (yySemanticOption* yyx0,
 
   yyerror (]b4_yyerror_args[YY_("syntax is ambiguous"));
   return yyabort;
-}
+}]b4_locations_if([[
 
 /** Starting at and including state S1, resolve the location for each of the
  *  previous N1 states that is unresolved.  The first semantic option of a state
@@ -1860,7 +1860,7 @@ yyresolveLocations (yyGLRState* yys1, int yyn1,
 	  yylloc = yylloc_current;
 	}
     }
-}
+}]])[
 
 /** Resolve the ambiguity represented in state S, perform the indicated
  *  actions, and set the semantic value of S.  If result != yyok, the chain of
@@ -1894,8 +1894,8 @@ yyresolveValue (yyGLRState* yys, yyGLRStack* yystackp]b4_user_formals[)
 	{
 	  switch (yypreference (yybest, yyp))
 	    {
-	    case 0:
-	      yyresolveLocations (yys, 1, yystackp]b4_user_args[);
+	    case 0:]b4_locations_if([[
+	      yyresolveLocations (yys, 1, yystackp]b4_user_args[);]])[
 	      return yyreportAmbiguity (yybest, yyp]b4_pure_args[);
 	      break;
 	    case 1:
-- 
1.7.0.4


>From c9e2da4f20c97c4cb53b68d4912dbdb8836df9a4 Mon Sep 17 00:00:00 2001
From: Joel E. Denny <joeldenny@joeldenny.org>
Date: Sat, 16 Apr 2011 18:26:18 -0400
Subject: [PATCH 2/2] tests: pacify gcc 4.6.0's -Wunused-but-set-variable.

Reported by Jim Meyering at
<http://lists.gnu.org/archive/html/bug-bison/2011-04/msg00002.html>.
* tests/actions.at
(Default %printer and %destructor for mid-rule values): Define
YYLLOC_DEFAULT so that it uses its Rhs argument.
---
 ChangeLog        |    9 +++++++++
 tests/actions.at |    2 +-
 2 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 4c63cb1..243ee1f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2011-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
 
+	tests: pacify gcc 4.6.0's -Wunused-but-set-variable.
+	Reported by Jim Meyering at
+	<http://lists.gnu.org/archive/html/bug-bison/2011-04/msg00002.html>.
+	* tests/actions.at
+	(Default %printer and %destructor for mid-rule values): Define
+	YYLLOC_DEFAULT so that it uses its Rhs argument.
+
+2011-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
+
 	glr.c: omit yyresolveLocations when locations are disabled.
 	This prevents gcc 4.6.0's -Wunused-but-set-variable from warning
 	about yyresolveLocations's local yyrhsloc.  When locations are
diff --git a/tests/actions.at b/tests/actions.at
index 3761650..c95038e 100644
--- a/tests/actions.at
+++ b/tests/actions.at
@@ -1199,7 +1199,7 @@ AT_DATA_GRAMMAR([[input.y]],
   static int yylex (void);
 # define USE(SYM)
 # define YYLTYPE int
-# define YYLLOC_DEFAULT(Current, Rhs, N)
+# define YYLLOC_DEFAULT(Current, Rhs, N) (void)(Rhs)
 # define YY_LOCATION_PRINT(File, Loc)
 %}
 
-- 
1.7.0.4



From MAILER-DAEMON Mon Apr 18 16:06:40 2011
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1QBuiW-0008Hu-Lj
	for mharc-bug-bison@gnu.org; Mon, 18 Apr 2011 16:06:40 -0400
Received: from eggs.gnu.org ([140.186.70.92]:55865)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1QBuiT-0008HI-O1
	for bug-bison@gnu.org; Mon, 18 Apr 2011 16:06:38 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1QBuiS-0004Uc-R8
	for bug-bison@gnu.org; Mon, 18 Apr 2011 16:06:37 -0400
Received: from mx.meyering.net ([82.230.74.64]:40232)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1QBuiS-0004UM-KJ
	for bug-bison@gnu.org; Mon, 18 Apr 2011 16:06:36 -0400
Received: by rho.meyering.net (Acme Bit-Twister, from userid 1000)
	id A46F5601AF; Mon, 18 Apr 2011 22:06:33 +0200 (CEST)
From: Jim Meyering <jim@meyering.net>
To: "Joel E. Denny" <joeldenny@joeldenny.org>
Subject: Re: [GNU Bison 2.4.588-2f658] testsuite: 74 75 76 77 78 79 80 81 82
	141 149 185 186 188 189 190 191 195 247 250 287 289 291 293 295
	296 297 298 299 300 301 302 304 305 306 307 310 311 failed
In-Reply-To: <alpine.DEB.2.00.1104161719390.10935@vega> (Joel E. Denny's
	message of "Sat, 16 Apr 2011 18:45:28 -0400 (EDT)")
References: <871v12k01t.fsf@rho.meyering.net>
	<alpine.DEB.2.00.1104161719390.10935@vega>
Date: Mon, 18 Apr 2011 22:06:33 +0200
Message-ID: <87bp03494m.fsf@rho.meyering.net>
Lines: 38
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 82.230.74.64
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 18 Apr 2011 20:06:38 -0000

Joel E. Denny wrote:
> On Sat, 16 Apr 2011, Jim Meyering wrote:
>
>> I've just bootstrapped, configured with --enable-gcc-warnings, built
>> and run "make check" on Fedora 15 (i.e., gcc version 4.6.0 20110413)
>> I was surprised to see so many failures (abbreviated output below).
>>
>> However, they're all due to one newly-enabled gcc warning:
>> note the [-Werror=unused-but-set-variable] in every case below.
>
> Thanks for the report.  In all but one case, that warning is revealing an
> old bug in glr.c.  In the remaining case, it's suprious but easy to
> suppress.  I pushed the fixes below to master and branch-2.5.
>
>> At first I tried to turn off only that one new warning,
>> but -Wno-unused-but-set-variable had no effect, so I
>> resorted to -Wno-unused.
>
> In case it helps, either of those worked for me.

Thanks, Joel.

FYI, now, using the latest sources from git,
when I bootstrap, run ./configure --enable-gcc-warnings
and then make and "make distcheck", I see this:

/bin/sh ../build-aux/ylwrap ../src/parse-gram.y y.tab.c src/parse-gram.c y.tab.h src/parse-gram.h y.output src/parse-gram.output -- tests/bison -y -dv --warnings=all,error --report=all
/bin/sh ../build-aux/ylwrap ../src/scan-code.l lex.yy.c src/scan-code.c -- flex
/bin/sh ../build-aux/ylwrap ../src/scan-gram.l lex.yy.c src/scan-gram.c -- flex
/bin/sh ../build-aux/ylwrap ../src/scan-skel.l lex.yy.c src/scan-skel.c -- flex
/w/bison/bison-2.4.593-a78a/_build/tests/bison: line 11: /w/bison/bison-2.4.593-a78a/_build/src/bison: No such file or directory
Can't open y.tab.[ch]: No such file or directory.
make[1]: *** [src/parse-gram.c] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/w/bison/bison-2.4.593-a78a/_build'
make: *** [distcheck] Error 1

I haven't had time to delve into it, yet.


From MAILER-DAEMON Wed Apr 20 08:02:33 2011
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1QCW77-0002aa-Hp
	for mharc-bug-bison@gnu.org; Wed, 20 Apr 2011 08:02:33 -0400
Received: from eggs.gnu.org ([140.186.70.92]:35272)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <joeldenny@joeldenny.org>) id 1QCW75-0002aS-Ik
	for bug-bison@gnu.org; Wed, 20 Apr 2011 08:02:32 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <joeldenny@joeldenny.org>) id 1QCW74-0007Bf-Dm
	for bug-bison@gnu.org; Wed, 20 Apr 2011 08:02:31 -0400
Received: from p3plsmtpa07-10.prod.phx3.secureserver.net
	([173.201.192.239]:44585) by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <joeldenny@joeldenny.org>) id 1QCW74-0007BU-1o
	for bug-bison@gnu.org; Wed, 20 Apr 2011 08:02:30 -0400
Received: (qmail 15541 invoked from network); 20 Apr 2011 12:02:25 -0000
Received: from unknown (173.233.121.70)
	by p3plsmtpa07-10.prod.phx3.secureserver.net (173.201.192.239) with
	ESMTP; 20 Apr 2011 12:02:25 -0000
Date: Wed, 20 Apr 2011 08:02:35 -0400 (EDT)
From: "Joel E. Denny" <joeldenny@joeldenny.org>
X-X-Sender: jdenny@vega
To: Jim Meyering <jim@meyering.net>
Subject: Re: [GNU Bison 2.4.588-2f658] testsuite: 74 75 76 77 78 79 80 81 82
	141 149 185 186 188 189 190 191 195 247 250 287 289 291 293 295 296 297
	298 299 300 301 302 304 305 306 307 310 311 failed
In-Reply-To: <87bp03494m.fsf@rho.meyering.net>
Message-ID: <alpine.DEB.2.00.1104190738570.17312@vega>
References: <871v12k01t.fsf@rho.meyering.net>
	<alpine.DEB.2.00.1104161719390.10935@vega>
	<87bp03494m.fsf@rho.meyering.net>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 173.201.192.239
Cc: Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 20 Apr 2011 12:02:32 -0000

On Mon, 18 Apr 2011, Jim Meyering wrote:

> FYI, now, using the latest sources from git,
> when I bootstrap, run ./configure --enable-gcc-warnings
> and then make and "make distcheck", I see this:
> 
> /bin/sh ../build-aux/ylwrap ../src/parse-gram.y y.tab.c src/parse-gram.c y.tab.h src/parse-gram.h y.output src/parse-gram.output -- tests/bison -y -dv --warnings=all,error --report=all
> /bin/sh ../build-aux/ylwrap ../src/scan-code.l lex.yy.c src/scan-code.c -- flex
> /bin/sh ../build-aux/ylwrap ../src/scan-gram.l lex.yy.c src/scan-gram.c -- flex
> /bin/sh ../build-aux/ylwrap ../src/scan-skel.l lex.yy.c src/scan-skel.c -- flex
> /w/bison/bison-2.4.593-a78a/_build/tests/bison: line 11: /w/bison/bison-2.4.593-a78a/_build/src/bison: No such file or directory
> Can't open y.tab.[ch]: No such file or directory.
> make[1]: *** [src/parse-gram.c] Error 1
> make[1]: *** Waiting for unfinished jobs....
> make[1]: Leaving directory `/w/bison/bison-2.4.593-a78a/_build'
> make: *** [distcheck] Error 1

This doesn't happen for me.  Somehow your tarball's parse-gram.y must have 
a later time stamp than parse-gram.c or parse-gram.h.  Is your "make dist" 
setting the time stamps inappropriately for some reason?  If so, perhaps 
we need a dist-hook to fix that.  Or are the time stamps being set 
inappropriately upon extraction from the tarball?


From MAILER-DAEMON Wed Apr 20 08:43:53 2011
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1QCWl7-0002yd-Ix
	for mharc-bug-bison@gnu.org; Wed, 20 Apr 2011 08:43:53 -0400
Received: from eggs.gnu.org ([140.186.70.92]:52865)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1QCWl5-0002xa-EL
	for bug-bison@gnu.org; Wed, 20 Apr 2011 08:43:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1QCWl4-0006ii-HM
	for bug-bison@gnu.org; Wed, 20 Apr 2011 08:43:51 -0400
Received: from mx.meyering.net ([82.230.74.64]:42354)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@meyering.net>)
	id 1QCWl1-0006iJ-TY; Wed, 20 Apr 2011 08:43:48 -0400
Received: by rho.meyering.net (Acme Bit-Twister, from userid 1000)
	id C0897602A9; Wed, 20 Apr 2011 14:43:46 +0200 (CEST)
From: Jim Meyering <jim@meyering.net>
To: "Joel E. Denny" <joeldenny@joeldenny.org>
Subject: Re: [GNU Bison 2.4.588-2f658] testsuite: 74 75 76 77 78 79 80 81 82
	141 149 185 186 188 189 190 191 195 247 250 287 289 291 293 295
	296 297 298 299 300 301 302 304 305 306 307 310 311 failed
In-Reply-To: <alpine.DEB.2.00.1104190738570.17312@vega> (Joel E. Denny's
	message of "Wed, 20 Apr 2011 08:02:35 -0400 (EDT)")
References: <871v12k01t.fsf@rho.meyering.net>
	<alpine.DEB.2.00.1104161719390.10935@vega>
	<87bp03494m.fsf@rho.meyering.net>
	<alpine.DEB.2.00.1104190738570.17312@vega>
Date: Wed, 20 Apr 2011 14:43:46 +0200
Message-ID: <87aaflw0sd.fsf@rho.meyering.net>
Lines: 63
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 82.230.74.64
Cc: bug-automake@gnu.org, Bison Bugs <bug-bison@gnu.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 20 Apr 2011 12:43:52 -0000

[TL;DR using automake.git, bison.git fails "make distcheck"s non-srcdir build]

Joel E. Denny wrote:
> On Mon, 18 Apr 2011, Jim Meyering wrote:
>
>> FYI, now, using the latest sources from git,
>> when I bootstrap, run ./configure --enable-gcc-warnings
>> and then make and "make distcheck", I see this:
>>
>> /bin/sh ../build-aux/ylwrap ../src/parse-gram.y y.tab.c
>> src/parse-gram.c y.tab.h src/parse-gram.h y.output
>> src/parse-gram.output -- tests/bison -y -dv --warnings=all,error
>> --report=all
>> /bin/sh ../build-aux/ylwrap ../src/scan-code.l lex.yy.c src/scan-code.c -- flex
>> /bin/sh ../build-aux/ylwrap ../src/scan-gram.l lex.yy.c src/scan-gram.c -- flex
>> /bin/sh ../build-aux/ylwrap ../src/scan-skel.l lex.yy.c src/scan-skel.c -- flex
>> /w/bison/bison-2.4.593-a78a/_build/tests/bison: line 11:
>> /w/bison/bison-2.4.593-a78a/_build/src/bison: No such file or
>> directory
>> Can't open y.tab.[ch]: No such file or directory.
>> make[1]: *** [src/parse-gram.c] Error 1
>> make[1]: *** Waiting for unfinished jobs....
>> make[1]: Leaving directory `/w/bison/bison-2.4.593-a78a/_build'
>> make: *** [distcheck] Error 1
>
> This doesn't happen for me.  Somehow your tarball's parse-gram.y must have
> a later time stamp than parse-gram.c or parse-gram.h.  Is your "make dist"
> setting the time stamps inappropriately for some reason?  If so, perhaps
> we need a dist-hook to fix that.  Or are the time stamps being set
> inappropriately upon extraction from the tarball?

Hi Joel,

I figure it's something different about my build environment.
That doesn't seem to be the problem:

  $ tar tvf bison-2.4.593-a78a.tar.gz|grep parse-gram
  -rw-r--r-- 0/0    21804 2011-03-17 18:00 bison-2.4.593-a78a/src/parse-gram.y
  -rw-r--r-- 0/0   103025 2011-04-18 21:59 bison-2.4.593-a78a/src/parse-gram.c
  -rw-r--r-- 0/0     5845 2011-04-18 21:59 bison-2.4.593-a78a/src/parse-gram.h

I can reproduce it by running "make dist", unpacking the result
and then using it to perform a non-srcdir build.

  tar xf bison-2.4.593-a78a.tar.bz2
  cd bison-2.4.593-a78a
  mkdir .j && cd .j && ../configure && make
  ...

/bin/sh ../build-aux/ylwrap ../src/parse-gram.y y.tab.c src/parse-gram.c y.tab.h src/parse-gram.h y.output src/parse-gram.output -- tests/bison -y -dv --warnings=all,error --report=all
/bin/sh ../build-aux/ylwrap ../src/scan-code.l lex.yy.c src/scan-code.c -- flex
/bin/sh ../build-aux/ylwrap ../src/scan-gram.l lex.yy.c src/scan-gram.c -- flex
/bin/sh ../build-aux/ylwrap ../src/scan-skel.l lex.yy.c src/scan-skel.c -- flex
/h/j/w/co/bison/bison-2.4.593-a78a/.j/tests/bison: line 11: /h/j/w/co/bison/bison-2.4.593-a78a/.j/src/bison: No such file or directory
Can't open y.tab.[ch]: No such file or directory.
make: *** [src/parse-gram.c] Error 1
make: *** Waiting for unfinished jobs....
[Exit 2]

FYI, I've just  bootstrapped bison from scratch, but without using
e.g., personally-installed automake build from automake.git's master.
That solved the problem, but I don't know precisely why yet.
I'll investigate, eventually.


From MAILER-DAEMON Wed Apr 20 09:13:21 2011
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1QCXDd-0007o8-TT
	for mharc-bug-bison@gnu.org; Wed, 20 Apr 2011 09:13:21 -0400
Received: from eggs.gnu.org ([140.186.70.92]:52602)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1QCXDb-0007nx-5Q
	for bug-bison@gnu.org; Wed, 20 Apr 2011 09:13:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1QCXDa-0003JY-2t
	for bug-bison@gnu.org; Wed, 20 Apr 2011 09:13:19 -0400
Received: from mailout-de.gmx.net ([213.165.64.23]:38250)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <Ralf.Wildenhues@gmx.de>) id 1QCXDZ-0003JT-Lg
	for bug-bison@gnu.org; Wed, 20 Apr 2011 09:13:18 -0400
Received: (qmail 9506 invoked by uid 0); 20 Apr 2011 13:13:15 -0000
Received: from 131.220.223.4 by www111.gmx.net with HTTP;
	Wed, 20 Apr 2011 15:13:15 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Date: Wed, 20 Apr 2011 15:13:15 +0200
From: "Ralf Wildenhues" <Ralf.Wildenhues@gmx.de>
In-Reply-To: <87aaflw0sd.fsf@rho.meyering.net>
Message-ID: <20110420131315.8270@gmx.net>
MIME-Version: 1.0
Organization: Institute for Numerical Simulation, University of Bonn
References: <871v12k01t.fsf@rho.meyering.net>
	<alpine.DEB.2.00.1104161719390.10935@vega>
	<87bp03494m.fsf@rho.meyering.net>
	<alpine.DEB.2.00.1104190738570.17312@vega>
	<87aaflw0sd.fsf@rho.meyering.net>
Subject: Re: bug#8526: [GNU Bison 2.4.588-2f658] testsuite: 74 75 76 77 78 79
	80 81 82 141 149 185 186 188 189 190 191 195 247 250 287 289 291 293
	295 296 297 298 299 300 301 302 304 305 306 307 310 311 failed
To: Jim Meyering <jim@meyering.net>
X-Authenticated: #13673931
X-Flags: 0001
X-Mailer: WWW-Mail 6100 (Global Message Exchange)
X-Mutt-Fcc: =bug-automake
X-Mutt-References: <87aaflw0sd.fsf@rho.meyering.net>
X-Priority: 3
X-Provags-ID: V01U2FsdGVkX1/lVnZTBjnl3qVyucPNme7JWRSWlKMpmDdhOB3T7u
	rmMtx1fG9lH1IgxspHPwKpziu2n8AkYtUf9g== 
Content-Transfer-Encoding: 8bit
X-GMX-UID: 0+mdeVFKX1V6E//IvGFywRN/SDc4NEzf
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 213.165.64.23
Cc: 8526@debbugs.gnu.org, bug-bison@gnu.org,
	"Joel E. Denny" <joeldenny@joeldenny.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 20 Apr 2011 13:13:20 -0000

* Jim Meyering wrote on Wed, Apr 20, 2011 at 02:43:46PM CEST:
> [TL;DR using automake.git, bison.git fails "make distcheck"s non-srcdir build]

> >> /bin/sh ../build-aux/ylwrap ../src/scan-skel.l lex.yy.c src/scan-skel.c -- flex
> >> /w/bison/bison-2.4.593-a78a/_build/tests/bison: line 11:
> >> /w/bison/bison-2.4.593-a78a/_build/src/bison: No such file or
> >> directory
> >> Can't open y.tab.[ch]: No such file or directory.
> >> make[1]: *** [src/parse-gram.c] Error 1

Likely dupe of http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8485
regression introduced in v1.11-328-ge87c030/

> FYI, I've just  bootstrapped bison from scratch, but without using
> e.g., personally-installed automake build from automake.git's master.
> That solved the problem, but I don't know precisely why yet.

Explained by above.

Thanks,
Ralf


From MAILER-DAEMON Wed Apr 20 09:52:55 2011
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1QCXpu-00061Z-UZ
	for mharc-bug-bison@gnu.org; Wed, 20 Apr 2011 09:52:54 -0400
Received: from eggs.gnu.org ([140.186.70.92]:51958)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1QCXps-00061N-P7
	for bug-bison@gnu.org; Wed, 20 Apr 2011 09:52:53 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1QCXpr-0001jI-MG
	for bug-bison@gnu.org; Wed, 20 Apr 2011 09:52:52 -0400
Received: from mx.meyering.net ([82.230.74.64]:46468)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1QCXpr-0001j5-GN
	for bug-bison@gnu.org; Wed, 20 Apr 2011 09:52:51 -0400
Received: by rho.meyering.net (Acme Bit-Twister, from userid 1000)
	id 8E77460230; Wed, 20 Apr 2011 15:52:50 +0200 (CEST)
From: Jim Meyering <jim@meyering.net>
To: "Ralf Wildenhues" <Ralf.Wildenhues@gmx.de>
Subject: Re: bug#8526: [GNU Bison 2.4.588-2f658] testsuite: 74 75 76 77 78 79
	80 81 82 141 149 185 186 188 189 190 191 195 247 250 287 289
	291 293 295 296 297 298 299 300 301 302 304 305 306 307 310 311 failed
In-Reply-To: <20110420131315.8270@gmx.net> (Ralf Wildenhues's message of "Wed, 
	20 Apr 2011 15:13:15 +0200")
References: <871v12k01t.fsf@rho.meyering.net>
	<alpine.DEB.2.00.1104161719390.10935@vega>
	<87bp03494m.fsf@rho.meyering.net>
	<alpine.DEB.2.00.1104190738570.17312@vega>
	<87aaflw0sd.fsf@rho.meyering.net> <20110420131315.8270@gmx.net>
Date: Wed, 20 Apr 2011 15:52:50 +0200
Message-ID: <87ipu9uj0t.fsf@rho.meyering.net>
Lines: 21
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 82.230.74.64
Cc: 8526@debbugs.gnu.org, bug-bison@gnu.org,
	"Joel E. Denny" <joeldenny@joeldenny.org>
X-BeenThere: bug-bison@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for Bison, the GNU parser generator" <bug-bison.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/options/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-bison>
List-Post: <mailto:bug-bison@gnu.org>
List-Help: <mailto:bug-bison-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-bison>,
	<mailto:bug-bison-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 20 Apr 2011 13:52:53 -0000

Ralf Wildenhues wrote:
> * Jim Meyering wrote on Wed, Apr 20, 2011 at 02:43:46PM CEST:
>> [TL;DR using automake.git, bison.git fails "make distcheck"s non-srcdir build]
>
>> >> /bin/sh ../build-aux/ylwrap ../src/scan-skel.l lex.yy.c src/scan-skel.c -- flex
>> >> /w/bison/bison-2.4.593-a78a/_build/tests/bison: line 11:
>> >> /w/bison/bison-2.4.593-a78a/_build/src/bison: No such file or
>> >> directory
>> >> Can't open y.tab.[ch]: No such file or directory.
>> >> make[1]: *** [src/parse-gram.c] Error 1
>
> Likely dupe of http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8485
> regression introduced in v1.11-328-ge87c030/
>
>> FYI, I've just  bootstrapped bison from scratch, but without using
>> e.g., personally-installed automake build from automake.git's master.
>> That solved the problem, but I don't know precisely why yet.
>
> Explained by above.

Thanks.  That does indeed look like the same problem.


