[SERVER-23979] Scons build 'all' on Windows intermittently fails with 'Permission denied' error on version.cpp Created: 28/Apr/16  Updated: 06/Dec/16  Resolved: 06/Dec/16

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: 3.3.6
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 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.



 Comments   
Comment by Kaloian Manassiev [ 06/Dec/16 ]

I am unable to reproduce this problem with the vendorized version of scons, so I am closing the ticket.

Comment by Kaloian Manassiev [ 16/May/16 ]

FYI, I have not seen this problem since I downgraded from scons 2.5.0 to 2.4.1, so it must be a bug with that version of scons.

Comment by Ernie Hershey [ 29/Apr/16 ]

It might be useful to try a couple of tests for this - one with new scons but old visual studio and one with latest VS2015 but old scons, and see which is responsible for the new behavior.

Generated at Thu Feb 08 04:05:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.