[SERVER-55395] 4.0.23 does not build with gcc 10 Created: 22/Mar/21 Updated: 29/Oct/23 Resolved: 01/Apr/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 4.0.23 |
| Fix Version/s: | 4.4.11, 4.0.24, 4.2.14, 4.9.0-rc1, 5.0.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Oleg Pudeyev (Inactive) | Assignee: | Billy Donahue |
| Resolution: | Fixed | 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: |
v4.9, v4.4, v4.2, v4.0
|
||||||||||||||||||||
| Sprint: | Service Arch 2021-04-05 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
When I build the server 4.0.23 with gcc 10, I get the following error:
Tail of build transcript:
The abort() call appears to have been added in 4.0.21. I successfully built 4.0.19 previously. |
| Comments |
| Comment by Githook User [ 21/Oct/21 ] |
|
Author: {'name': 'Billy Donahue', 'email': 'billy.donahue@mongodb.com', 'username': 'BillyDonahue'}Message: (cherry picked from commit 47f28ebf7feb4c37e9bdf07d0356d389c75ad5f3) |
| Comment by Githook User [ 01/Apr/21 ] |
|
Author: {'name': 'Billy Donahue', 'email': 'billy.donahue@mongodb.com', 'username': 'BillyDonahue'}Message: |
| Comment by Githook User [ 31/Mar/21 ] |
|
Author: {'name': 'Billy Donahue', 'email': 'billy.donahue@mongodb.com', 'username': 'BillyDonahue'}Message: |
| Comment by Githook User [ 31/Mar/21 ] |
|
Author: {'name': 'Billy Donahue', 'email': 'billy.donahue@mongodb.com', 'username': 'BillyDonahue'}Message: |
| Comment by Githook User [ 31/Mar/21 ] |
|
Author: {'name': 'Billy Donahue', 'email': 'billy.donahue@mongodb.com', 'username': 'BillyDonahue'}Message: |
| Comment by Oleg Pudeyev (Inactive) [ 31/Mar/21 ] |
|
Testing now, thank you billy.donahue. |
| Comment by Oleg Pudeyev (Inactive) [ 31/Mar/21 ] |
|
acm I am happy to test a patch but, given the server's build time, I'd rather not attempt to develop said patch. |
| Comment by Billy Donahue [ 31/Mar/21 ] |
| Comment by Billy Donahue [ 31/Mar/21 ] |
|
Yes I can do it. |
| Comment by Andrew Morrow (Inactive) [ 29/Mar/21 ] |
|
oleg.pudeyev - Which minor version of GCC 5 we are require isn't particularly germane to whether or not it builds with GCC 10 and is, as you pointed out, already documented, so I just didn't specify. As far as GCC 10 support goes, if the fix is trivial, sure we can make it. Send a PR. But it is an explicit non-goal of the server development process to require that the product build with all versions of the major compilers. We build with the documented one. Newer compilers may work, they may not. The older the branch, the less likely we are to adapt it for newer compilers. You can always use the mongodbtoolchain to build if you have a system compiler that isn't suitable. |
| Comment by Oleg Pudeyev (Inactive) [ 29/Mar/21 ] |
|
I can test a patch on my system if needed. gcc 10 is the default system compiler on devuan testing, 4.2/4.4 build without errors. Note that https://github.com/mongodb/mongo/blob/r4.0.23/docs/building.md specifies "GCC 5.4.0 or newer", this seems to be different from "only GCC 5.x is supported". |
| Comment by Andrew Morrow (Inactive) [ 29/Mar/21 ] |
|
This is almost certainly due to the backport of Have you tested v4.2, v4.4 with GCC 10? CC billy.donahue. |