[Debian-med-packaging] bison help needed

Andreas Tille andreas at an3as.eu
Sat Aug 4 06:43:33 BST 2018


Hi Dan,

On Fri, Aug 03, 2018 at 09:50:03PM -0700, Dan Kegel wrote:
> Try
> 
> --- a/debian/rules
> +++ b/debian/rules
> @@ -1,6 +1,7 @@
>  #!/usr/bin/make -f
>  # debian/rules file for maude
>  export DH_VERBOSE=1
> +export DEB_CXXFLAGS_MAINT_APPEND=-fpermissive

I tried this but the error remains exactly the same.
 
>  %:
>         dh $@
> 
> but I wonder how many arguments yyparse and yyerror are really
> supposed to have; there may be a bit of confusion there.

Sorry, I do not understand this.

Kind regards

     Andreas.


> On Fri, Aug 3, 2018 at 7:17 AM, Andreas Tille <andreas at an3as.eu> wrote:
> > 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
> >
> >
> >
> 
> 

-- 
http://fam-tille.de



More information about the Debian-med-packaging mailing list