Root6 doesn't compile under Mojave


_ROOT Version: 6-14-04
_Platform: MacOs Mojave 10.14.3
_Compiler: Apple LLVM version 10.0.0

After upgrading to Mojave I cannot compile root anymore. The error is:

/Users/marekkowalski/alice/sw/BUILD/29cdad616bcbc4d9bf29348cb117af22dfcdcdab/ROOT/include/TMathBase.h:141:18: error: expected unqualified-id
{ return std::signbit(a); }

/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/math.h:170:5: note: expanded from macro ‘signbit’
( sizeof(x) == sizeof(float) ? __inline_signbitf((float)(x))

Up to now I ran High Sierra and never had such problem.

All simple suggestions like:

brew update
brew outdated
brew upgrade
brew reinstall

don’t help

I have xcode installed correctly:

xcode-select -p
/Library/Developer/CommandLineTools

Help, please, Marek


You need to update the version of ROOT to either 6.14/08 or 6.16/00 to be able to compile on Mojave. Apple has removed /usr/include and many packages broke due to that.

After moving to 6.14.08 it works. Thanks a lot. Marek

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