[SERVER-31936] Compile Error in planner_access.cpp Created: 13/Nov/17 Updated: 27/Nov/17 Resolved: 27/Nov/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Build |
| Affects Version/s: | 3.4.10 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Robert Simmons | Assignee: | David Storch |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Steps To Reproduce: | Using vagrant, spin up one instance of ubuntu/artful64 |
||||||||
| Participants: | |||||||||
| Description |
|
I am unable to compile mongo 3.4.10 from source. There is an error:
|
| Comments |
| Comment by David Storch [ 27/Nov/17 ] |
|
The incorrect invariant() that's failing to compile on the newer version of gcc was fixed under |
| Comment by Mark Agarunov [ 14/Nov/17 ] |
|
Hello utkonos, Thank you for the report. I've managed to reproduce this behavior so I've set this ticket's fixVersion to 'Needs Triage' to be planned against our currently scheduled work. This error appears to be due to a warning on an invariant. As a workaround, please try building MongoDB with the --disable-warnings-as-errors flag. I can confirm from my testing that adding this flag will allow MongoDB to build successfully on Ubuntu 17.10 with gcc 7.2. Thanks, |
| Comment by Robert Simmons [ 13/Nov/17 ] |
|
You may need the GCC version: $ apt-cache policy gcc
Also, the command that I used to start the compile process was "scons mongod mongo" |