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

Re: bison help needed



On Fri, Aug 03, 2018 at 03:29:49PM +0500, Andrey Rahmatullin wrote:
> > flex -t -p -p ./lexer.ll > lexer.cc
> > -I (interactive) entails a minor performance penalty
> > mv surface.c surface.cc
> > mv: cannot stat 'surface.c': No such file or directory
> 
> surface.cc surface.h: surface.yy
> 	$(BISON) -dv surface.yy -o surface.c
> 	mv surface.c surface.cc
> 
> Looks like this target is executed twice in parallel?

Ahhh, thanks for pointing this out.  I added the --no-parallel option
which brought me further away until:

...
g++ -DHAVE_CONFIG_H -I. -I../..  -I../../src/Utility -I../../src/Temporal -I../../src/Interface -I../../src/Core -I../../src/Variable -I../../src/FullCompiler -I../../src/Higher -I../../src/CUI_Theory -I../../src/S_Theory -I../../src/NA_Theory -I../../src/FreeTheory -I../../src/ObjectSystem -I../../src/Mixfix -I../../src/BuiltIn -I../../src/MSCP10 -I../../src/IO_Stuff -I../../src/ACU_Persistent -I../../src/ACU_Theory -I../../src/AU_Persistent -I../../src/AU_Theory -I../../src/Meta -I../../src/3rdParty -I../../src/FullCompiler -I../../src/StrategyLanguage -I../../src/SMT -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/build/maude-2.7.1=. -fstack-protector-strong -Wformat -Werror=format-security -c -o libmixfix_a-surface.o `test -f 'surface.cc' || echo './'`surface.cc
surface.c: In function 'int yyparse(void*, UserLevelRewritingContext::ParseResult*)':
surface.c:5382:16: error: invalid conversion from 'void*' to 'UserLevelRewritingContext::ParseResult*' [-fpermissive]
surface.c:5382:31: error: cannot convert 'UserLevelRewritingContext::ParseResult*' to 'char*'
surface.yy:97:80: note:   initializing argument 2 of 'void yyerror(UserLevelRewritingContext::ParseResult*, char*)'
 static void yyerror(UserLevelRewritingContext::ParseResult* parseResult, char *s);
                                                                          ~~~~~~^
surface.c:5526:12: error: invalid conversion from 'void*' to 'UserLevelRewritingContext::ParseResult*' [-fpermissive]
surface.c:5526:27: error: cannot convert 'UserLevelRewritingContext::ParseResult*' to 'char*'
surface.yy:97:80: note:   initializing argument 2 of 'void yyerror(UserLevelRewritingContext::ParseResult*, char*)'
 static void yyerror(UserLevelRewritingContext::ParseResult* parseResult, char *s);
                                                                          ~~~~~~^
surface.yy:313:12: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
      system((string("ls") + $3).c_str());
      ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                
make[6]: *** [Makefile:1066: libmixfix_a-surface.o] Error 1
make[6]: Leaving directory '/build/maude-2.7.1/src/Mixfix'
make[5]: *** [Makefile:484: all] Error 2
...


Any further hint?

Kind regards

     Andreas.


-- 
http://fam-tille.de



Reply to: