Compiling problem root 6.11/02

I just downloaded root 6.11/02 and I tried to compile it on my mac
I have xcode 9
mkdir ROOT
cmake …/root-6.11.02/
make -j3
the compiling fails at
[ 72%] Building CXX object core/dictgen/CMakeFiles/Dictgen.dir/src/XMLReader.cxx.o
Scanning dependencies of target MetaCling
[ 72%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TCling.cxx.o
[ 72%] Building CXX object core/dictgen/CMakeFiles/Dictgen.dir/src/rootcling_impl.cxx.o
/Users/alhroob/root-6.11.02/core/metacling/src/TCling.cxx:1161:29: error: ambiguous conversion for functional-style cast from ‘const TString’ to ‘std::string’ (aka
’basic_string<char, char_traits, allocator >’)
std::string vfsPath = std::string(TROOT::GetIncludeDir()) + “/modulemap.overlay.yaml”;
/Applications/ note: candidate constructor
_LIBCPP_INLINE_VISIBILITY basic_string(const value_type* __s);
/Applications/ note: candidate constructor
basic_string(__self_view __sv);
1 error generated.
make[2]: *** [core/metacling/src/CMakeFiles/MetaCling.dir/TCling.cxx.o] Error 1
make[1]: *** [core/metacling/src/CMakeFiles/MetaCling.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
[ 72%] Building CXX object interpreter/llvm/src/tools/clang/lib/CodeGen/CMakeFiles/clangCodeGen.dir/CodeGenPGO.cpp.o
[ 72%] Building CXX object interpreter/llvm/src/tools/clang/lib/CodeGen/CMakeFiles/clangCodeGen.dir/CodeGenTBAA.cpp.o
[ 72%] Built target Dictgen

Change the line


to read

std::string vfsPath = std::string(TROOT::GetIncludeDir().Data()) + “/modulemap.overlay.yaml”;


Thanks a lot, the proposal solution worked fine

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.