From: <si...@wi...> - 2003-06-16 11:48:53
|
Hi, I have got a strange error with two gcc versions. In my Makefile I have written skwin: flex parser-1.l bison -y -d parser-1.y g++ -c -x c++ YCommand.c g++ -c -x c++ YMain.c g++ -c -x c++ lex.yy.c g++ -c -x c++ y.tab.c If I run the makefile under 2.95.6-3 everything compiles fine. Under 3.2 I get the error message $ make skwin flex parser-1.l bison -y -d parser-1.y conflicts: 25 shift/reduce, 10 reduce/reduce g++ -c -x c++ YCommand.c g++ -c -x c++ YMain.c g++ -c -x c++ lex.yy.c g++ -c -x c++ y.tab.c y.tab.c: In function `int yyparse()': y.tab.c:1548: parse error before `goto' make: *** [skwin] Error 1 ---- source code of y.tab.c (line 1542-1549) ----- yyerrlab1: /* Suppress GCC warning that yyerrlab1 is unused when no action invokes YYERROR. */ #if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__) __attribute__ ((__unused__)) #endif // this line is line 1548 goto yyerrlab2; -------------- The same error happens to me with gcc 3.2 on a SUN Solaris 2.8. Any idea what goes wrong ? Sigbert |
From: Luke D. <cod...@ho...> - 2003-06-17 01:10:08
|
What version of bison are you using? Perhaps a newer version would fix this problem. Luke ----- Original Message ----- From: <si...@wi...> To: <Min...@li...> Sent: Monday, June 16, 2003 7:46 PM Subject: [Mingw-users] mingw: gcc 2.95.3-6 vs. 3.2 > Hi, > > I have got a strange error with two gcc versions. In my Makefile I have written > > skwin: > flex parser-1.l > bison -y -d parser-1.y > g++ -c -x c++ YCommand.c > g++ -c -x c++ YMain.c > g++ -c -x c++ lex.yy.c > g++ -c -x c++ y.tab.c > > If I run the makefile under 2.95.6-3 everything compiles fine. Under 3.2 I get the error > message > > $ make skwin > flex parser-1.l > bison -y -d parser-1.y > conflicts: 25 shift/reduce, 10 reduce/reduce > g++ -c -x c++ YCommand.c > g++ -c -x c++ YMain.c > g++ -c -x c++ lex.yy.c > g++ -c -x c++ y.tab.c > y.tab.c: In function `int yyparse()': > y.tab.c:1548: parse error before `goto' > make: *** [skwin] Error 1 > > ---- source code of y.tab.c (line 1542-1549) ----- > yyerrlab1: > > /* Suppress GCC warning that yyerrlab1 is unused when no action > invokes YYERROR. */ > #if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__) > __attribute__ ((__unused__)) > #endif > > // this line is line 1548 > goto yyerrlab2; > -------------- > > The same error happens to me with gcc 3.2 on a SUN Solaris 2.8. > > Any idea what goes wrong ? > > Sigbert > > > ------------------------------------------------------- > This SF.NET email is sponsored by: eBay > Great deals on office technology -- on eBay now! Click here: > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > MinGW-users mailing list > Min...@li... > > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users > |