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

MongoDB failed when build on MSVC on windows

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Build
    • None
    • ALL
    • Hide

      Repro:
       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. pip.exe install -r .\buildscripts\requirements.txt
       4. set CL=/wd4756 /wd4056
       5. scons all -j4

      Failures:
       D:\MongoDB\src\src\mongo/db/ftdc/collector.h(61): error C2039: 'string': is not a member of 'std'
      C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.14.26428\include\vector(19): note: see declaration of 'std'
      D:\MongoDB\src\src\mongo/db/ftdc/collector.h(61): error C3646: 'name': unknown override specifier
      D:\MongoDB\src\src\mongo/db/ftdc/collector.h(61): error C2059: syntax error: ')'
      D:\MongoDB\src\src\mongo/db/ftdc/collector.h(61): error C2238: unexpected token(s) preceding ';'
      Unknown compiler version - please run the configure tests and report the results
      D:\MongoDB\src\src\mongo\db\ftdc\collector.cpp(73): error C2039: 'name': is not a member of 'mongo::FTDCCollectorInterface'
      D:\MongoDB\src\src\mongo/db/ftdc/collector.h(50): note: see declaration of 'mongo::FTDCCollectorInterface'

      Show
      Repro:  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. pip.exe install -r .\buildscripts\requirements.txt  4. set CL =/wd4756 /wd4056  5. scons all -j4 Failures:  D:\MongoDB\src\src\mongo/db/ftdc/collector.h(61): error C2039: 'string': is not a member of 'std' C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.14.26428\include\vector(19): note: see declaration of 'std' D:\MongoDB\src\src\mongo/db/ftdc/collector.h(61): error C3646: 'name': unknown override specifier D:\MongoDB\src\src\mongo/db/ftdc/collector.h(61): error C2059: syntax error: ')' D:\MongoDB\src\src\mongo/db/ftdc/collector.h(61): error C2238: unexpected token(s) preceding ';' Unknown compiler version - please run the configure tests and report the results D:\MongoDB\src\src\mongo\db\ftdc\collector.cpp(73): error C2039: 'name': is not a member of 'mongo::FTDCCollectorInterface' D:\MongoDB\src\src\mongo/db/ftdc/collector.h(50): note: see declaration of 'mongo::FTDCCollectorInterface'

    Description

      Build MongoDB on msvc failed with error C2039, C3646, C2059, C2238. this issue can be reproduced from master revision 65bfd4b. Could you please help take a look at this? Noted that this issue only found when compiles with unreleased vctoolset, that next release of MSVC will have this behavior.

      Attachments

        Activity

          People

            Unassigned Unassigned
            QuellaZhang QuellaZhang [X]
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: