Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-5495

Changes to unittest framework breaking windows build

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.1
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • Environment:
      Windows 64-bit
    • ALL

      cl /Fobuild\win32\64\release\mongo\unittest\unittest.obj /c src\mongo\unittest\unittest.cpp /TP /nologo /EHsc /W3 /wd4355 /wd4800 /wd4267 /wd4244 /Z7 /errorReport:none /O2 /MT /GL /DBOOST_ALL_NO_LIB /D_SCONS /DMONGO_EXPOSE_MACROS /DSUPPORT_UTF8 /D_UNICODE /DUNICODE /D_CONSOLE /D_CRT_SECURE_NO_WARNINGS /DPSAPI_VERSION=1 /DJS_C_STRINGS_ARE_UTF8 /DNOEXECINFO /DXP_WIN /Ibuild\win32\64\release\third_party\boost /Isrc\third_party\boost /Ibuild\win32\64\release\third_party\pcre-8.30 /Isrc\third_party\pcre-8.30 /Ibuild\win32\64\release /Isrc /Ibuild\win32\64\release\mongo /Isrc\mongo "/IC:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include" /ID:\10gen\buildslaves\mongo\Windows_64bit\winpcap\Include /Ibuild\win32\64\release\third_party\snappy /Isrc\third_party\snappy /Ibuild\win32\64\release\third_party\js-1.7 /Isrc\third_party\js-1.7
      unittest.cpp
      D:\10gen\buildslaves\mongo\Windows_64bit\mongo\src\mongo/util/debug_util.h(82) : error C3861: 'DebugBreak': identifier not found
      D:\10gen\buildslaves\mongo\Windows_64bit\mongo\src\mongo/util/concurrency/mutex.h(125) : error C2146: syntax error : missing ';' before identifier '_cs'
      D:\10gen\buildslaves\mongo\Windows_64bit\mongo\src\mongo/util/concurrency/mutex.h(125) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      D:\10gen\buildslaves\mongo\Windows_64bit\mongo\src\mongo/util/concurrency/mutex.h(125) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      D:\10gen\buildslaves\mongo\Windows_64bit\mongo\src\mongo/util/concurrency/mutex.h(127) : error C2065: '_cs' : undeclared identifier
      D:\10gen\buildslaves\mongo\Windows_64bit\mongo\src\mongo/util/concurrency/mutex.h(127) : error C3861: 'InitializeCriticalSection': identifier not found
      D:\10gen\buildslaves\mongo\Windows_64bit\mongo\src\mongo/util/concurrency/mutex.h(128) : error C2065: '_cs' : undeclared identifier
      D:\10gen\buildslaves\mongo\Windows_64bit\mongo\src\mongo/util/concurrency/mutex.h(128) : error C3861: 'DeleteCriticalSection': identifier not found
      D:\10gen\buildslaves\mongo\Windows_64bit\mongo\src\mongo/util/concurrency/mutex.h(131) : error C2065: '_cs' : undeclared identifier
      D:\10gen\buildslaves\mongo\Windows_64bit\mongo\src\mongo/util/concurrency/mutex.h(131) : error C3861: 'EnterCriticalSection': identifier not found
      D:\10gen\buildslaves\mongo\Windows_64bit\mongo\src\mongo/util/concurrency/mutex.h(143) : error C2065: '_cs' : undeclared identifier
      D:\10gen\buildslaves\mongo\Windows_64bit\mongo\src\mongo/util/concurrency/mutex.h(143) : error C3861: 'LeaveCriticalSection': identifier not found
      scons: *** [build\win32\64\release\mongo\unittest\unittest.obj] Error 2
      scons: building terminated because of errors.
      

      http://buildbot.mongodb.org/builders/Windows%2064-bit/builds/4611/steps/compile/logs/stdio

            Assignee:
            milkie@mongodb.com Eric Milkie
            Reporter:
            ian@mongodb.com Ian Whalen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: