Failed vgm building on macOS

Dear ROOT experts,

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

/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


Dear Martina,

Can you check if this post helps ?

G Ganis

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

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

G Ganis

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