From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <543DE669.90707@kernel.dk> Date: Tue, 14 Oct 2014 21:13:45 -0600 From: Jens Axboe MIME-Version: 1.0 Subject: Re: BUG - Cannot build fio on redhat 5 References: <543D907B.3080005@kernel.dk> In-Reply-To: <543D907B.3080005@kernel.dk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: Tim Delaney <2timdelaney@gmail.com>, fio@vger.kernel.org, Stephen Cameron List-ID: On 2014-10-14 15:07, Jens Axboe wrote: > On 10/14/2014 01:58 PM, Tim Delaney wrote: >> Trying to make fio on redhat 5.9 results in: >> >> lex: unknown flag '-'. For usage, try >> lex --help >> make: *** [lex.yy.c] Error 1 >> >> Changeset "c9fa1c8d (Stephen M. Cameron 2014-10-06 17:58:32 -0500 >> 270)" introduced the lex '--header-file' option, but that option is >> not valid on redhat 5. >> >> Makefile diff... >> >> ifdef CONFIG_ARITHMETIC >> lex.yy.c: exp/expression-parser.l >> - $(QUIET_LEX)$(LEX) exp/expression-parser.l >> + $(QUIET_LEX)$(LEX) --header-file=lexer.h exp/expression-parser.l > > Stephen, ideas on how to work around this? Would be nice if we could > make-do without the lexer.h generation. Unfortunately I don't have a > RHEL5 here. > > Tim, what does lex --version and flex --version say? I think it should work now, for both OSX and Linux without warning, and without needing --header-file. Tim, can you double check if it works for you if you pull -git? -- Jens Axboe