[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:
Related
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: SERVER-23088 fix boost's libstdcpp detection under clang

Fixes compilation errors introduced by SERVER-19936 when compiling with clang
on a system without boost headers installed.

(cherry picked from commit 4b6952e97e74d8c7bd16ebfc5fe6e412ccf0f48c)
Branch: v3.2
https://github.com/mongodb/mongo/commit/9f68e62265bcc15307edd32aca8bd278ddc570f3

Comment by Githook User [ 14/Mar/16 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-23088 fix boost's libstdcpp detection under clang

Fixes compilation errors introduced by SERVER-19936 when compiling with clang
on a system without boost headers installed.
Branch: master
https://github.com/mongodb/mongo/commit/4b6952e97e74d8c7bd16ebfc5fe6e412ccf0f48c

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 "SERVER-23088 fix boost's libstdcpp detection under clang"

This reverts commit 3071389ed3476eeb1e6730bbc1f841addf54b383.
Branch: master
https://github.com/mongodb/mongo/commit/846e196e5a6c2faaa16678bcf0daae36e4cd7a0d

Comment by Githook User [ 14/Mar/16 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-23088 fix boost's libstdcpp detection under clang

Fixes compilation errors introduced by SERVER-19936 when compiling with clang
on a system without boost headers installed.
Branch: master
https://github.com/mongodb/mongo/commit/3071389ed3476eeb1e6730bbc1f841addf54b383

Generated at Thu Feb 08 04:02:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.