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

MongoDB failed to buid with /permissive- performance on MSVC

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.8
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
       VS 2017 + Windows Server 2016 + MongoDB master branch latest revision
    • Fully Compatible
    • Dev Tools 2019-02-11

      MongoDB failed to buid with /permissive- performance on MSVC. We use latest version of MongoDB to test VS copmlier. And we know building MongoDB with VS 2017 is currently not supported, so we apply patch to support this, I attach this patch. Could you please help to take a look at this? Thanks in advance!

      1. repro steps:
         1. git clone -c core.autocrlf=true https://github.com/mongodb/mongo D:\MongoDB\src
         2. open a VS 2017 x64 command prompt and browse to D:\MongoDB\src
         3. git apply mongodb.patch
         4. pip.exe install -r .\buildscripts\requirements.txt
         5. scons all -j4 CXXFLAGS="/wd4756 /wd4056 /permissive-"

      Failures:
      network_interface_factory.cpp
      Unknown compiler version - please run the configure tests and report the results
      D:\MongoDB\src\src\mongo/util/future.h(1430): error C3861: 'SharedState': identifier not found
      D:\MongoDB\src\src\mongo/util/future.h(1441): error C3861: 'SharedState': identifier not found

            Assignee:
            henrik.edin@mongodb.com Henrik Edin
            Reporter:
            QuellaZhang QuellaZhang [X]
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: