Unable to compile/run 6.06.02 on OSX 10.11.4


I am attempting to compile root-6.06.02 using cmake 3.5.1 on osx 10.11.4, and I get the first error below.

If instead I install the binary, when I try compile code which I’ve used for a long time I get the second error.

Any help would be appreciated.


==> compiling with cmake

1 warning generated.
[ 39%] Linking CXX executable …/…/bin/rootcling_tmp
[ 39%] Built target rootcling_tmp
Scanning dependencies of target G__Thread
[ 39%] Generating G__Thread.cxx, …/…/lib/libThread.rootmap
In file included from input_line_4:1:
/Users/benhoob/Downloads/root6.06.02/etc/cling/lib/clang/3.7.0/include/assert.h:8:15: fatal error: ‘assert.h’ file not found
#include_next <assert.h>
Error: Error loading the default header files.
make[2]: *** [core/thread/G__Thread.cxx] Error 1
make[1]: *** [core/thread/CMakeFiles/G__Thread.dir/all] Error 2
make: *** [all] Error 2

==> compiling code

root [0] .L dataMC.C+
Info in TMacOSXSystem::ACLiC: creating shared library /Users/benhoob/atlas-benhoob/Run2Analysis/trunk/DataMC/./dataMC_C.so
Warning in cling::IncrementalParser::CheckABICompatibility():
C++ ABI mismatch, compiled with _LIBCPP_VERSION v1101 running with v3700
In file included from input_line_3:1:
In file included from /Applications/root_v6.06.02/include/RtypesCore.h:24:
/Applications/root_v6.06.02/include/RConfig.h:256:13: fatal error: ‘AvailabilityMacros.h’ file not found

include <AvailabilityMacros.h>


*** Break *** segmentation violation
Generating stack trace…
atos[90187]: [fatal] ‘pid_for_task’ failed: (os/kern) failure (5)

You need to install the command line tools xcode-select --install. See root.cern.ch/build-prerequisites#macosx