# Failed vgm building on macOS

**URL:** <https://root-forum.cern.ch/t/failed-vgm-building-on-macos/28749>\
**Category:** ROOT\
**Created:** [April 19, 2018, 1:49pm UTC](https://root-forum.cern.ch/t/failed-vgm-building-on-macos/28749 "2018-04-19T13:49:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![marteff](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/c5a1d2/32.png) [@marteff](https://root-forum.cern.ch/u/marteff)\
**Post date:** [April 19, 2018, 1:49pm UTC](https://root-forum.cern.ch/t/failed-vgm-building-on-macos/28749/1 "2018-04-19T13:49:07Z")

</div>

Dear ROOT experts,

I am experiencing problems concerning vgm@4.4 building with alibuild, related to the inclusion of ROOT libraries:

```auto
/Applications/root/include/RStringView.h:35:12: error: no template named 'basic_string_view'
   typedef basic_string_view<char> string_view;
           ^
/Applications/root/include/RStringView.h:50:28: error: no member named 'to_string' in 'std:: __1::basic_string_view<char, std::__ 1::char_traits<char> >'
      return std::stod(str.to_string(),pos);
                       ~~~ ^
In file included from /Applications/SHiPBuild/sw/SOURCES/vgm/4.4/4.4/packages/RootGM/source/common/axis.cxx:22:
In file included from /Applications/root/include/TGeoMatrix.h:22:
In file included from /Applications/root/include/TNamed.h:29:
/Applications/root/include/TString.h:117:75: error: no member named 'to_string' in 'std:: __1::basic_string_view<char, std::__ 1::char_traits<char> >'
   operator std::string() const { return std::string_view(Data(),fExtent).to_string(); }
                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^

```

Any suggestion on how to fix it? Many thanks in advance.

Cheers,  
Martina

* * *

ROOT Version : 6.12/06  
Xcode version: 9.3  
Platform, compiler: High Sierra 10.13.4, gcc 6.4.0\_2

* * *

---

<div class="post-metadata">

**Author:** ![ganis](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ganis/32/12484_2.png) [@ganis](https://root-forum.cern.ch/u/ganis)\
**Post date:** [April 19, 2018, 2:09pm UTC](https://root-forum.cern.ch/t/failed-vgm-building-on-macos/28749/2 "2018-04-19T14:09:32Z")

</div>

Dear Martina,

Can you check if [this post](https://root-forum.cern.ch/t/tstring-h-no-template-name-basic-string-view/27176) helps ?

G Ganis

---

<div class="post-metadata">

**Author:** ![marteff](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/c5a1d2/32.png) [@marteff](https://root-forum.cern.ch/u/marteff)\
**Post date:** [April 19, 2018, 3:52pm UTC](https://root-forum.cern.ch/t/failed-vgm-building-on-macos/28749/3 "2018-04-19T15:52:24Z")

</div>

Thank you for the provided links.  
Unfortunately, even building Root from scratch didn’t fix the issue.

---

<div class="post-metadata">

**Author:** ![ganis](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ganis/32/12484_2.png) [@ganis](https://root-forum.cern.ch/u/ganis)\
**Post date:** [April 20, 2018, 9:47am UTC](https://root-forum.cern.ch/t/failed-vgm-building-on-macos/28749/4 "2018-04-20T09:47:37Z")

</div>

Did you check with the VGM people? What is the code that fails building?

G Ganis

---

<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:** [May 4, 2018, 9:47am UTC](https://root-forum.cern.ch/t/failed-vgm-building-on-macos/28749/5 "2018-05-04T09:47:38Z")

</div>

Closed on May 4, 2018, 9:47am UTC

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