[SERVER-23088] boost 1.56 libstdc++ version detection is broken when compiling with clang Created: 11/Mar/16 Updated: 20/Nov/16 Resolved: 15/Mar/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Build |
| Affects Version/s: | None |
| Fix Version/s: | 3.2.5, 3.3.4 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Mathias Stearn | Assignee: | Mathias Stearn |
| Resolution: | Done | Votes: | 0 |
| Labels: | code-only | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| Backport Completed: | |||||
| Sprint: | Integration 11 (03/14/16), Integration 12 (04/04/16) | ||||
| Participants: | |||||
| Description |
|
It uses the gcc version to detect the libstdc++ version but clang always claims to be 4.2.1. See https://svn.boost.org/trac/boost/ticket/7473 and https://github.com/mongodb/mongo/blob/master/src/third_party/boost-1.56.0/boost/config/stdlib/libstdcpp3.hpp#L94-L114 This was fixed in 1.57 and a patch will not be needed when we upgrade to 1.60: https://github.com/boostorg/config/blob/boost-1.60.0/include/boost/config/stdlib/libstdcpp3.hpp#L115-L141 |
| Comments |
| Comment by Githook User [ 15/Mar/16 ] |
|
Author: {u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}Message: Fixes compilation errors introduced by (cherry picked from commit 4b6952e97e74d8c7bd16ebfc5fe6e412ccf0f48c) |
| Comment by Githook User [ 14/Mar/16 ] |
|
Author: {u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}Message: Fixes compilation errors introduced by |
| Comment by Githook User [ 14/Mar/16 ] |
|
Author: {u'username': u'3rf', u'name': u'Kyle Erf', u'email': u'erf@mongodb.com'}Message: Revert " This reverts commit 3071389ed3476eeb1e6730bbc1f841addf54b383. |
| Comment by Githook User [ 14/Mar/16 ] |
|
Author: {u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}Message: Fixes compilation errors introduced by |