Have you seen this?
The latest
flex
makes theGRUB-2.00
build fail. I can work around the issues with--disable-werror
, butgrub-core/script/yylex.l
causes two warnings that do not work with -Werror.
./grub-core/script/yylex.l: At top level: grub_script.yy.c:2351:13: error: 'yy_fatal_error' defined but not used
This can be fixed by removing
#define YY_FATAL_ERROR(msg)
inyylex.l
.
However, according to this post this seems to have been fixed.
Judging from the info on the net you either want to switch to grub 2.02
or try an older version of flex
.