Hi Owen, it's not an explanation to the problem, but the following patch to plural.y seems to get it going:
--------------------------------------------------------------- diff -Naur plural.y plural.y.fix --- plural.y +++ plural.y.fix @@ -43,6 +43,7 @@ #define YYLEX_PARAM &((struct parse_args *) arg)->cp #define YYPARSE_PARAM arg %} +%param {void *arg} %pure_parser %expect 7 @@ -67,7 +68,7 @@ struct expression *tbranch, struct expression *fbranch)); static int yylex PARAMS ((YYSTYPE *lval, const char **pexp)); -static void yyerror PARAMS ((const char *str)); +static void yyerror PARAMS ((void *arg, const char *str)); /* Allocation of expressions. */ @@ -402,7 +403,8 @@ static void -yyerror (str) +yyerror (arg, str) + void *arg; const char *str; { /* Do nothing. We don't print error messages here. */ --------------------------------------------------------------- Yours Alex On 09.03.2018 18:13, Hans Åberg wrote: > >> On 9 Mar 2018, at 00:16, blubee blubeeme <gurenc...@gmail.com> wrote: >> >> I am trying to build the riscv-gnu-toolchain from github. I have bison >> 3.0.4 installed >> >> After running configure then doing make I get this error below. > ... >> You can see the command that's run right before the error: >> >> bison -y --name-prefix=__gettext --output plural.c > > You have some incompatibilities here, as -y is to behave like Yacc, and then > the line above forces other naming conventions onto it. In addition, if you > are using Automake AC_PROG_YACC, it overrides such options. > > If your distribution has compiled (.c) lexer and parser files, you might try > without recreate them. > > > > _______________________________________________ > help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison > _______________________________________________ help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison