GNU bug report logs -
#10154
ylwrap error:
Previous Next
Reported by: Joe Chen <jychen150 <at> gmail.com>
Date: Mon, 28 Nov 2011 15:46:01 UTC
Severity: normal
Tags: notabug
Done: Stefano Lattarini <stefano.lattarini <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #13 received at control <at> debbugs.gnu.org (full text, mbox):
tags 10154 notabug
thanks
On Monday 28 November 2011, Joe Chen wrote:
> Hi,
>
Hi Joe, thanks for the report.
> I am using automake for compile flex input file. The flex command
> line option --prefix=<STRING> or -P<STRING> works with the direct
> invoking of flex, buy ylwrap gets error all the time for me:
>
> /bin/bash ../build-aux/ylwrap configf_lexer.l lex.yy.c configf_lexer.c
> -- flex --case-insensitive --prefix=configf_yy
> make[4]: *** [configf_lexer.c] Error 1
>
>
> Is this a known issue?
>
This is not an issue in ylwrap, but rather and usage error. Let's see
again the help screen from ylwrap:
Usage: ylwrap INPUT [OUTPUT DESIRED]... -- PROGRAM [ARGS]...
Wrapper for lex/yacc invocations, renaming files as desired.
INPUT is the input file
OUTPUT is one file PROG generates
DESIRED is the file we actually want instead of OUTPUT
PROGRAM is program to run
ARGS are passed to PROG
Any number of OUTPUT,DESIRED pairs may be used.
This suggests that, instead of using `--prefix' to modify the name of
the generated `.c' file, you should simply use the DESIRED argument:
ylwrap configf_lexer.l lex.yy.c configf_lexer.c \
-- flex --case-insensitive
Or, if you have other reasons to want to stick with the `--prefix'
option (whose exact effects and semantics I don't pretend to know),
you must inform `ylwrap' of the different expected OUTPUT filename:
ylwrap configf_lexer.l lex.configf_yy.c configf_lexer.c \
-- flex --case-insensitive --prefix=configf_yy
HTH,
Stefano
This bug report was last modified 13 years and 210 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.