[SERVER-37243] MongoDB failed to build due to error C3861:'_mul128': identifier not found Created: 21/Sep/18  Updated: 27/Oct/23  Resolved: 21/Sep/18

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

Type: Bug Priority: Major - P3
Reporter: LinGao Assignee: Nick Brewer
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File log_x64_build.log     Text File mongodb.patch    
Operating System: ALL
Steps To Reproduce:

**Environment: **
 VS 2017 + Windows Server 2016 + MongoDB master branch latest revision**

Reproduce 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. pip.exe install -r .\buildscripts\requirements.txt
4. scons all -j4 CXXFLAGS="/wd4756 /wd4056"

 

Acutal result:
cl /Fobuild\opt\mongo\util\options_parser\environment.obj /c src\mongo\util\options_parser\environment.cpp /wd4756 /wd4056 /nologo /EHsc /W3 /wd4355 /wd4800 /wd4267 /wd4244 /wd4290 /wd4068 /wd4351 /wd4373 /we4013 /we4099 /we4930 /WX /errorReport:none /MT /O2 /Oy- /bigobj /utf-8 /Zc:rvalueCast /Zc:strictStrings /volatile:iso /std:c++14 /Gw /Gy /Zc:inline /DPCRE_STATIC /DNDEBUG /DBOOST_ALL_NO_LIB /D_UNICODE /DUNICODE /D_CONSOLE /D_CRT_SECURE_NO_WARNINGS /D_SCL_SECURE_NO_WARNINGS /D_WIN32_WINNT=0x0601 /DNTDDI_VERSION=0x06010000 /DBOOST_SYSTEM_NO_DEPRECATED /DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS /Isrc\third_party\yaml-cpp-0.5.3\include /Isrc\third_party\asio-master\asio\include /Isrc\third_party\pcre-8.41 /Isrc\third_party\boost-1.60.0 /Ibuild\opt /Isrc /Z7
environment.cpp
D:\MongoDB\src\src\mongo/platform/overflow_arithmetic.h(69): error C3861: '_mul128': identifier not found

Participants:

 Description   

MongoDB failed to buid due to error C3861:'_mul128': identifier not found. This issue is caused by revision 480c319 Could you pleaes help to take a look at this? Thanks in advance!

 

 

 



 Comments   
Comment by LinGao [ 27/Sep/18 ]

We apply patch for MongonDB, so building MongoDB with VS 2017 is supported. Could you pleaes apply this patch and help to take a look at this? Thanks in advance!

mongodb.patch

LinGao

Comment by Nick Brewer [ 21/Sep/18 ]

spacelg Thanks for your report. Building MongoDB with VS 2017 is currently not supported, per the building from source documentation. If you're still encountering this error on VS 2015, let us know and we'll re-open this ticket.

-Nick

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