← Back to team overview

linux-traipu team mailing list archive

[Bug 1265496] Re: compile error with bison 3.0.2

 

Makefile:3185: warning: ignoring old recipe for target 'plugin_test_6'
Makefile:3197: warning: overriding recipe for target 'plugin_test_7'
Makefile:3194: warning: ignoring old recipe for target 'plugin_test_7'
Makefile:3206: warning: overriding recipe for target 'plugin_test_8'
Makefile:3203: warning: ignoring old recipe for target 'plugin_test_8'
Makefile:3215: warning: overriding recipe for target 'plugin_test_tls'
Makefile:3212: warning: ignoring old recipe for target 'plugin_test_tls'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/mnt/nouveau-home/CompBSD/binutils-2.24/gold/testsuite'
make[4]: Leaving directory '/mnt/nouveau-home/CompBSD/binutils-2.24/gold/testsuite'
make[4]: Entering directory '/mnt/nouveau-home/CompBSD/binutils-2.24/gold'
g++ -DHAVE_CONFIG_H -I.  -I. -I./../include -I./../elfcpp -DLOCALEDIR="\"/usr/cross-freebsd/share/locale\"" -DBINDIR="\"/usr/cross-freebsd/bin\"" -DTOOLBINDIR="\"/usr/cross-freebsd/arm-pc-freebsd10/bin\"" -DTOOLLIBDIR="\"/usr/cross-freebsd/arm-pc-freebsd10/lib\""   -W -Wall    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=expression.o -g -O2 -MT expression.o -MD -MP -MF .deps/expression.Tpo -c -o expression.o expression.cc
In file included from expression.cc:33:0:
script-c.h:221:7: warning: ‘yylex’ initialized and declared ‘extern’
 yylex(YYSTYPE*, void* closure);
       ^
script-c.h:221:7: error: ‘YYSTYPE’ was not declared in this scope
script-c.h:221:15: error: expected primary-expression before ‘,’ token
 yylex(YYSTYPE*, void* closure);
               ^
script-c.h:221:17: error: expected primary-expression before ‘void’
 yylex(YYSTYPE*, void* closure);
                 ^
script-c.h:221:30: error: expression list treated as compound expression in initializer [-fpermissive]
 yylex(YYSTYPE*, void* closure);
                              ^
Makefile:836: recipe for target 'expression.o' failed
make[4]: *** [expression.o] Error 1
make[4]: Leaving directory '/mnt/nouveau-home/CompBSD/binutils-2.24/gold'
Makefile:859: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/mnt/nouveau-home/CompBSD/binutils-2.24/gold'
Makefile:613: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/mnt/nouveau-home/CompBSD/binutils-2.24/gold'
Makefile:6012: recipe for target 'all-gold' failed
make[1]: *** [all-gold] Error 2
make[1]: Leaving directory '/mnt/nouveau-home/CompBSD/binutils-2.24'
Makefile:829: recipe for target 'all' failed
make: *** [all] Error 2


with bison 3.0.2

-- 
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