[AMBER] BUG in NAB file nabgrm.y

From: Chris Whittleston <csw34.cam.ac.uk>
Date: Wed, 23 Nov 2011 16:48:49 +0000

Dear AMBER developers,

There seems to be a bug in the nabgrm.y file in the nab source that
prevents compilation on systems running bison 2.4 or higher. For example,
using bison 2.4, I get the following.

csw34.sinister:~/amber11/AmberTools/src/nab> bison -y -t -d nabgrm.y
nabgrm.y:405.35-36: $$ for the midrule at $6 of `if_hdr' has no declared
type
nabgrm.y:406.47-48: $$ for the midrule at $6 of `if_hdr' has no declared
type
nabgrm.y:429.35-36: $$ for the midrule at $6 of `while_hdr' has no declared
type
nabgrm.y:430.47-48: $$ for the midrule at $6 of `while_hdr' has no declared
type

These are errors which abort the compilation entirely. If instead I use
bison 2.3, I only get a couple of warnings, and compilation continues just
fine.

csw34.sinister:~/amber11/AmberTools/src/nab> /usr/local/bison/2.3/bin/bison
-y -t -d nabgrm.y
nabgrm.y:403.19-407.65: warning: unused value: $6
nabgrm.y:427.19-431.65: warning: unused value: $6
conflicts: 3 shift/reduce

There was a bug in bison pre-2.4 where these errors were being let through.
They are now picked up by the new version, and nab will not compile. This
shows that nabgrm.y has a problem somewhere, similar to that discussed here
http://lists.gnu.org/archive/html/help-bison/2009-03/msg00015.html

Unfortunately, I know little about bison itself, so cannot propose a fix -
but thought you should be made aware. I have dug out my old files and this
same problem occurs with nabgrm.y in AMBER 11, 10 and 9 so it has been
hanging around for a while!

Best,

Chris

-- 
*Chris Whittleston*
Department of Chemistry
University of Cambridge
Lensfield Road, Cambridge, CB2 1EW
Email: csw34.cam.ac.uk
Tel: +44 (0)1223 336423
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Wed Nov 23 2011 - 09:00:05 PST
Custom Search