← Back to team overview

linux-traipu team mailing list archive

Re: [Bug 1265496] Re: compile error with bison 3.0.2

 

I believe this also recently affected MariaDB and was corrected, so it
may be good to look there for answers.

Excerpts from coldtobi's message of 2014-01-02 13:22:22 UTC:
> Adding also *.cc
> 
> note: even if this is from the current Debian version, I could reproduce
> this with trunk
> 
> ** Attachment added: "sql_yacc.cc"
>    https://bugs.launchpad.net/drizzle/+bug/1265496/+attachment/3939179/+files/sql_yacc.cc
> 
> -- 
> You received this bug notification because you are a member of Drizzle
> Developers, which is subscribed to Drizzle.
> https://bugs.launchpad.net/bugs/1265496
> 
> Title:
>   compile error with bison 3.0.2
> 
> Status in A Lightweight SQL Database for Cloud Infrastructure and Web Applications:
>   New
> 
> Bug description:
>   With recents (Debian) bison, the genereated file sql_yacc.hh does not compile.
>   (Note, this can also be a bison problem, I just can't tell)
> 
>   tobi@mordor:~/workspace/drizzle_build/gitorious/drizzle-debian$ touch drizzled/sql_yacc.yy
>   tobi@mordor:~/workspace/drizzle_build/gitorious/drizzle-debian$ make
>   bison -y  -p DRIZZLE -d --verbose -o drizzled/sql_yacc.cc drizzled/sql_yacc.yy
>   drizzled/sql_yacc.yy:177.1-13: warning: deprecated directive, use ‘%name-prefix’ [-Wdeprecated]
>    %name-prefix="base_sql_"
>    ^^^^^^^^^^^^^
>   make  all-recursive
>   make[1]: Entering directory `/home/tobi/workspace/drizzle_build/gitorious/drizzle-debian'
>   Making all in .
>   make[2]: Entering directory `/home/tobi/workspace/drizzle_build/gitorious/drizzle-debian'
>   g++-4.7 -DHAVE_CONFIG_H   -I. -I. -g  -D_FORTIFY_SOURCE=2 -pthread -pipe -std=gnu++98  -O2 -fvisibility=hidden -fvisibility-inlines-hidden  -pedantic -Wall -Wundef -Wshadow  -fdiagnostics-show-option  -fno-strict-aliasing -Wno-strict-aliasing -Wextra -Wformat -Wno-format-nonliteral -Wno-format-security -Woverloaded-virtual -Wnon-virtual-dtor -Wctor-dtor-privacy -Wno-long-long  -Wmissing-declarations -Wframe-larger-than=32768 -Wredundant-decls    -pthread -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -c -o drizzled/sql_yacc.o drizzled/sql_yacc.cc
>   drizzled/sql_yacc.cc:961:1: error: stray ‘#’ in program
>   drizzled/sql_yacc.cc:964:1: error: stray ‘#’ in program
>   drizzled/sql_yacc.cc:961:21: error: expected unqualified-id before numeric constant
>   drizzled/sql_yacc.cc:964:13: error: expected unqualified-id before numeric constant
>   drizzled/sql_yacc.cc:5848:52: error: ‘YYSTYPE’ has not been declared
>   drizzled/sql_yacc.cc:5868:46: error: ‘YYSTYPE’ has not been declared
>   drizzled/sql_yacc.cc:5906:39: error: ‘YYSTYPE’ has not been declared
>   drizzled/sql_yacc.cc:6186:44: error: ‘YYSTYPE’ has not been declared
>   drizzled/sql_yacc.cc: In function ‘int base_sql_parse(drizzled::Session*)’:
>   drizzled/sql_yacc.cc:6217:1: error: ‘YYSTYPE’ was not declared in this scope
>   drizzled/sql_yacc.cc:6217:9: error: expected ‘;’ before ‘yylval’
>   drizzled/sql_yacc.cc:6239:13: error: expected ‘;’ before ‘yyvsa’
>   drizzled/sql_yacc.cc:6240:14: error: ‘yyvs’ was not declared in this scope
>   drizzled/sql_yacc.cc:6241:14: error: ‘yyvsp’ was not declared in this scope
>   drizzled/sql_yacc.cc:6251:11: error: expected ‘;’ before ‘yyval’
>   drizzled/sql_yacc.cc:6267:18: error: ‘yyvsa’ was not declared in this scope
>   drizzled/sql_yacc.cc:6299:18: error: ‘yyvs1’ was not declared in this scope
>   drizzled/sql_yacc.cc:6376:31: error: ‘yylval’ was not declared in this scope
>   drizzled/sql_yacc.cc:6387:111: error: ‘yylval’ was not declared in this scope
>   drizzled/sql_yacc.cc:6410:102: error: ‘yylval’ was not declared in this scope
>   drizzled/sql_yacc.cc:6417:14: error: ‘yylval’ was not declared in this scope
>   drizzled/sql_yacc.cc:6448:3: error: ‘yyval’ was not declared in this scope
>   make[2]: *** [drizzled/sql_yacc.o] Error 1
>   make[2]: Leaving directory `/home/tobi/workspace/drizzle_build/gitorious/drizzle-debian'
>   make[1]: *** [all-recursive] Error 1
>   make[1]: Leaving directory `/home/tobi/workspace/drizzle_build/gitorious/drizzle-debian'
>   make: *** [all] Error 2
>   tobi@mordor:~/workspace/drizzle_build/gitorious/drizzle-debian$ bison -V
>   bison (GNU Bison) 3.0.2
>   Written by Robert Corbett and Richard Stallman.
> 
>   Copyright (C) 2013 Free Software Foundation, Inc.
>   This is free software; see the source for copying conditions.  There is NO
>   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>   tobi@mordor:~/workspace/drizzle_build/gitorious/drizzle-debian$ 
> 
>   Attaching the generated sql_yacc.hh
> 
>   Best regards
>   coldtobi
> 
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/drizzle/+bug/1265496/+subscriptions

-- 
You received this bug notification because you are a member of UBUNTU -
AL - BR, which is subscribed to Drizzle.
https://bugs.launchpad.net/bugs/1265496

Title:
  compile error with bison 3.0.2

Status in A Lightweight SQL Database for Cloud Infrastructure and Web Applications:
  New

Bug description:
  With recents (Debian) bison, the genereated file sql_yacc.hh does not compile.
  (Note, this can also be a bison problem, I just can't tell)

  tobi@mordor:~/workspace/drizzle_build/gitorious/drizzle-debian$ touch drizzled/sql_yacc.yy
  tobi@mordor:~/workspace/drizzle_build/gitorious/drizzle-debian$ make
  bison -y  -p DRIZZLE -d --verbose -o drizzled/sql_yacc.cc drizzled/sql_yacc.yy
  drizzled/sql_yacc.yy:177.1-13: warning: deprecated directive, use ‘%name-prefix’ [-Wdeprecated]
   %name-prefix="base_sql_"
   ^^^^^^^^^^^^^
  make  all-recursive
  make[1]: Entering directory `/home/tobi/workspace/drizzle_build/gitorious/drizzle-debian'
  Making all in .
  make[2]: Entering directory `/home/tobi/workspace/drizzle_build/gitorious/drizzle-debian'
  g++-4.7 -DHAVE_CONFIG_H   -I. -I. -g  -D_FORTIFY_SOURCE=2 -pthread -pipe -std=gnu++98  -O2 -fvisibility=hidden -fvisibility-inlines-hidden  -pedantic -Wall -Wundef -Wshadow  -fdiagnostics-show-option  -fno-strict-aliasing -Wno-strict-aliasing -Wextra -Wformat -Wno-format-nonliteral -Wno-format-security -Woverloaded-virtual -Wnon-virtual-dtor -Wctor-dtor-privacy -Wno-long-long  -Wmissing-declarations -Wframe-larger-than=32768 -Wredundant-decls    -pthread -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -c -o drizzled/sql_yacc.o drizzled/sql_yacc.cc
  drizzled/sql_yacc.cc:961:1: error: stray ‘#’ in program
  drizzled/sql_yacc.cc:964:1: error: stray ‘#’ in program
  drizzled/sql_yacc.cc:961:21: error: expected unqualified-id before numeric constant
  drizzled/sql_yacc.cc:964:13: error: expected unqualified-id before numeric constant
  drizzled/sql_yacc.cc:5848:52: error: ‘YYSTYPE’ has not been declared
  drizzled/sql_yacc.cc:5868:46: error: ‘YYSTYPE’ has not been declared
  drizzled/sql_yacc.cc:5906:39: error: ‘YYSTYPE’ has not been declared
  drizzled/sql_yacc.cc:6186:44: error: ‘YYSTYPE’ has not been declared
  drizzled/sql_yacc.cc: In function ‘int base_sql_parse(drizzled::Session*)’:
  drizzled/sql_yacc.cc:6217:1: error: ‘YYSTYPE’ was not declared in this scope
  drizzled/sql_yacc.cc:6217:9: error: expected ‘;’ before ‘yylval’
  drizzled/sql_yacc.cc:6239:13: error: expected ‘;’ before ‘yyvsa’
  drizzled/sql_yacc.cc:6240:14: error: ‘yyvs’ was not declared in this scope
  drizzled/sql_yacc.cc:6241:14: error: ‘yyvsp’ was not declared in this scope
  drizzled/sql_yacc.cc:6251:11: error: expected ‘;’ before ‘yyval’
  drizzled/sql_yacc.cc:6267:18: error: ‘yyvsa’ was not declared in this scope
  drizzled/sql_yacc.cc:6299:18: error: ‘yyvs1’ was not declared in this scope
  drizzled/sql_yacc.cc:6376:31: error: ‘yylval’ was not declared in this scope
  drizzled/sql_yacc.cc:6387:111: error: ‘yylval’ was not declared in this scope
  drizzled/sql_yacc.cc:6410:102: error: ‘yylval’ was not declared in this scope
  drizzled/sql_yacc.cc:6417:14: error: ‘yylval’ was not declared in this scope
  drizzled/sql_yacc.cc:6448:3: error: ‘yyval’ was not declared in this scope
  make[2]: *** [drizzled/sql_yacc.o] Error 1
  make[2]: Leaving directory `/home/tobi/workspace/drizzle_build/gitorious/drizzle-debian'
  make[1]: *** [all-recursive] Error 1
  make[1]: Leaving directory `/home/tobi/workspace/drizzle_build/gitorious/drizzle-debian'
  make: *** [all] Error 2
  tobi@mordor:~/workspace/drizzle_build/gitorious/drizzle-debian$ bison -V
  bison (GNU Bison) 3.0.2
  Written by Robert Corbett and Richard Stallman.

  Copyright (C) 2013 Free Software Foundation, Inc.
  This is free software; see the source for copying conditions.  There is NO
  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  tobi@mordor:~/workspace/drizzle_build/gitorious/drizzle-debian$ 

  Attaching the generated sql_yacc.hh

  Best regards
  coldtobi

To manage notifications about this bug go to:
https://bugs.launchpad.net/drizzle/+bug/1265496/+subscriptions


References