Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-10327

While using Clang from Homebrew on Mac OSX, ROOT picks wrong Clang headers

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • High
    • Resolution: Cannot Reproduce
    • 6.18/04
    • None
    • None
    • None
    • OS X 10.12

    Description

       When using clang from Homebrew on Mac OSX, ROOT picks wrong Clang headers (not internal, but from Homebrew):
       

        [77%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingCallbacks.cxx.o
      In file included from /Users/ahmad/bdm-build-third-party/root/core/metacling/src/TClingCallbacks.cxx:37:
      In file included from /Users/ahmad/bdm-build-third-party/root/core/metacling/src/ClingRAII.h:13:
      /Users/ahmad/bdm-build-third-party/root/interpreter/cling/include/cling/Utils/ParserStateRAII.h:32:29: error: 'TemplateIds' is a private member of 'clang::Parser'
          decltype(clang::Parser::TemplateIds) OldTemplateIds;
                                  ^
      /usr/local/opt/llvm/include/clang/Parse/Parser.h:254:43: note: implicitly declared private here
        SmallVector<TemplateIdAnnotation *, 16> TemplateIds;
                                                ^
      In file included from /Users/ahmad/bdm-build-third-party/root/core/metacling/src/TClingCallbacks.cxx:37:
      /Users/ahmad/bdm-build-third-party/root/core/metacling/src/ClingRAII.h:60:29: error: no type named 'CleanupAndRestoreCacheRAII' in 'clang::Preprocessor'
             clang::Preprocessor::CleanupAndRestoreCacheRAII fCleanupRAII;
             ~~~~~~~~~~~~~~~~~~~~~^

      https://root-forum.cern.ch/t/compilation-error-root-v6-18-04-on-os-x-llvm-clang-8-0/36074

       

      Attachments

        Activity

          People

            oshadura Oksana Shadura
            oshadura Oksana Shadura
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: