[SERVER-8467] Official support for building with clang Created: 07/Feb/13  Updated: 11/Jul/16  Resolved: 16/Mar/13

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: 2.5.0

Type: Improvement Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 1
Labels: c++11
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-8676 Enable support for building against l... Closed
Related
is related to SERVER-8466 The --clang build flag should be elim... Closed
Participants:

 Description   

We currently offer only experimental support for building with clang. We should do the necessary work to officially support building with clang on at least OS X and Linux.



 Comments   
Comment by auto [ 08/Jun/13 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@10gen.com'}

Message: SERVER-8467 Don't pass -rdynamic on OS X

On OS X, clang ignores -rdynamic, but issues a warning, which can
be a problem if -Werror is in effect. Remove the flag because
-rdynamic is not needed on OS X.
Branch: master
https://github.com/mongodb/mongo/commit/eb5b8b0226d1d0d1d9b1dfba58b8af810d0e0146

Comment by auto [ 16/Mar/13 ]

Author:

{u'date': u'2013-03-16T19:56:37Z', u'name': u'Andrew Morrow', u'email': u'acm@10gen.com'}

Message: SERVER-8467 Fixup sniffer for libpcap < 1.1.0
Branch: master
https://github.com/mongodb/mongo/commit/8914b61d04fd71063139ae6bb7beb663dd7a1270

Comment by auto [ 16/Mar/13 ]

Author:

{u'date': u'2013-03-01T20:45:15Z', u'name': u'Andrew Morrow', u'email': u'acm@10gen.com'}

Message: SERVER-8466 SERVER-8467 Clang support and autodetection
Branch: master
https://github.com/mongodb/mongo/commit/054ac98b9adc35cf945c5831f3b8fb764ff600ff

Comment by auto [ 16/Mar/13 ]

Author:

{u'date': u'2013-03-13T23:11:00Z', u'name': u'Andrew Morrow', u'email': u'acm@10gen.com'}

Message: SERVER-8467 Fix unused if condition is false warning, and use mask correctly
Branch: master
https://github.com/mongodb/mongo/commit/b2ec0a0f73928294a891f95f9db058e7a63704c2

Comment by auto [ 16/Mar/13 ]

Author:

{u'date': u'2013-03-13T22:50:20Z', u'name': u'Andrew Morrow', u'email': u'acm@10gen.com'}

Message: SERVER-8467 Avoid ambiguity formed by explicit instantiation
Branch: master
https://github.com/mongodb/mongo/commit/7a71d1e0552132ccaea01f8eba84be2885c775ef

Comment by Tad Marshall [ 07/Feb/13 ]

Re: clang on Windows, it looks possible but non-trivial:
http://clang.llvm.org/get_started.html
http://stackoverflow.com/questions/9427356/how-to-compile-clang-on-windows
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/rubenvb/

This may require or overlap with SERVER-1151 (Mingw support).

Comment by Andrew Morrow (Inactive) [ 07/Feb/13 ]

My understanding is that they are working on it, but that it isn't really quite ready yet due to incomplete ABI implementation.

Comment by Eric Milkie [ 07/Feb/13 ]

Will or does clang have support for Windows as well?

Generated at Thu Feb 08 03:17:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.