Building ROOT with clang+libc++ on Ubuntu

Hm, ok. I tried to build with your exact flags, which gives me the same error I’ve had before. Can you tell me what your setup and environment is that you’re building in?
I’m still getting

Warning in cling::IncrementalParser::CheckABICompatibility():
  Failed to extract C++ standard library version.
Warning in cling::IncrementalParser::CheckABICompatibility():
  Possible C++ standard library mismatch, compiled with _LIBCPP_ABI_VERSION '1'
  Extraction of runtime standard library version was: ''
In file included from input_line_9:149:
In file included from /root_build/include/TClassEdit.h:29:
/usr/lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/cxxabi.h:128:3: error: exception specification in declaration does not match previous declaration
  __cxa_atexit(void (*)(void*), void*, void*) _GLIBCXX_NOTHROW;
  ^
input_line_2:2:16: note: previous declaration is here
extern "C" int __cxa_atexit(void (*f)(void*), void*, void*) ;

/usr/lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/cxxabi.h sounds to me like it’s still including the GNU cxxabi.h file at some point.

I’m using a binary release of clang7 for Ubuntu, since building clang from scratch takes ages. But I guess I could give it a shot with clang-master, if you think that might be the cause of my build failure.

On the other hand I have a Dockerfile that would probably reproduce the error I’m seeing on your end, if that would be of interest to you, and you’re willing to spend the time to investigate.