From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: GRUB 2.00 build and flex-2.5.37
Date: Thu, 03 Jan 2013 18:18:08 +0100 [thread overview]
Message-ID: <50E5BD50.3000306@gmail.com> (raw)
In-Reply-To: <20130102102252.GA4692@riva.dynamic.greenend.org.uk>
[-- Attachment #1: Type: text/plain, Size: 1688 bytes --]
On 02.01.2013 11:22, Colin Watson wrote:
> On Sun, Aug 05, 2012 at 05:20:46PM -0500, Bruce Dubbs wrote:
>> 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.
>
> That would be incorrect; the default implementation of yy_fatal_error
> uses fprintf, which is not valid in parts of GRUB that need to run
> freestanding. More correct would probably be to insert an artificial
> reference to yy_fatal_error, since flex offers no way to suppress its
> definition.
>
It's ok to make such warnings non-breaking by corresponding #pragma. In
fact we already have:
#pragma GCC diagnostic ignored "-Wunused-function"
So the report is obviously for some older version.
>> 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.
>
> I tried to reproduce this and the other warning with flex 2.5.37 and GCC
> 4.7.2 and couldn't, so I'm reluctant to make a change that I can't test.
> Can you still reproduce this? If so, could you attach your generated
> grub_script.yy.c?
>
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
prev parent reply other threads:[~2013-01-03 17:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-05 22:20 GRUB 2.00 build and flex-2.5.37 Bruce Dubbs
2013-01-02 10:22 ` Colin Watson
2013-01-03 17:18 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50E5BD50.3000306@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.