[SERVER-32377] ERROR: Refusing to build with compiler that does not meet requirements Created: 17/Dec/17 Updated: 26/Jan/18 Resolved: 26/Dec/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Build |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Question | Priority: | Major - P3 |
| Reporter: | shawn | Assignee: | Andrew Morrow (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
scons mongod.exe MONGO_VERSION=3.4.10 scons: Reading SConscript files ... the actual vs version is: |
| Comments |
| Comment by shawn [ 23/Dec/17 ] |
|
@Andrew Morrow I got it, |
| Comment by Andrew Morrow (Inactive) [ 23/Dec/17 ] |
|
Ahhh.... thank you for that. It has jogged my memory. You need a compiler hotfix for VS2015 to fix a bug in /WHOLEARCHIVE. We intentionally included the version code that included the hotfix so that people wouldn't get failing builds. Your choices are to either build with --link-model=objects --disable-minimum-compiler-version-enforcement which will instruct the build system to ignore the version check and to not attempt to use the /WHOLEARCHIVE flag, or to install the following hotfix: |
| Comment by shawn [ 22/Dec/17 ] |
|
@Andrew Morrow my _MSC_FULL_VER. is 19.00.24215.1 so, i changed " #if _MSC_VER < 1900 || (_MSC_VER == 1900 && _MSC_FULL_VER < 190024218)" to "_MSC_FULL_VER < 190024215" from file SConstruct. |
| Comment by Andrew Morrow (Inactive) [ 18/Dec/17 ] |
|
Can you re-run your build with the flag --config=force, and then attach the file build/scons/config.log to this ticket? It would also be helpful to know what values your compiler expresses for _MSC_VER and _MSC_FULL_VER. |