Re: [Gems-users] "parser stack overflow" while building protocols


Date: Tue, 8 Mar 2005 09:45:26 -0600 (CST)
From: Mike Marty <mikem@xxxxxxxxxxx>
Subject: Re: [Gems-users] "parser stack overflow" while building protocols
This is wierd.  We use the same version of bison however the generated
parser.c file is slightly different.

Regardless, this seems to be a known problem with bison 1.875:

http://lists.gnu.org/archive/html/bison-patches/2003-05/msg00000.html

I will try to figure out WHY we get a different parser.c (I have also
e-mailed this to Nauman already...if anybody else needs it to continue
working, let me know).

Bison 2.0 is out as well and I will try this as well.

--Mike


> After getting the new version of bison, I get the error here:
>
> /usr/bin/g++ -o x86-linux/obj/parser.o -c generated/parser.c -DYY_NO_UNPUT -Wall
> -W -Wwrite-strings -Woverloaded-virtual -Wno-unused  -march=i686 -g -ggdb -g3
> -O2 -finline-functions -DNO_VECTOR_BOUNDS_CHECKS -DMULTIFACET_NO_OPT_WARN   -I.
> -I../common -Igenerated -Isymbols -Igenerator -Iast
> generated/parser.c: In function `int yyparse()':
> generated/parser.c:2086: warning: deprecated conversion from string constant to
>    `char*'
> generated/parser.c:2090: warning: deprecated conversion from string constant to
>    `char*'
> generated/parser.c:2138: error: parse error before `goto'
> generated/parser.c:2204: warning: deprecated conversion from string constant to
>    `char*'
> make[2]: *** [x86-linux/obj/parser.o] Error 1
> make[2]: Leaving directory
> `/home/yara/mithuna/projects/codebase/download-simics/gems/slicc'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory
> `/home/yara/mithuna/projects/codebase/download-simics/gems/slicc'
> make: *** [all] Error 2
>
> Thanks.
> --
> Nauman
>
>
> Quoting Mike Marty <mikem@xxxxxxxxxxx>:
>
> > Can you copy/paste the entire output?
> >
> > --Mike
> >
> > > My flex version is same as yours (2.5.4), but my bison is 1.35.
> > > I installed verions 1.875, changed YACC to the new bison version in
> > > GEMS/common/Makefile.common
> > > but I still get the same result.
> > >
> > > Thanks
> > > --
> > > Nauman
> > >
> > >
> > > Quoting Mike Marty <mikem@xxxxxxxxxxx>:
> > >
> > > > My guess is that there is some dependence on the version of bison or
> > flex.
> > > > I tested with Bison v1.875 and Flex v2.5.4.  What versions are you
> > using?
> > > >
> > > > --Mike
> > > >
> > > >
> > > > > Hi,
> > > > > Making protocols other than MOSI_SMP_bcast give me a "parser stack
> > > > overflow"
> > > > > message. Did anybody else try it?
> > > > >
> > > > > Thanks.
> > > > > --
> > > > > Nauman
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > Gems-users mailing list
> > > > > Gems-users@xxxxxxxxxxx
> > > > > https://lists.cs.wisc.edu/mailman/listinfo/gems-users
> > > > >
> > > > _______________________________________________
> > > > Gems-users mailing list
> > > > Gems-users@xxxxxxxxxxx
> > > > https://lists.cs.wisc.edu/mailman/listinfo/gems-users
> > > >
> > >
> > > _______________________________________________
> > > Gems-users mailing list
> > > Gems-users@xxxxxxxxxxx
> > > https://lists.cs.wisc.edu/mailman/listinfo/gems-users
> > >
> > _______________________________________________
> > Gems-users mailing list
> > Gems-users@xxxxxxxxxxx
> > https://lists.cs.wisc.edu/mailman/listinfo/gems-users
> >
>
> _______________________________________________
> Gems-users mailing list
> Gems-users@xxxxxxxxxxx
> https://lists.cs.wisc.edu/mailman/listinfo/gems-users
>
[← Prev in Thread] Current Thread [Next in Thread→]