Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | m173-to-be: W32 build fails in idlc | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Build Tools | Reporter: | quetschke | ||||||||||
Component: | solenv | Assignee: | Stephan Bergmann <stephan.bergmann.secondary> | ||||||||||
Status: | CLOSED FIXED | QA Contact: | issues@tools <issues> | ||||||||||
Severity: | Trivial | ||||||||||||
Priority: | P1 (highest) | CC: | hans-joachim.lankenau, issues, pavel | ||||||||||
Version: | current | ||||||||||||
Target Milestone: | OOo 2.0.4 | ||||||||||||
Hardware: | All | ||||||||||||
OS: | Windows, all | ||||||||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||||||||
Developer Difficulty: | --- | ||||||||||||
Issue Depends on: | |||||||||||||
Issue Blocks: | 66757 | ||||||||||||
Attachments: |
|
Description
quetschke
2006-06-24 23:00:55 UTC
This helps: +++ idlc/source/makefile.mk 25 Jun 2006 02:43:47 -0000 @@ -40,6 +40,8 @@ TARGETTYPE=CUI LIBTARGET=NO +EXTERNAL_WARNINGS_NOT_ERRORS=TRUE + ENABLE_EXCEPTIONS=TRUE INCPRE=$(MISC) Again, different parser create different generated sources, which sometimes are not warning free. Maybe we should ease the warning=error stance for generated scripts. Reassign to sb for further tracking. The most specific fix would be to add 4273 to idlc/source/parser.y:1.15 line 297. However, those two warnings about inconsistent dll linkage worry Ause and me, so it might be interesting to track down the root problem here. @vq: Can you supply the preprocessor output of compiling wrap_parser.cxx? My UPS failed, so I'm kind of offline ATM. I'll post the file later, but maybe it helps to know that I use: $ bison -V bison (GNU Bison) 2.1 Created attachment 37396 [details]
Preprocessed file
Created attachment 37397 [details]
Compile (preprocess) command
Created attachment 37398 [details]
bison generated file
Created attachment 37399 [details]
bison generated file (hxx)
sb->hjs: do you have time to look at those files? Ause had a look, and says there is an #ifdef jungle in the bison-geneated .cxx leading to suspicious declarations of malloc/free, and the .cxx generated with the Sun Hamburg build environment looks rather different and does not have this problem. This could be due to bison 2.1 or due to a cygwin-related bison which possibly emits code targeted at GCC. Whatever the root cause, I will just silence the warning by adding 4273 to idlc/source/parser.y:1.15 line 297. @vq: Please verify that idlc/source/parser.y:1.15.2.1 (CWS warningfixes02) indeed solves your problem. Re-did previous fix: Instead of disabling C4273, removed the suspicious #ifdef WNT block from idlc/source/parser.y that defined std::fprintf, std::malloc, std::free (which might have been needed long ago, but appears to not be needed today; the block was in there right from rev 1.1). The same for rsc/source/parser/rscyacc.y (issue 66879). @vq: Please verify that idlc/source/parser.y:1.15.2.2 and rsc/source/parser/rscyacc.y:1.8.6.2 (CWS warningfixes02) indeed solve your problems. *** Issue 66879 has been marked as a duplicate of this issue. *** Sorry, but the patch didn't help. For rsc: guw.pl /cygdrive/c/MSVS2003/Vc7/bin/cl.exe @/tmp/mk9dJ7nn rscyacc.cxx ../../wntmsci10.pro\inc\yyrscyacc.cxx(262) : error C2220: warning treated as error - no object file generated ../../wntmsci10.pro\inc\yyrscyacc.cxx(262) : warning C4273: 'malloc' : inconsistent dll linkage ../../wntmsci10.pro\inc\yyrscyacc.cxx(269) : warning C4273: 'free' : inconsistent dll linkage dmake: Error code 2, while making '../../wntmsci10.pro/obj/rscyacc.obj' ---* tg_merge.mk *--- ERROR: Error 65280 occurred while making /cygdrive/d/w1/tin_ws/rsc/source/parser with a warningfixes02 checkout of rsc. $ oocvs status source/parser/rscyacc.y =================================================================== File: rscyacc.y Status: Up-to-date Working revision: 1.8.6.2 Repository revision: 1.8.6.2 /cvs/gsl/rsc/source/parser/rscyacc.y,v Sticky Tag: cws_src680_warningfixes02 (branch: 1.8.6) And for idlc: guw.pl /cygdrive/c/MSVS2003/Vc7/bin/cl.exe @/tmp/mkwMYIc7 wrap_parser.cxx ..\wntmsci10.pro\misc\parser.cxx(548) : error C2220: warning treated as error - no object file generated ..\wntmsci10.pro\misc\parser.cxx(548) : warning C4273: 'malloc' : inconsistent dll linkage ..\wntmsci10.pro\misc\parser.cxx(555) : warning C4273: 'free' : inconsistent dll linkage dmake: Error code 2, while making '../wntmsci10.pro/obj/wrap_parser.obj' ---* tg_merge.mk *--- ERROR: Error 65280 occurred while making /cygdrive/d/w1/tin_ws/idlc/source with a warningfixes02 checkout of idlc. $ oocvs status source/parser.y =================================================================== File: parser.y Status: Up-to-date Working revision: 1.15.2.2 Repository revision: 1.15.2.2 /cvs/udk/idlc/source/parser.y,v Sticky Tag: cws_src680_warningfixes02 (branch: 1.15.2) I searched the web a little and it seems this warning is quite common. It looks like a bison bug, but I wouldn't recommend downgrading just because of a warning. There is already bison 2.2 and bison 2.3 released, maybe it is already fixed in this versions. But I wouldn't force an update either ;) Ok, so I will put back in the disabling of C4273. (I had guessed the warning was related to the suspicious #ifdef block, but was not able to verify that myself.) idlc/source/parser.y:1.15.2.3 rsc/source/parser/rscyacc.cxx:1.7.8.1 rsc/source/parser/rscyacc.y:1.8.6.2 @vq: Please verify. I verified that idlc, rsc from warningfixes02 build fine with W32-tcsh. Reassigning for final closing Works! . |