문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top