[DGD] Error in v1.2.131:comp/parser.c

Felix A. Croes felix at dworkin.nl
Fri Aug 17 11:49:48 CEST 2007


Brian Gernhardt <benji at silverinsanity.com> wrote:

> Trying to compile 1.2.131 on OS X, I get the following error:
>
> cd comp; make 'CC=gcc' 'CCFLAGS=-DDARWIN  -g -DDEBUG' 'YACC=yacc' dgd
> gcc -I. -I.. -I../lex -I../parser -I../kfun -DDARWIN  -g -DDEBUG   -c  
> -o parser.o parser.c
> parser.y: In function 'yyparse':
> parser.y:376: error: too many arguments to function 'c_if'
> parser.y:379: error: too many arguments to function 'c_if'
> make[1]: *** [parser.o] Error 1
> make: *** [a.out] Error 2
>
> Deleting src/comp/parser.c forces it to rebuild it from parser.y,  
> which works with "yacc: 1 shift/reduce conflict."  However, I thought  
> you might want to know that it's broken out of the box.

The file comp/parser.y was changed in the 1.2.127 patch.  The Makefiles
are set up to automatically rebuild comp/parser.c when it's out of date;
for some reason, the timestamp was wrong in your case, and this did
not happen.

Regards,
Dworkin



More information about the DGD mailing list