# Compiling problem root 6.11/02

**URL:** <https://root-forum.cern.ch/t/compiling-problem-root-6-11-02/26479>\
**Category:** ROOT\
**Created:** [October 6, 2017, 3:36pm UTC](https://root-forum.cern.ch/t/compiling-problem-root-6-11-02/26479 "2017-10-06T15:36:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhoroub](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/bc8723/32.png) [@mhoroub](https://root-forum.cern.ch/u/mhoroub)\
**Post date:** [October 6, 2017, 3:36pm UTC](https://root-forum.cern.ch/t/compiling-problem-root-6-11-02/26479/1 "2017-10-06T15:36:40Z")

</div>

Hi,  
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/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);  
^  
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

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [October 6, 2017, 3:52pm UTC](https://root-forum.cern.ch/t/compiling-problem-root-6-11-02/26479/2 "2017-10-06T15:52:04Z")

</div>

Change the line

```auto
/Users/alhroob/root-6.11.02/core/metacling/src/TCling.cxx:1161

```

to read

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

```

Cheers,  
Philippe.

---

<div class="post-metadata">

**Author:** ![mhoroub](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/bc8723/32.png) [@mhoroub](https://root-forum.cern.ch/u/mhoroub)\
**Post date:** [October 7, 2017, 8:05am UTC](https://root-forum.cern.ch/t/compiling-problem-root-6-11-02/26479/3 "2017-10-07T08:05:09Z")

</div>

Thanks a lot, the proposal solution worked fine

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [October 21, 2017, 8:05am UTC](https://root-forum.cern.ch/t/compiling-problem-root-6-11-02/26479/4 "2017-10-21T08:05:20Z")

</div>

Closed on October 21, 2017, 8:05am UTC

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