Apache OpenOffice (AOO) Bugzilla – Issue 66713
m173: rsc2 not compiled because of warning/error
Last modified: 2006-06-27 09:03:01 UTC
Hi, in the current m173: In file included from /disk3/oo/BuildDir/ooo_SRC680_m173_src/rsc/source/parser/rscyacc.cxx:290: ../../unxlngi6.pro/inc/yyrscyacc.cxx: In function `int yyparse()': ../../unxlngi6.pro/inc/yyrscyacc.cxx:2477: warning: label `yyerrlab1' defined but not used dmake: Error code 1, while making '../../unxlngi6.pro/obj/rscyacc.obj' '---* tg_merge.mk *---' ERROR: Error 65280 occurred while making /disk3/oo/BuildDir/ooo_SRC680_m173_src/rsc/source/parser oo@oo:~/BuildDir/ooo_SRC680_m173_src/rsc>
I build with gcc version 3.4.1 (with enum and visibility patches).
Works fine for me (gcc-3.4.1+enum+visibility). Probably it's a bison problem anyway which produces an unused label. We use bison 1.28.
Reassign to sb for further tracking.
I use oo@oo:~> bison --version bison (GNU Bison) 1.875 Written by Robert Corbett and Richard Stallman. Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. oo@oo:~> and I have used it for 1.1.x and 2.0.x. If this version is not enough, we have to test that it is not enough. But I doubt it. The file contaisn this: /*----------------------------------------------------. | yyerrlab1 -- error raised explicitly by an action. | `----------------------------------------------------*/ yyerrlab1: /* Suppress GCC warning that yyerrlab1 is unused when no action invokes YYERROR. */ #if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__) \ && !defined __cplusplus __attribute__ ((__unused__)) #endif
IMHO the solution is to relax that warning=error for generated files. We'll never be able to test and support all variants of yacc/bison etc.
I second HRs last comment. Meanwhile, I encountered the same problem on my home OOo build, and this issue will be fixed as part of issue 66577: Index: rsc/source/parser/rscyacc.y =================================================================== RCS file: /cvs/gsl/rsc/source/parser/rscyacc.y,v retrieving revision 1.8 diff -r1.8 rscyacc.y 62a63,66 > > #if defined __GNUC__ > #pragma GCC system_header > #endif *** This issue has been marked as a duplicate of 66577 ***
.