Question

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.

Was it helpful?

Solution

Have you seen this?

The latest flex makes the GRUB-2.00 build fail. I can work around the issues with --disable-werror, but grub-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) in yylex.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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top