[SERVER-50075] MongoDB failed to run buildscripts/scons.py all -j4 with MSVC on windows Created: 03/Aug/20  Updated: 15/Sep/20  Resolved: 15/Sep/20

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

Type: Question Priority: Major - P3
Reporter: v-mingxi xiao Assignee: Eric Sedor
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

VS 2019 + Windows Server 2016 + MongoDB master branch latest revision


Attachments: Text File build.log     Zip Archive patch.zip    
Participants:

 Description   

MongoDB failed to run buildscripts/scons.py all -j4 with MSVC on windows .  It can be reproduced on master latest revision 46af3f0. Could you help have a look about this issue? Thanks in advance!

Steps to reproduce the behavior:

  1. git clone -c core.autocrlf=true https://github.com/mongodb/mongo D:\MongoDB\src
  2. Open a VS 2019 x64 command prompt and browse to D:\MongoDB\src
  3. Apply the three patches in the attachment in order: mongodb_addoption_bug943976.patch mongodb_bug668740.patch mongodb_c2039,c3646.patch
  4. set VSCMD_SKIP_SENDTELEMETRY=1 & "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=amd64
  5. pip3 install -r etc/pip/compile-requirements.txt
  6. set VSCMD_SKIP_SENDTELEMETRY=1 & "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=amd64
  7. python buildscripts/scons.py all -j4

Actual result:
scons: Building targets ...
scons: *** Do not know how to make File target {{all' (F:\gitP\mongodb\mongo\all). Stop. scons: building terminated because of errors. all failed: Do not know how to make File target }}all' (F:\gitP\mongodb\mongo\all)

 

 

 



 Comments   
Comment by Andrew Morrow (Inactive) [ 03/Aug/20 ]

Hi v-mingxi@microsoft.com - In MongoDB master, the names of targets have changed. The all target is now called install-all. This is noted in the building.md document for the master branch: https://github.com/mongodb/mongo/blob/master/docs/building.md.

The same behavior is available for opt-in on the MongoDB v4.4 branch with the flag --install-mode=hygienic.

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