I’m running root 6.10.02 on a mac (Sierra 12.6), and have run into an issue with TString.h and getting an series of errors related to unknown type name issues. To test demonstrate it, I’ve written a simple hello code,
I have also encountered this problem but did not manage to solve it. I would be very interested in a solution.
I think it is related to installing llvm through a third-party solution (homebrew, macports or what have you) and the compiler getting confused about where to look for headers (picking up the system headers).
However, I’ve not had time to properly look into in
I see the same problem when I try to compile interactively via .L *+
I have an older Mac, with the same OS and version of root, that does not have this problem. The problem is on my new Mac, with an essentially fresh install of the OS.
Problem is definitely in how I have things configured.
Looks like ROOT is not behaving correctly when R__HAS_STD_EXPERIMENTAL_STRING_VIEW is defined, which is true for both of you.
You can try to compile the following without ROOT flags, which is what ROOT does internally to make std::string_view available, and hopefully it will give you the same errors:
EDIT: code was not proper c++
#include <experimental/string_view>
template<class _CharT, class _Traits = std::char_traits<_CharT> >
using basic_string_view = ::std::experimental::basic_string_view<_CharT,_Traits>;
int main() {
typedef basic_string_view<char> string_view;
return 0;
}
Hello, I saw the same error and it appears to be related to upgrading to clang 9.0.0 in XCode 9.0. After upgrading root does not build at all. I made the following JIRA ticket: https://sft.its.cern.ch/jira/browse/ROOT-9015
We have not yet released any binary compatible with XCode 9.
XCode 9 introduced changes in the standard library that is incompatible with old version of ROOT. There is a slight chance, depending on which plugin you need and which exact version that ‘just’ reconfigure and recompiling from scratch.
If it doesn’t you will need to use the master with commit 263508429dec26449513914e71f0f71c9ce9485f or newer.
So I have tried to compile by hand ROOT from the sources. The problem is that at the linking stage he doesn’t want to link against the XMLParser library:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [lib/libXMLParser.so] Error 1
make: *** Waiting for unfinished jobs…
I have had this issue as well. Instead of getting complicated with workarounds, I decided to downgrade my Xcode to version 8. Here is the Apple Developer website where you can get older versions of Xcode: https://developer.apple.com/download/more/
Everything works well now!
I had this issue too – I found that ROOT was broken after macOS auto-updated to xcode 9, so I attempted to compile v6-10-06 and got the same basic_string_view error as above. the Taking Philippe’s suggestion, I compiled from the head of the master branch (commit 2c8c75ad5e6c7393aa2bd0086a5ecddb29f8686f) and it compiled fine. Things seem to be working now.