Issue
When building the latest grub2 (2.00) I get this error.
I have tried adding -Wno-unused-function
to both HOST_CFLAGS
, HOST_CPPFLAGS
, TARGET_CPPFLAGS
and TARGET_CFLAGS
in the Makefile
. I even tried deleting that function whilst make
was running!
Unfortunately the error remains.
Solution
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
.
Answered By - Adrian Frühwirth Answer Checked By - Senaida (WPSolving Volunteer)