cosmic FTBFS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mongodb (Ubuntu) |
Fix Released
|
Critical
|
Unassigned | ||
Cosmic |
Fix Released
|
Critical
|
Andreas Hasenack |
Bug Description
[Impact]
Multiple FTBFS errors when building mongodb in cosmic. This prevents mongodb from being SRUed, and such an SRU need has appeared in bug #1821391. The FTBFS issues in cosmic are:
- new gcc8 warnings (format-truncation and class-memaccess)
- -Wparentheses warning
- incompatibility with boost1.66+
There is an additional fix needed for boost1.67 itself, which is being handled in bug #1821762.
[Test Case]
Rebuild mongodb in cosmic. Without these fixes, the build will fail.
[Regression Potential]
All but the fix in boost1.67 mentioned above are due to new gcc8 checks, which suggests that mongodb was last built in cosmic before gcc8 became default.
[Other Info]
Mongo upstream nowadays has proper fixes for the format-truncation and class-memaccess warnings, but these were done[1] after the switch to the SSPL license[2] on October 16th, 2018. What I have done here is grab the fix we currently have in disco which was done by upstream[3] before that date.
[Original Description]
mongodb 3.6.3 is currently failing to build in cosmic.
They all seem to be about Werror=
src/mongo/
src/mongo/
And, of course:
cc1plus: all warnings being treated as errors
1. https:/
2. https:/
3. https:/
Related branches
- Christian Ehrhardt (community): Approve
- Robie Basak: Pending requested
- Canonical Server: Pending requested
-
Diff: 260 lines (+220/-0)6 files modifieddebian/changelog (+14/-0)
debian/patches/168c8d65556ab18b05e33b5f4006d1184c30f8f7.patch (+29/-0)
debian/patches/SERVER-36951-applyOps-createIndexes-without-uuid.patch (+116/-0)
debian/patches/fix-boost-compile.patch (+26/-0)
debian/patches/gcc8-parentheses.patch (+31/-0)
debian/patches/series (+4/-0)
Changed in mongodb (Ubuntu): | |
assignee: | nobody → Andreas Hasenack (ahasenack) |
status: | New → In Progress |
importance: | Undecided → Critical |
Changed in mongodb (Ubuntu Cosmic): | |
importance: | Undecided → Critical |
assignee: | nobody → Andreas Hasenack (ahasenack) |
Changed in mongodb (Ubuntu): | |
assignee: | Andreas Hasenack (ahasenack) → nobody |
status: | In Progress → Fix Released |
Changed in mongodb (Ubuntu Cosmic): | |
status: | New → In Progress |
description: | updated |
description: | updated |
description: | updated |
Uploaded to cosmic.