Issue 69591 - obo05: VSE build breaks with warnings = errors
Summary: obo05: VSE build breaks with warnings = errors
Status: CLOSED FIXED
Alias: None
Product: Build Tools
Classification: Code
Component: code (show other issues)
Version: current
Hardware: PC Windows, all
: P2 Trivial (vote)
Target Milestone: OOo 2.1
Assignee: oliver.bolte
QA Contact: issues@tools
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-16 18:13 UTC by quetschke
Modified: 2006-09-29 14:18 UTC (History)
1 user (show)

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


Attachments
Workaround patch (1.73 KB, patch)
2006-09-18 04:52 UTC, quetschke
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description quetschke 2006-09-16 18:13:08 UTC
Warnings = Errors breaks the VS Express build in sal:

Making: ../../wntmsci11.pro/obj/unload.obj
guw.pl /cygdrive/c/PROGRA~1/MID05A~1/VC/bin/cl.exe -Zm500 -Zc:forScope,wchar_t-
-GR -c -nologo -Gs  -I.  -I../../wntmsci11.pro/inc/cpprtl -I../inc
-I../../inc/pch -I../../inc -I../../WIN/inc -I../../wntmsci11.pro/inc -I.
-I/cygdrive/d/w1/tin_obo05/solver/680/wntmsci11.pro/inc/stl
-I/cygdrive/d/w1/tin_obo05/solver/680/wntmsci11.pro/inc/external
-I/cygdrive/d/w1/tin_obo05/solver/680/wntmsci11.pro/inc
-I/cygdrive/d/w1/tin_obo05/solenv/wntmsci11/inc
-I/cygdrive/d/w1/tin_obo05/solenv/inc -I/cygdrive/d/w1/tin_obo05/res
-I/cygdrive/d/w1/tin_obo05/solver/680/wntmsci11.pro/inc/stl
-I/cygdrive/c/J2SDK1~1.2_0/include/win32 -I/cygdrive/c/J2SDK1~1.2_0/include
-I/cygdrive/c/PROGRA~1/MICROS~4/include
-I/cygdrive/c/PROGRA~1/MID05A~1/VC/include
-I/cygdrive/c/PROGRA~1/MICROS~1.0SD/include    
-I/cygdrive/d/w1/tin_obo05/solver/680/wntmsci11.pro/inc/offuh -I. -I../../res
-I. -Gy -Ob1 -Oxs -Oy- -Gd  -I.  -I../../wntmsci11.pro/inc/cpprtl -I../inc
-I../../inc/pch -I../../inc -I../../WIN/inc -I../../wntmsci11.pro/inc -I.
-I/cygdrive/d/w1/tin_obo05/solver/680/wntmsci11.pro/inc/stl
-I/cygdrive/d/w1/tin_obo05/solver/680/wntmsci11.pro/inc/external
-I/cygdrive/d/w1/tin_obo05/solver/680/wntmsci11.pro/inc
-I/cygdrive/d/w1/tin_obo05/solenv/wntmsci11/inc
-I/cygdrive/d/w1/tin_obo05/solenv/inc -I/cygdrive/d/w1/tin_obo05/res
-I/cygdrive/d/w1/tin_obo05/solver/680/wntmsci11.pro/inc/stl
-I/cygdrive/c/J2SDK1~1.2_0/include/win32 -I/cygdrive/c/J2SDK1~1.2_0/include
-I/cygdrive/c/PROGRA~1/MICROS~4/include
-I/cygdrive/c/PROGRA~1/MID05A~1/VC/include
-I/cygdrive/c/PROGRA~1/MICROS~1.0SD/include    
-I/cygdrive/d/w1/tin_obo05/solver/680/wntmsci11.pro/inc/offuh -I. -I../../res
-I. -EHa -Wall -wd4061 -wd4127 -wd4191 -wd4217 -wd4251 -wd4275 -wd4290    
-wd4294 -wd4355 -wd4511 -wd4512 -wd4514 -wd4611 -wd4625 -wd4626 -wd4640    
-wd4675 -wd4710 -wd4711 -wd4786 -wd4800 -wd4820 -wd4503 -wd4619 -wd4365 	-wd4668
-wd4738 -wd4826 -wd4350 -wd4505 -wd4692 -WX   -DWNT -DWNT -DNT351 -DMSC -DM1400
-DINTEL -D_X86_=1 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE
-D_CRT_NON_CONFORMING_SWPRINTFS -DFULL_DESK -DSTLPORT_VERSION=400 -DWINVER=0x400
-D_WIN32_IE=0x400 -D_MT -DCPPU_ENV=msci -DSUPD=680 -DPRODUCT -DNDEBUG
-DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_ON -DCUI -DSOLAR_JAVA
-DSRC680=SRC680   -DMULTITHREAD -DWIN32 -D_MT -D_DLL -DWIN32 -D_MT -D_DLL 
-Fo../../wntmsci11.pro/obj/unload.obj
/cygdrive/d/w1/tin_obo05/sal/rtl/source/unload.cxx

guw.pl /cygdrive/c/PROGRA~1/MID05A~1/VC/bin/cl.exe @/tmp/mkdVXJAU
unload.cxx
d:\w1\tin_obo05\solver\680\wntmsci11.pro\inc\stl\stl\_deque.c(80) : error C2220:
warning treated as error - no 'object' file generated
d:\w1\tin_obo05\solver\680\wntmsci11.pro\inc\stl\stl\_deque.c(80) : warning
C4701: potentially uninitialized local variable '__cur' used
dmake:  Error code 2, while making '../../wntmsci11.pro/obj/unload.obj'
Comment 1 quetschke 2006-09-16 19:19:13 UTC
Well, this seems to be an stlport header problem, I get this in testshl2

d:\w1\tin_obo05\solver\680\wntmsci11.pro\inc\stl\stl\_deque.c(80) : error C2220:
warning treated as error - no 'object' file generated
d:\w1\tin_obo05\solver\680\wntmsci11.pro\inc\stl\stl\_deque.c(80) : warning
C4701: potentially uninitialized local variable '__cur' used
dmake:  Error code 2, while making '../../wntmsci11.pro/slo/TestResult.obj'
---* tg_merge.mk *---

ERROR: Error 65280 occurred while making
/cygdrive/d/w1/tin_obo05/testshl2/source/result

....

same problem in comphelper/source/eventattachermgr
Comment 2 quetschke 2006-09-16 19:27:11 UTC
And this

guw.pl /cygdrive/c/PROGRA~1/MID05A~1/VC/bin/cl.exe @/tmp/mkUmOnJA
b2dbeziertools.cxx
..\..\inc\basegfx/numeric/ftools.hxx(116) : error C2220: warning treated as
error - no 'object' file generated
..\..\inc\basegfx/numeric/ftools.hxx(116) : warning C4244: 'return' : conversion
from 'const long double' to 'double', possible loss of data
dmake:  Error code 2, while making '../../wntmsci11.pro/slo/b2dbeziertools.obj'
---* tg_merge.mk *---

ERROR: Error 65280 occurred while making
/cygdrive/d/w1/tin_obo05/basegfx/source/curve

in basegfx/source/curve.
Comment 3 quetschke 2006-09-16 19:35:45 UTC
Another _deque.c warning in stoc/source/tdmanager
Comment 4 quetschke 2006-09-16 19:48:48 UTC
And in pyuno:

guw.pl /cygdrive/c/PROGRA~1/MID05A~1/VC/bin/cl.exe @/tmp/mk8Z9LF5
pyuno_runtime.cxx
d:\w1\tin_obo05\pyuno\source\module\pyuno_runtime.cxx(592) : error C2220:
warning treated as error - no 'object' file generated
d:\w1\tin_obo05\pyuno\source\module\pyuno_runtime.cxx(592) : warning C4701:
potentially uninitialized local variable 'i' used
dmake:  Error code 2, while making '../../wntmsci11.pro/slo/pyuno_runtime.obj'
Comment 5 quetschke 2006-09-17 02:14:25 UTC
Another _deque.c warning in bridges
Comment 6 quetschke 2006-09-17 04:13:40 UTC
And another in package/source/manifest - for now I disable C4701.

And another in tools/source/generic - for now I disable C4244.
Comment 7 quetschke 2006-09-17 04:47:26 UTC
guw.pl /cygdrive/c/PROGRA~1/MID05A~1/VC/bin/cl.exe @/tmp/mk4cWkUB
threadex.cxx
d:\w1\tin_obo05\solver\680\wntmsci11.pro\inc\boost/type_traits/type_with_alignment.hpp(109)
: error C2220: warning treated as error - no 'object' file generated
       
d:\w1\tin_obo05\solver\680\wntmsci11.pro\inc\boost/type_traits/type_with_alignment.hpp(118)
: see reference to class template instantiation
'boost::type_with_alignment<Align>' being compiled
d:\w1\tin_obo05\solver\680\wntmsci11.pro\inc\boost/type_traits/type_with_alignment.hpp(109)
: warning C4018: '>=' : signed/unsigned mismatch
dmake:  Error code 2, while making '../../wntmsci11.pro/slo/threadex.obj'
---* tg_merge.mk *---

ERROR: Error 65280 occurred while making /cygdrive/d/w1/tin_obo05/vcl/source/helper

Disabling C4018 ...
Comment 8 quetschke 2006-09-18 04:52:58 UTC
Created attachment 39201 [details]
Workaround patch
Comment 9 oliver.bolte 2006-09-18 16:48:46 UTC
I've created a new patch in stlport which disables warning 4701 in _deque.c.
Comment 10 quetschke 2006-09-18 18:39:19 UTC
Sorry, I was abusing this issue a bit. But did you see the

C4244: 'return' : conversion from 'const long double' to 'double', possible loss
of data

and

C4701: potentially uninitialized local variable 'i' used

part?
Comment 11 oliver.bolte 2006-09-19 09:58:46 UTC
yes, it seems that I've few local changes which havn't already made it into the cws.
Comment 12 oliver.bolte 2006-09-19 10:50:28 UTC
I've commited a changed pyuno/source/module/pyuno_runtime.cxx
Comment 13 oliver.bolte 2006-09-19 11:38:06 UTC
basegfx/inc/basegfx/numeric/ftools.hxx commited.
Comment 14 oliver.bolte 2006-09-19 11:49:07 UTC
package and tools builds for me without warning.
Comment 15 quetschke 2006-09-20 02:54:13 UTC
Earlier today I started a fresh rebuild of obo05 and so far I got one problem:

<http://go-oo.org/tinderbox/gunzip.cgi?tree=obo05&brief-log=1158697032.3335#EOF>
d:\w1\tin_obo05\solver\680\wntmsci11.pro\inc\boost/type_traits/type_with_alignment.hpp(109)
: error C2220: warning treated as error - no 'object' file generated
       
d:\w1\tin_obo05\solver\680\wntmsci11.pro\inc\boost/type_traits/type_with_alignment.hpp(118)
: see reference to class template instantiation
'boost::type_with_alignment<Align>' being compiled
d:\w1\tin_obo05\solver\680\wntmsci11.pro\inc\boost/type_traits/type_with_alignment.hpp(109)
: warning C4018: '>=' : signed/unsigned mismatch
dmake:  Error code 2, while making '../../wntmsci11.pro/slo/threadex.obj'
---* tg_merge.mk *---

ERROR: Error 65280 occurred while making /cygdrive/d/w1/tin_obo05/vcl/source/helper

After adding vcl to MODULES_WITH_WARNINGS I continued the build and it is
looking good so far, the build is currently in sc and still building.
Comment 16 oliver.bolte 2006-09-20 09:15:55 UTC
Hi Volker,

I've added vcl to the list of modules with warnings in wntmsci11.mk.
Setting this issue to fixed, it hopefully builds now  :-) 

Oliver
Comment 17 quetschke 2006-09-20 14:02:09 UTC
Jep, it's fixed. The build finished with no further problems.
Comment 18 oliver.bolte 2006-09-29 14:18:12 UTC
closed.