bug-bison
[Top][All Lists]
Advanced

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

Re: FW: Error with Make


From: Magnus Fromreide
Subject: Re: FW: Error with Make
Date: Sat, 22 Mar 2003 19:33:42 +0100
User-agent: Mutt/1.4i

On Sat, Mar 22, 2003 at 02:03:06PM +0100, Pierre Raoul wrote:
> Hello,
> 
> I'm not sure what is the best place to post this message, so I forward it 
> here.
> 

Neither list is good since your problem seems to be a broken makefile.

> # by default YACC = bison -y
> YACFLAGS = -t -r all -d -S lalr1.cc 
> [...]
> 
> build/parser.c build/parser.h: parser.y
>       $(YACC) $(YACFLAGS) $<
> 
> [...]
> 
> I get 
> 
> MAKE: *** [build/parser.c] Error 1

Here you are telling make that in order to generate build/parser.c XOR
build/parser.h it should run yacc.

Another example is 

foo bar: fie.c

which tells make to build both foo and bar from the source file fie.c
in two operations.

> and the only file that is created is y.output.

Since you have removed parts of the output I can't tell for sure but my guess
is that there is some bug in the created output and that makes the result
fail to compile. In that case make is expected to remove the temporary files
it knows about.




reply via email to

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