Received: from list by lists.gnu.org with archive (Exim 4.71) id 1TqLU4-00029Z-Cj for mharc-grub-devel@gnu.org; Wed, 02 Jan 2013 05:23:40 -0500 Received: from eggs.gnu.org ([208.118.235.92]:48439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqLU2-000297-7l for grub-devel@gnu.org; Wed, 02 Jan 2013 05:23:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TqLTy-0005Is-An for grub-devel@gnu.org; Wed, 02 Jan 2013 05:23:38 -0500 Received: from v6.chiark.greenend.org.uk ([2001:ba8:1e3::]:36636 helo=chiark.greenend.org.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqLTy-0005Ib-4k for grub-devel@gnu.org; Wed, 02 Jan 2013 05:23:34 -0500 Received: from [172.20.153.9] (helo=riva.pelham.vpn.ucam.org) by chiark.greenend.org.uk (Debian Exim 4.72 #1) with esmtps (return-path cjwatson@ubuntu.com) id 1TqLTw-0003ET-Jp for grub-devel@gnu.org; Wed, 02 Jan 2013 10:23:32 +0000 Received: from localhost ([127.0.0.1] helo=sarantium.pelham.vpn.ucam.org) by riva.pelham.vpn.ucam.org with esmtp (Exim 4.72) (envelope-from ) id 1TqLTv-0004YZ-LZ for grub-devel@gnu.org; Wed, 02 Jan 2013 10:23:31 +0000 Received: from riva.dynamic.greenend.org.uk (localhost [127.0.0.1]) by sarantium.pelham.vpn.ucam.org (Postfix) with ESMTPS id 7EA8D3E400B for ; Wed, 2 Jan 2013 10:22:54 +0000 (GMT) Date: Wed, 2 Jan 2013 10:22:53 +0000 From: Colin Watson To: The development of GNU GRUB Subject: Re: GRUB 2.00 build and flex-2.5.37 Message-ID: <20130102102252.GA4692@riva.dynamic.greenend.org.uk> References: <501EF1BE.6030103@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <501EF1BE.6030103@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:ba8:1e3:: X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2013 10:23:39 -0000 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. > 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? -- Colin Watson [cjwatson@ubuntu.com]