Skip to content

Files generated by yacc in 3.2.3 tarball cause compilation errors #48

Description

@d-torrance

The 3.2.3 tarball includes the files src/libmps/monomial/yacc-parser.c and src/libmps/monomial/yacc-parser.h, apparently generated by byacc 1.9:

/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar	1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */

#define YYBYACC 1
#define YYMAJOR 2
#define YYMINOR 0
#define YYPATCH 20221106

However, when compiling this code with GCC 14, we get the following error:

  CC       monomial/tokenizer.lo
../../../src/libmps/monomial/tokenizer.l: In function 'mps_monomial_yacc_parser':
../../../src/libmps/monomial/tokenizer.l:51:3: error: implicit declaration of function 'yyparse'; did you mean 'pause'? [-Wimplicit-function-declaration]
make[4]: *** [Makefile:1507: monomial/tokenizer.lo] Error 1

Replacing these generated files with ones generated by bison 3.8.2 fixes this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions