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

Scons build 'all' on Windows intermittently fails with 'Permission denied' error on version.cpp

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 3.3.6
    • Build
    • None
    • ALL

    Description

      After the upgrade to Visual Studio 2015 and the latest Scons, rebuilds of all server components with multiple processes are occasionally failing with the error below:

      scons -j 12 --dbg=on --opt=off --ssl --dynamic-windows --win-version-min=ws08r2 CPPPATH="D:/workspace/libs/snmp/include D:/workspace/libs/sasl/include D:/workspace/libs/openssl/include" LIBPATH="D:/workspace/libs/snmp/lib D:/workspace/libs/sasl/lib D:/workspace/libs/openssl/lib" VERBOSE=false all
      ...
      Creating 'build\debug\mongo\util\version.cpp'
      Compiling build\debug\mongo\util\version.obj
      ...
      c1xx: fatal error C1083: Cannot open source file: 'build\debug\mongo\util\version.cpp': Permission denied
      scons: *** [build\debug\mongo\util\version.obj] Error 2
      

      Performing search for the processes, which have version.cpp open immediately after scons fails does not yield any open handles on it, which indicates that there is possibly a race condition between the script, which updates version.cpp and dispatching its compilation.

      Attachments

        Activity

          People

            backlog-server-platform DO NOT USE - Backlog - Platform Team
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: