- add -O0 for compiling sql/sql_yacc.cc. Otherwise gcc eats a lot of memory and cpu time. It seems to be a gcc compiler bug in conjunction with -O.