Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation breaks after bison 3.7.x upgrade #20

Open
priv-kweihmann opened this issue Aug 29, 2020 · 1 comment
Open

compilation breaks after bison 3.7.x upgrade #20

priv-kweihmann opened this issue Aug 29, 2020 · 1 comment

Comments

@priv-kweihmann
Copy link

After updating to bison 3.7.1 compilation doesn't work anymore - compiler is complains about syntax errors.
Same files work with versions < 3.7.0

find -name "*.y" -exec bison --update {} \; does return

./src/mtgrammar.y: warning: 11 shift/reduce conflicts [-Wconflicts-sr]
./src/mtgrammar.y: note: rerun with option '-Wcounterexamples' to generate conflict counterexamples
./src/cgrammar.y: warning: 159 shift/reduce conflicts [-Wconflicts-sr]
./src/cgrammar.y: warning: 123 reduce/reduce conflicts [-Wconflicts-rr]
./src/cgrammar.y: note: rerun with option '-Wcounterexamples' to generate conflict counterexamples
./src/llgrammar.y: warning: 2 shift/reduce conflicts [-Wconflicts-sr]
./src/llgrammar.y: note: rerun with option '-Wcounterexamples' to generate conflict counterexamples

Used versions

  • bison 3.7.1
  • gcc 10.2.0
  • splint a28a60f
@millert
Copy link

millert commented May 9, 2021

Bison 3.7 now includes the generated header file so the .c files need to be modified to include the correct file after things get renamed. This is fixed by #26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants