[SERVER-27956] Build successfully under G++ 6.2 Created: 09/Feb/17 Updated: 05/Apr/17 Resolved: 28/Feb/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Build |
| Affects Version/s: | 3.5.2 |
| Fix Version/s: | 3.5.4 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Nathan Myers | Assignee: | Mathias Stearn |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Operating System: | ALL | ||||||||||||
| Backport Requested: |
v3.4, v3.2
|
||||||||||||
| Steps To Reproduce: | Build. |
||||||||||||
| Participants: | |||||||||||||
| Description |
|
Gcc 6 has substantially better error messages than Gcc 5, and lots of other improvements. The only impediment is that builds fail warning about dicey memory management code. |
| Comments |
| Comment by Githook User [ 28/Feb/17 ] |
|
Author: {u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}Message: This is a more minimal version of |
| Comment by Nathan Myers [ 09/Feb/17 ] |
|
Yes, fixing the cause of the warnings is the aim of this ticket. |
| Comment by Andrew Morrow (Inactive) [ 09/Feb/17 ] |
|
In that case, you can probably stop the escalation of warnings to errors by using the --disable-warnings-as-errors flag to SCons. Of course, if the warnings are legit, we should fix the underlying issues. |
| Comment by Nathan Myers [ 09/Feb/17 ] |
|
I will just note here that this ticket is not about moving to Gcc 6 as the default development or delivery platform, but just for the system to be able to build under that compiler. |
| Comment by Andrew Morrow (Inactive) [ 09/Feb/17 ] |
|
Most likely this will happen for 3.8. Our typical flow here is as follows:
Basically, any one rev of the toolchain is used for two stable releases. We just upgraded the compiler to GCC 5 in MongoDB 3.4 development. So, by the current roadmap, we should ship 3.6 with GCC 5 as well, and then upgrade to GCC whatever (probably 7), during development for MongoDB 3.8. The TL;DR is that we are in the middle of the lifecycle for the current toolchain build, and we are not likely to move to a newer toolchain for, most likely, about a year. |