Bison version 2.4.1 does not accept sac.y
|
|
Bugzilla Link |
494 |
Created on |
May 17, 2009 17:13 |
Resolution |
FIXED |
Resolved on |
May 18, 2009 11:00 |
Version |
1.00beta |
OS |
Linux |
Architecture |
PC |
Extended Description
As of sac2c version 16084, configure aborts with "can't find a working bison/yacc" if installed bison is of version 2.4.1 (and potentially newer?).
[sac2c] $ ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
[...]
checking for bison... bison -y
checking whether bison -y works... failed
checking for yacc... (cached) bison -y
configure: error: cannot find working bison/yacc
This is because bison claims sac.y contains errors:
[scanparse] $ pwd
/home/fpz/svn/sac/sac2c/src/libsac2c/scanparse
[scanparse] $ bison -V
bison (GNU Bison) 2.4.1
[scanparse] $ bison -y sac.y
sac.y:632.12-13: $$ for the midrule at $3 of `fundef2' has no declared type
sac.y:648.22-23: $$ for the midrule at $2 of `fundef2' has no declared type