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

graphqlparser_bison: parser.ypp:8.10-12: error: invalid version requirement: 3 #121

Open
vitabaks opened this issue Dec 7, 2022 · 2 comments

Comments

@vitabaks
Copy link

vitabaks commented Dec 7, 2022

When trying to build v0.7.0, I get an error:

+ make install
[  4%] [FLEX][GraphQLScanner] Building scanner with flex 2.6.4
[  8%] Generating Ast.h
[ 13%] Generating Ast.cpp
[ 17%] Generating AstVisitor.h
[ 21%] Generating c/GraphQLAst.h
[ 26%] Generating c/GraphQLAst.cpp
[ 30%] Generating c/GraphQLAstForEachConcreteType.h
[ 34%] Generating JsonVisitor.h.inc
[ 39%] Generating JsonVisitor.cpp.inc
[ 43%] [BISON][graphqlparser_bison] Building parser with bison 3.7.5
parser.ypp:8.10-12: error: invalid version requirement: 3
    8 | %require "3"
      |          ^~~
parser.ypp:13.1-45: warning: deprecated directive: ‘%define parser_class_name {GraphQLParserImpl}’, use ‘%define api.parser.class {GraphQLParserImpl}’ [-Wdeprecated]
   13 | %define parser_class_name {GraphQLParserImpl}
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      | %define api.parser.class {GraphQLParserImpl}
parser.ypp: warning: fix-its can be applied.  Rerun with option '--update'. [-Wother]
make[2]: *** [CMakeFiles/graphqlparser.dir/build.make:129: parser.tab.cpp] Error 1
make[1]: *** [CMakeFiles/Makefile2:143: CMakeFiles/graphqlparser.dir/all] Error 2
make: *** [Makefile:149: all] Error 2

I also tried building the latest version from the "master" branch (although I prefer to use the code from the release tags) and I get the same error.

I will be able to build after a few attempts, but for a successful build I have to restart the CI of the build many times.
I will be very grateful for help in solving this problem.

@fawdlstty
Copy link

I have encountered the same problem. Have you found the reason and how to solve it? thank you

@fawdlstty
Copy link

#77
modify 3 to 3.0 to resolve this problem

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