Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-8467

Official support for building with clang

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.0
    • Component/s: Build
    • Labels:

      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.

        Issue Links

          Activity

          Hide
          milkie Eric Milkie added a comment -

          Will or does clang have support for Windows as well?

          Show
          milkie Eric Milkie added a comment - Will or does clang have support for Windows as well?
          Hide
          acm Andrew Morrow added a comment -

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

          Show
          acm Andrew Morrow added a comment - My understanding is that they are working on it, but that it isn't really quite ready yet due to incomplete ABI implementation.
          Show
          tad Tad Marshall added a comment - 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).
          Hide
          auto auto (Inactive) added a comment -

          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

          Show
          auto auto (Inactive) added a comment - 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
          Hide
          auto auto (Inactive) added a comment -

          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

          Show
          auto auto (Inactive) added a comment - 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
          Hide
          auto auto (Inactive) added a comment -

          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

          Show
          auto auto (Inactive) added a comment - 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
          Hide
          auto auto (Inactive) added a comment -

          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

          Show
          auto auto (Inactive) added a comment - 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
          Hide
          auto auto (Inactive) added a comment -

          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

          Show
          auto auto (Inactive) added a comment - 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

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: