Open DavenAaron opened 6 years ago
bison版本过高吧,是不是用的3.0了?
Centos7.4 x86_64上 yum install gcc gcc-c++ libgcc cmake ncurses-devel openssl-devel cmake版本2.8.12 wget http://ftp.gnu.org/gnu/bison/bison-2.5.1.tar.gz tar zxvf bison-2.5.1.tar.gz cd bison-2.5.1 ./configure make && make install bison安装2.5.1版本后编译通过 :)
Centos7.4 x86_64上 yum install gcc gcc-c++ libgcc cmake ncurses-devel openssl-devel cmake版本2.8.12 wget http://ftp.gnu.org/gnu/bison/bison-2.5.1.tar.gz tar zxvf bison-2.5.1.tar.gz cd bison-2.5.1 ./configure make && make install bison安装2.5.1版本后编译通过 :)
依然失败
update 一下,bison安装2.5.1版本之后,需要删除前面 “sh inception_build.sh debug” 生成的目录 debug,再重新执行就OK了。
define YYTHD ((THD *)yythd)
/opt/inception/sql/sql_yacc.yy:39:14: 附注:in expansion of macro ‘YYTHD’
define Lex (YYTHD->lex)
/opt/inception/sql/sql_yacc.yy:16324:7: 附注:in expansion of macro ‘Lex’ { Lex->xa_opt=XA_NONE; } ^ /opt/inception/sql/sql_yacc.yy:31:23: 错误:‘yythd’在此作用域中尚未声明
define YYTHD ((THD *)yythd)
/opt/inception/sql/sql_yacc.yy:39:14: 附注:in expansion of macro ‘YYTHD’
define Lex (YYTHD->lex)
/opt/inception/sql/sql_yacc.yy:16326:7: 附注:in expansion of macro ‘Lex’ { Lex->xa_opt=XA_SUSPEND; } ^ /opt/inception/sql/sql_yacc.yy:31:23: 错误:‘yythd’在此作用域中尚未声明
define YYTHD ((THD *)yythd)
/opt/inception/sql/sql_yacc.yy:39:14: 附注:in expansion of macro ‘YYTHD’
define Lex (YYTHD->lex)
/opt/inception/sql/sql_yacc.yy:16332:7: 附注:in expansion of macro ‘Lex’ | FOR_SYM MIGRATE_SYM { Lex->xa_opt=XA_FOR_MIGRATE; } ^ /opt/inception/sql/sql_yacc.yy:31:23: 错误:‘yythd’在此作用域中尚未声明
define YYTHD ((THD *)yythd)
/opt/inception/sql/sql_yacc.yy:39:14: 附注:in expansion of macro ‘YYTHD’
define Lex (YYTHD->lex)
/opt/inception/sql/sql_yacc.yy:16338:23: 附注:in expansion of macro ‘Lex’ LEX *lex= Lex; ^ /opt/inception/sql/sql_yacc.yy:31:23: 错误:‘yythd’在此作用域中尚未声明
define YYTHD ((THD *)yythd)
/opt/inception/sql/sql_yacc.yy:39:14: 附注:in expansion of macro ‘YYTHD’
define Lex (YYTHD->lex)
/opt/inception/sql/sql_yacc.yy:16348:23: 附注:in expansion of macro ‘Lex’ LEX *lex= Lex; ^ make[2]: [sql/CMakeFiles/sql.dir/sql_yacc.cc.o] 错误 1 make[1]: [sql/CMakeFiles/sql.dir/all] 错误 2