[SERVER-22248] MongoDB 3.2.1 build generates internal compiler error in VS2015 Created: 20/Jan/16  Updated: 21/Jan/16  Resolved: 21/Jan/16

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

Type: Bug Priority: Major - P3
Reporter: Rex Conn Assignee: Ramon Fernandez Marina
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-19505 Add VS 2015 Builder Closed
Operating System: ALL
Steps To Reproduce:

scons --ssl CPPPATH=s:\sdk\openssl-1.0.2e\include LIBPATH=s:\sdk\openssl-1.0.2e\win64\lib --release --win-version-min=vista all

Participants:

 Description   

I'm getting an internal error in VS2015 when building 3.2.1. (Tried it multiple times on two systems, including rebooting & trying again.)

Is there a command line option to tell SCONS to use VS2013 instead?

time_support.cpp
Creating 'build\opt\mongo\util\version.cpp'
cl /Fobuild\opt\mongo\util\version.obj /c build\opt\mongo\util\version.cpp /TP /nologo /EHsc /W3 /wd4355 /wd4800 /wd4267 /wd4244 /wd4290 /wd4068 /wd4351 /we4013 /we4099 /we4930 /Z
7 /errorReport:none /MT /O2 /Oy- /Gw /Gy /Zc:inline /DPCRE_STATIC /DNDEBUG /DBOOST_ALL_NO_LIB /D_UNICODE /DUNICODE /D_CONSOLE /D_CRT_SECURE_NO_WARNINGS /D_WIN32_WINNT=0x0600 /DNTD
DI_VERSION=0x06000000 /DBOOST_THREAD_VERSION=4 /DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD /DBOOST_SYSTEM_NO_DEPRECATED /DBOOST_THREAD_DONT_PROVIDE_INTERRUPTIONS /DBOOST_THREAD_HA
S_NO_EINTR_BUG /Isrc\third_party\asio-asio-1-11-0\asio\include /Isrc\third_party\s2 /Isrc\third_party\pcre-8.37 /Isrc\third_party\boost-1.56.0 /IS:\sdk\openssl-1.0.2e\include /Ibu
ild\opt /Isrc /Z7
version.cpp
build\opt\mongo\util\version.cpp(78): fatal error C1001: An internal error has occurred in the compiler.
(compiler file 'f:\dd\vctools\compiler\cxxfe\sl\p1\c\constexpr.h', line 630)
 To work around this problem, try simplifying or changing the program near the locations listed above.
Please choose the Technical Support command on the Visual C++
 Help menu, or open the Technical Support help file for more information
scons: *** [build\opt\mongo\util\version.obj] Error 2
scons: building terminated because of errors.



 Comments   
Comment by Ramon Fernandez Marina [ 21/Jan/16 ]

Thanks for the additional information rconn, looks like you've run into the VS2015 bugs listed in SERVER-19505. Since you're able to build with VS2013 I'm going to resolve this ticket. Feel free to watch SERVER-19505 for any further updates on this matter.

Regards,
Ramón.

Comment by Rex Conn [ 21/Jan/16 ]

I tried both of the suggested workarounds in SERVER-21317, but they didn't work. The VS2015 build still fails with an internal compiler error at the same place.

Building 3.2.1 with VS2013 does work.

Comment by Rex Conn [ 20/Jan/16 ]

I got the source from https://www.mongodb.org/downloads#production .

Comment by Andrew Morrow (Inactive) [ 20/Jan/16 ]

Hi rconn -

You can explicitly select a compiler on the SCons command line with the MSVC_VERSION SCons Variable. To build with VS2013, try

scons MSVC_VERSION=12.0

Comment by Ramon Fernandez Marina [ 20/Jan/16 ]

rconn, what sources are you using to build? Are you building from the git repo or did you get them from the releases tab on github?

If the latter then this may be a known issue – please see SERVER-21317, which includes a workaround.

Thanks,
Ramón

Generated at Thu Feb 08 03:59:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.