Closed Bug 951537 Opened 11 years ago Closed 11 years ago

Windows Debug unified build broken: WMFReader.cpp(35) : error C2220: warning treated as error - no 'object' file generated

Categories

(Core :: Audio/Video, defect)

All
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 950840

People

(Reporter: glandium, Unassigned)

Details

https://tbpl.mozilla.org/php/getParsedLog.php?id=32118942&tree=Birch

c:\tools\sdks\dx10\include\dxgitype.h(12) : warning C4005: 'DXGI_STATUS_OCCLUDED' : macro redefinition
        c:\Program Files (x86)\Windows Kits\8.0\include\shared\winerror.h(49449) : see previous definition of 'DXGI_STATUS_OCCLUDED'
c:\tools\sdks\dx10\include\dxgitype.h(13) : warning C4005: 'DXGI_STATUS_CLIPPED' : macro redefinition
        c:\Program Files (x86)\Windows Kits\8.0\include\shared\winerror.h(49458) : see previous definition of 'DXGI_STATUS_CLIPPED'
c:\tools\sdks\dx10\include\dxgitype.h(14) : warning C4005: 'DXGI_STATUS_NO_REDIRECTION' : macro redefinition
        c:\Program Files (x86)\Windows Kits\8.0\include\shared\winerror.h(49467) : see previous definition of 'DXGI_STATUS_NO_REDIRECTION'
c:\tools\sdks\dx10\include\dxgitype.h(15) : warning C4005: 'DXGI_STATUS_NO_DESKTOP_ACCESS' : macro redefinition
        c:\Program Files (x86)\Windows Kits\8.0\include\shared\winerror.h(49476) : see previous definition of 'DXGI_STATUS_NO_DESKTOP_ACCESS'
c:\tools\sdks\dx10\include\dxgitype.h(16) : warning C4005: 'DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE' : macro redefinition
        c:\Program Files (x86)\Windows Kits\8.0\include\shared\winerror.h(49485) : see previous definition of 'DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE'
c:\tools\sdks\dx10\include\dxgitype.h(17) : warning C4005: 'DXGI_STATUS_MODE_CHANGED' : macro redefinition
        c:\Program Files (x86)\Windows Kits\8.0\include\shared\winerror.h(49494) : see previous definition of 'DXGI_STATUS_MODE_CHANGED'
c:\tools\sdks\dx10\include\dxgitype.h(18) : warning C4005: 'DXGI_STATUS_MODE_CHANGE_IN_PROGRESS' : macro redefinition
        c:\Program Files (x86)\Windows Kits\8.0\include\shared\winerror.h(49503) : see previous definition of 'DXGI_STATUS_MODE_CHANGE_IN_PROGRESS'
c:\tools\sdks\dx10\include\dxgitype.h(21) : warning C4005: 'DXGI_ERROR_INVALID_CALL' : macro redefinition
        c:\Program Files (x86)\Windows Kits\8.0\include\shared\winerror.h(49518) : see previous definition of 'DXGI_ERROR_INVALID_CALL'
c:\tools\sdks\dx10\include\dxgitype.h(22) : warning C4005: 'DXGI_ERROR_NOT_FOUND' : macro redefinition
        c:\Program Files (x86)\Windows Kits\8.0\include\shared\winerror.h(49527) : see previous definition of 'DXGI_ERROR_NOT_FOUND'
c:\tools\sdks\dx10\include\dxgitype.h(23) : warning C4005: 'DXGI_ERROR_MORE_DATA' : macro redefinition
        c:\Program Files (x86)\Windows Kits\8.0\include\shared\winerror.h(49536) : see previous definition of 'DXGI_ERROR_MORE_DATA'
c:\tools\sdks\dx10\include\dxgitype.h(24) : warning C4005: 'DXGI_ERROR_UNSUPPORTED' : macro redefinition
        c:\Program Files (x86)\Windows Kits\8.0\include\shared\winerror.h(49545) : see previous definition of 'DXGI_ERROR_UNSUPPORTED'
c:\tools\sdks\dx10\include\dxgitype.h(25) : warning C4005: 'DXGI_ERROR_DEVICE_REMOVED' : macro redefinition
        c:\Program Files (x86)\Windows Kits\8.0\include\shared\winerror.h(49554) : see previous definition of 'DXGI_ERROR_DEVICE_REMOVED'
c:\tools\sdks\dx10\include\dxgitype.h(26) : warning C4005: 'DXGI_ERROR_DEVICE_HUNG' : macro redefinition
        c:\Program Files (x86)\Windows Kits\8.0\include\shared\winerror.h(49563) : see previous definition of 'DXGI_ERROR_DEVICE_HUNG'
c:\tools\sdks\dx10\include\dxgitype.h(27) : warning C4005: 'DXGI_ERROR_DEVICE_RESET' : macro redefinition
        c:\Program Files (x86)\Windows Kits\8.0\include\shared\winerror.h(49573) : see previous definition of 'DXGI_ERROR_DEVICE_RESET'
c:\tools\sdks\dx10\include\dxgitype.h(28) : warning C4005: 'DXGI_ERROR_WAS_STILL_DRAWING' : macro redefinition
        c:\Program Files (x86)\Windows Kits\8.0\include\shared\winerror.h(49582) : see previous definition of 'DXGI_ERROR_WAS_STILL_DRAWING'
c:\tools\sdks\dx10\include\dxgitype.h(29) : warning C4005: 'DXGI_ERROR_FRAME_STATISTICS_DISJOINT' : macro redefinition
        c:\Program Files (x86)\Windows Kits\8.0\include\shared\winerror.h(49592) : see previous definition of 'DXGI_ERROR_FRAME_STATISTICS_DISJOINT'
c:\tools\sdks\dx10\include\dxgitype.h(30) : warning C4005: 'DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE' : macro redefiniUnified_cpp_content_media_wmf0.cpp
c:\builds\moz2_slave\bir-w32-d-00000000000000000000\build\content\media\wmf\WMFReader.cpp(35) : error C2220: warning treated as error - no 'object' file generated
c:\builds\moz2_slave\bir-w32-d-00000000000000000000\build\content\media\wmf\WMFReader.cpp(35) : warning C4005: 'LOG' : macro redefinition
        c:\builds\moz2_slave\bir-w32-d-00000000000000000000\build\content\media\wmf\WMFByteStream.cpp(29) : see previous definition of 'LOG'
c:\builds\moz2_slave\bir-w32-d-00000000000000000000\build\content\media\wmf\WMFSourceReaderCallback.cpp(14) : warning C4005: 'LOG' : macro redefinition
        c:\builds\moz2_slave\bir-w32-d-00000000000000000000\build\content\media\wmf\WMFReader.cpp(35) : see previous definition of 'LOG'
c:/builds/moz2_slave/bir-w32-d-00000000000000000000/build/config/rules.mk:1029: recipe for target 'Unified_cpp_content_media_wmf0.obj' failed
mozmake[5]: Leaving directory 'c:/builds/moz2_slave/bir-w32-d-00000000000000000000/build/obj-firefox/content/media/wmf'
c:/builds/moz2_slave/bir-w32-d-00000000000000000000/build/config/recurse.mk:99: recipe for target 'content/media/wmf/compile' failed
c:/builds/moz2_slave/bir-w32-d-00000000000000000000/build/obj-firefox/_virtualenv/Scripts/python.exe -m mozbuild.action.cl  cl -FoUIAAccessibilityBridge.obj -c -D_HAS_EXCEPTIONS=0 -I../../../dist/stl_wrappers  -DWIN32_LEAN_AND_MEAN -D_WIN32 -DWIN32 -D_CRT_RAND_S -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DOS_WIN=1 -D_UNICODE -DCHROMIUM_BUILD -DU_STATIC_IMPLEMENTATION -DUNICODE -DNOMINMAX -D_WINDOWS -D_SECURE_ATL -DCOMPILER_MSVC -DMOZ_UNICODE -DMOZ_ENABLE_D3D9_LAYER -DMOZ_ENABLE_D3D10_LAYER -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL  -DNO_NSPR_10_SUPPORT -Ic:/builds/moz2_slave/bir-w32-d-00000000000000000000/build/widget/windows/winrt -I. -Ic:/builds/moz2_slave/bir-w32-d-00000000000000000000/build/ipc/chromium/src -Ic:/builds/moz2_slave/bir-w32-d-00000000000000000000/build/ipc/glue -Ic:/builds/moz2_slave/bir-w32-d-00000000000000000000/build/widget/windows/winrt/../ -Ic:/builds/moz2_slave/bir-w32-d-00000000000000000000/build/widget/windows/winrt/../../shared -Ic:/builds/moz2_slave/bir-w32-d-00000000000000000000/build/widget/windows/winrt/../../xpwidgets -Ic:/builds/moz2_slave/bir-w32-d-00000000000000000000/build/layout/generic -Ic:/builds/moz2_slave/bir-w32-d-00000000000000000000/build/layout/xul -Ic:/builds/moz2_slave/bir-w32-d-00000000000000000000/build/toolkit/xre -Ic:/builds/moz2_slave/bir-w32-d-00000000000000000000/build/xpcom/base -Ic:/builds/moz2_slave/bir-w32-d-00000000000000000000/build/obj-firefox/ipc/ipdl/_ipdlheaders -I../../../dist/include  -Ic:/builds/moz2_slave/bir-w32-d-00000000000000000000/build/obj-firefox/dist/include/nspr -Ic:/builds/moz2_slave/bir-w32-d-00000000000000000000/build/obj-firefox/dist/include/nss        -MDd           -FI ../../../dist/include/mozilla-config.h -DMOZILLA_CLIENT  -wd4099 -TP -nologo -W3 -Gy -Fdgenerated.pdb -wd4251 -wd4244 -wd4345 -wd4351 -wd4482 -wd4800 -wd4819 -we4553 -GR-  -DDEBUG -D_DEBUG -DTRACING -Zi -O1 -Oy- -Ic:/builds/moz2_slave/bir-w32-d-00000000000000000000/build/obj-firefox/dist/include/cairo   c:/builds/moz2_slave/bir-w32-d-00000000000000000000/build/widget/windows/winrt/UIAAccessibilityBridge.cpp
UIABridge.obj
mozmake[5]: *** [Unified_cpp_content_media_wmf0.obj] Error 2
mozmake[4]: *** [content/media/wmf/compile] Error 2
mozmake[4]: *** Waiting for unfinished jobs....
Already fixed.

FWIW this was only an issue if you have --enable-logging and --enable-warnings-as-errors which is not the default.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
No longer blocks: unified
(In reply to :Ehsan Akhgari (needinfo? me!) from comment #1)
> Already fixed.
> 
> FWIW this was only an issue if you have --enable-logging and
> --enable-warnings-as-errors which is not the default.
> 
> *** This bug has been marked as a duplicate of bug 950840 ***

It was an issue with tbpl mozconfigs for debug builds.
I'm curious about the DXGI_ERROR_ ones, too. Interestingly, bug 950840 seems to have fixed the whole. Last m-c merge on birch built fine.
(In reply to Mike Hommey [:glandium] from comment #3)
> I'm curious about the DXGI_ERROR_ ones, too. Interestingly, bug 950840 seems
> to have fixed the whole. Last m-c merge on birch built fine.

Those were just warnings, right?
(In reply to :Ehsan Akhgari (needinfo? me!) from comment #4)
> (In reply to Mike Hommey [:glandium] from comment #3)
> > I'm curious about the DXGI_ERROR_ ones, too. Interestingly, bug 950840 seems
> > to have fixed the whole. Last m-c merge on birch built fine.
> 
> Those were just warnings, right?

error C2220: warning treated as error - no 'object' file generated

But maybe they were warnings on another file (yay parallel builds with mixed up output)
(In reply to comment #5)
> (In reply to :Ehsan Akhgari (needinfo? me!) from comment #4)
> > (In reply to Mike Hommey [:glandium] from comment #3)
> > > I'm curious about the DXGI_ERROR_ ones, too. Interestingly, bug 950840 seems
> > > to have fixed the whole. Last m-c merge on birch built fine.
> > 
> > Those were just warnings, right?
> 
> error C2220: warning treated as error - no 'object' file generated
> 
> But maybe they were warnings on another file (yay parallel builds with mixed up
> output)

Yes, I think that's what happened.
You need to log in before you can comment on or make changes to this bug.