Issue 66713 - m173: rsc2 not compiled because of warning/error
Summary: m173: rsc2 not compiled because of warning/error
Status: CLOSED DUPLICATE of issue 66577
Alias: None
Product: Build Tools
Classification: Code
Component: code (show other issues)
Version: current
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: Stephan Bergmann
QA Contact: issues@tools
URL:
Keywords:
Depends on:
Blocks: 66757
  Show dependency tree
 
Reported: 2006-06-24 10:08 UTC by pavel
Modified: 2006-06-27 09:03 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description pavel 2006-06-24 10:08:40 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>
Comment 1 pavel 2006-06-24 14:32:44 UTC
I build with

gcc version 3.4.1

(with enum and visibility patches).
Comment 2 jens-heiner.rechtien 2006-06-26 15:37:49 UTC
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.
Comment 3 jens-heiner.rechtien 2006-06-26 15:38:22 UTC
Reassign to sb for further tracking.
Comment 4 pavel 2006-06-26 16:51:46 UTC
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
Comment 5 jens-heiner.rechtien 2006-06-26 17:01:11 UTC
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.
Comment 6 Stephan Bergmann 2006-06-27 09:01:41 UTC
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 ***
Comment 7 Stephan Bergmann 2006-06-27 09:03:01 UTC
.