Compilation problem

Hi,

I’m trying ROOT6 on my new Mac 10.11.4
I downloaded the gzipped tarball, unpacked it, and compiling a macro that ran just fine on my previous Mac.
Here’s what I get.
Any help would be appreciated.

Thanks,
Yuri


| Welcome to ROOT 6.06/02 root.cern.ch |
| © 1995-2014, The ROOT Team |
| Built for macosx64 |
| From heads/master@v6-07-02-437-gb06340c, Mar 02 2016, 19:01:57 |

Try ‘.help’, ‘.demo’, ‘.license’, ‘.credits’, ‘.quit’/’.q’

root [0] .L eqn.C++
Info in TMacOSXSystem::ACLiC: creating shared library /Users/gerstein/tracklets/Apr2016/fpga_emulation/integer_math/./eqn_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 /Users/gerstein/root6/include/RtypesCore.h:24:
/Users/gerstein/root6/include/RConfig.h:256:13: fatal error: ‘AvailabilityMacros.h’ file not found

include <AvailabilityMacros.h>

        ^

*** Break *** segmentation violation
Generating stack trace…

Hi Yuri,

You may need to install/upgrade XCode and its command line tools.

Cheers,
Philippe.

Any guidance on the version?
I installed everything not very long ago… It’s 7.3

xcodebuild -version Xcode 7.3 Build version 7D175should work. You also need to make sure to have codexcode-select --install

Cheers,
Philippe.

I did have Build version 7D175,
but was missing the command line tools, which your second suggestion installed.
Now things are compiling.

I still get the warning
Info in TMacOSXSystem::ACLiC: creating shared library /Users/gerstein/tracklets/Apr2016/fpga_emulation/integer_math/./eqn_C.so
Warning in cling::IncrementalParser::CheckABICompatibility():
C++ ABI mismatch, compiled with _LIBCPP_VERSION v1101 running with v3700

should I worry about it or ignore?

Thanks!!
Yuri

Hi,

It is likely you are using older version of some libraries that need to be recompiled.

As a sanity check do:cd $ROOTSYS/tutorials root.exe -b -l -q hsimple.C++

Cheers,
Philippe.

this is what I get:

root.exe -b -l -q hsimple.C++mymac:~/root6/tutorials root.exe -b -l -q hsimple.C++

Welcome to the ROOT tutorials

Type “.x demos.C” to get a toolbar from which to execute the demos

Type “.x demoshelp.C” to see the help window

==> Many tutorials use the file hsimple.root produced by hsimple.C
==> It is recommended to execute hsimple.C before any other script

root [0]
Processing hsimple.C++…
Info in TMacOSXSystem::ACLiC: creating shared library /Users/gerstein/root6/tutorials/./hsimple_C.so
Warning in cling::IncrementalParser::CheckABICompatibility():
C++ ABI mismatch, compiled with _LIBCPP_VERSION v1101 running with v3700
hsimple : Real Time = 0.07 seconds Cpu Time = 0.07 seconds
(TFile *) 0x7fbc2ab103f0

Taking a break from ROOT? Hope to see you back!

Hi,

Looks like

  • libc++ has bumped their version number, likely to use the clang version number.
  • 6.06/02 or later needs to be rebuilt with the current XCode.

If only we had nightly binary snapshots - you could just download one for the 6-06 branch. But we don’t (I have been suggesting this since more than a year), so I’m afraid you will have to build ROOT yourself from source, or wait for the next 6.06 release that then hopefully uses the current Xcode / clang / libc++.

Cheers, Axel.

OK, thanks.

In the meantime, I think everything works, I just feel uneasy
when I get warnings like this.

Thanks,
Yuri