[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GRUB 2.00 build and flex-2.5.37

From: Bruce Dubbs
Subject: GRUB 2.00 build and flex-2.5.37
Date: Sun, 05 Aug 2012 17:20:46 -0500
User-agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120628 Firefox/13.0.1 SeaMonkey/2.10.1

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.

grub_script.yy.c: In function 'yy_scan_bytes':
grub_script.yy.c:2296:17: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]

This one is a little more difficult because it is generated by flex. I don't know how to fix this except with a sed after grub_script.yy.c is generated by flex.

The gcc version -s 4.7.1.

  -- Bruce

reply via email to

[Prev in Thread] Current Thread [Next in Thread]