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

Root complication fails with XCode 9 in MacOS 10.12.6

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 6.10/06
    • Fix Version/s: 6.12/00, 6.10/08
    • Component/s: Build System
    • Labels:
      None
    • Environment:

      MacOS 10.12.6 with XCode 9 (clang 9.0.0)

    • Development:

      Description

      After upgrading to XCode 9, compiling programs with root failed with the an error related to string_view[0]. I then downloaded version 6.10/06 of root and compiled it on my system. The complication failed with a related error:

      /Users/nmccoll/Dropbox/Work/programs/root-git/core/metacling/src/TCling.cxx:1064:19: error: call to constructor of 'std::string' (aka
      'basic_string<char, char_traits<char>, allocator<char> >') is ambiguous
      std::string interpInclude(TROOT::GetEtcDir());
      ^ ~~~~~~~~~~~~~~~~~~
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:778:31: note: candidate constructor
      _LIBCPP_INLINE_VISIBILITY basic_string(const value_type* __s);
      ^
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:799:5: note: candidate constructor
      basic_string(__self_view __sv);
      ^
      /Users/nmccoll/Dropbox/Work/programs/root-git/core/metacling/src/TCling.cxx:1073:34: error: ambiguous conversion for functional-style cast from 'TString' to 'std::string' (aka
      'basic_string<char, char_traits<char>, allocator<char> >')
      clingArgsStorage.push_back(std::string("-I" + TROOT::GetIncludeDir()));
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:778:31: note: candidate constructor
      _LIBCPP_INLINE_VISIBILITY basic_string(const value_type* __s);
      ^
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:799:5: note: candidate constructor
      basic_string(__self_view __sv);
      ^

      [0]:
      In file included from /Users/nmccoll/Dropbox/Work/Programs/root/include/TString.h:28:
      /Users/nmccoll/Dropbox/Work/Programs/root/include/RStringView.h:35:12: error: unknown type name 'basic_string_view'
      typedef basic_string_view<char> string_view;
      ^
      /Users/nmccoll/Dropbox/Work/Programs/root/include/RStringView.h:35:29: error: expected unqualified-id
      typedef basic_string_view<char> string_view;
      ^
      /Users/nmccoll/Dropbox/Work/Programs/root/include/RStringView.h:36:12: error: unknown type name 'basic_string_view'
      typedef basic_string_view<char16_t> u16string_view;
      ^
      /Users/nmccoll/Dropbox/Work/Programs/root/include/RStringView.h:36:29: error: expected unqualified-id
      typedef basic_string_view<char16_t> u16string_view;
      ^
      /Users/nmccoll/Dropbox/Work/Programs/root/include/RStringView.h:37:12: error: unknown type name 'basic_string_view'
      typedef basic_string_view<char32_t> u32string_view;
      ^
      /Users/nmccoll/Dropbox/Work/Programs/root/include/RStringView.h:37:29: error: expected unqualified-id
      typedef basic_string_view<char32_t> u32string_view;
      ^
      /Users/nmccoll/Dropbox/Work/Programs/root/include/RStringView.h:38:12: error: unknown type name 'basic_string_view'
      typedef basic_string_view<wchar_t> wstring_view;
      ^
      /Users/nmccoll/Dropbox/Work/Programs/root/include/RStringView.h:38:29: error: expected unqualified-id
      typedef basic_string_view<wchar_t> wstring_view;
      ^
      8 errors generated.

        Attachments

          Activity

            People

            Assignee:
            mato Pere Mato Vila
            Reporter:
            nmccoll Nickolas Mc Coll
            Votes:
            2 Vote for this issue
            Watchers:
            10 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Actual End: