Mac m1下午build,generating lex and yacc files失败

git clone GitHub - oceanbase/miniob: MiniOB is a compact database that assists developers in understanding the fundamental workings of a database.

sudo bash build.sh init

sudo bash build.sh 之后报错,请教一下这个是什么问题呢?
[ 16%] generating lex and yacc files
yacc_sql.y:56.9-16: syntax error, unexpected identifier, expecting string
make[2]: *** [/Users/Terry/Desktop/project/c++/miniob/src/observer/sql/parser/lex_sql.cpp] Error 1
make[2]: *** Deleting file /Users/Terry/Desktop/project/c++/miniob/src/observer/sql/parser/lex_sql.cpp' make[1]: *** [src/observer/CMakeFiles/observer_static.dir/all] Error 2 make: *** [all] Error 2 [ 15%] Built target common [ 15%] Built target obclient [ 16%] **generating lex and yacc files** yacc_sql.y:56.9-16: syntax error, unexpected identifier, expecting string make[2]: *** [/Users/Terry/Desktop/project/c++/miniob/src/observer/sql/parser/lex_sql.cpp] Error 1 make[2]: *** Deleting file /Users/Terry/Desktop/project/c++/miniob/src/observer/sql/parser/lex_sql.cpp’
make[1]: *** [src/observer/CMakeFiles/observer_static.dir/all] Error 2

uname -a相关信息
Darwin terry.local 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct 9 20:15:09 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T6000 arm64

flex --version
bison --version

执行一下这两个命令,看看你的系统上安装的什么版本。

flex 2.6.4 Apple(flex-34)
bison (GNU Bison) 2.3

你的bison版本太低了,升级一下吧,用3.7或者以上的版本

感谢是这问题,看了下是有提醒版本,忽略了