develooper Front page | perl.perl5.porters | Postings from July 2016

blead fails to compile on win32 with bison 3

Thread Next
From:
Dave Mitchell
Date:
July 17, 2016 17:20
Subject:
blead fails to compile on win32 with bison 3
Message ID:
20160717172017.GF3477@iabyn.com
If I run 'perl regen_perl.y' on plain blead with bison 3.0.02, the
resulting code fails to compile on the win32 smoker
(smoke-me/davem/bison2):

    perl.c(2369) : error C2065: 'GRAMPROG' : undeclared identifier

The offending line is:

    if (yyparse(GRAMPROG) || PL_parser->error_count) {

The main change in output from bison 2.x to 3.x is that this:

    enum yytokentype {
      GRAMPROG = 258,
      ....
      ARROW = 337
    };
    #define GRAMPROG 258
    ...
    #define ARROW 337

becomes just

   enum yytokentype
   {
     GRAMPROG = 258,
     ARROW = 337
   };

i.e. the defines have been removed. Anyone know why this breaks win32
(but not linux)?

Full log at

Smoke logs available at http://m-l.org/~perl/smoke/perl/win32/smoke-me/David Mit chell/log0f51ff2a2c993b3e93db9fcd02ac5b9509d68f7b.log.gz",

-- 
If life gives you lemons, you'll probably develop a citric acid allergy.

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About