[Top][All Lists]

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

Re: ylwrap - flex filename weirdness

From: Pippijn van Steenhoven
Subject: Re: ylwrap - flex filename weirdness
Date: Sun, 31 Oct 2010 18:23:57 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

On Sun, Oct 31, 2010 at 11:54:04AM +0100, Jan Engelhardt wrote:
> Hi,
> While trying to utilize Autotools in a preexisting project that 
> previously just relied on Makefiles, I came across ylwrap failing for 
> some absurd, unknown reason. I couldn't help but run sh -x and debug it 
> piecewise.
> So what's ultimately done is running flex inside a temp directory,
>       flex /home/jengelh/code/iproute2/tc/emp_ematch_lex.l
> It turns out flex produces a file called lex.ematch_.c, which is 
> something ylwrap so does not expect at all - it only checks for 
> what's in pairlist="yy.lex.c emp_ematch_lex.c".
> I can use AM_LFLAGS = -o yy.lex.c to work around it, but that feels like 
> an ugly hack. What's up with flex here?

You added a prefix "ematch_" in your flex source file. ylwrap doesn't
like that. In fact, ylwrap doesn't like multiple parsers in one project,
at all... and it doesn't bother renaming flex-generated header files,

Pippijn van Steenhoven

Attachment: signature.asc
Description: Digital signature

reply via email to

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