Problems during Build and Install of Root v6.10/02

Hi again,
I think I have found a “home-made” solution for this problem.
As suggested by this ticket (https://sft.its.cern.ch/jira/browse/ROOT-9015) I have checked out a newer version and compiled again.

git checkout 263508429dec26449513914e71f0f71c9ce9485f

This time the compilation reaches 93% but I keep receiving error messages with roofit.

/usr/local/root/roofit/roofitcore/src/RooSharedPropertiesList.cxx:110:17: error: ambiguous conversion for functional-style cast from 'TString' to 'std::string'
      (aka 'basic_string<char, char_traits<char>, allocator<char> >')
  _newPropList[ std::string(prop->asString()) ] = prop; 
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/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);
    ^
/usr/local/root/roofit/roofitcore/src/RooSharedPropertiesList.cxx:129:29: error: ambiguous conversion for functional-style cast from 'TString' to 'std::string'
      (aka 'basic_string<char, char_traits<char>, allocator<char> >')
    it = _newPropList.find( std::string(prop->asString()) ); 
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/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);

/usr/local/root/roofit/roostats/src/ToyMCSampler.cxx:196:4: error: call to constructor of 'std::string' (aka 'basic_string<char, char_traits<char>, allocator<char> >') is ambiguous
   fSamplingDistName(ts.GetVarName()), fNToys(ntoys)

At this point I modified by hand:

  1. All the prop->asString() with prop->asString().Data()

  2. The ts.GetVarName() with ts.GetVarName().Data().

The compilation now works perfectly and I can use ROOT 6.11/01.
This is a home-made solution but I do not know if I messed up something. An expert here is necessary.