Issue building ROOT 5.34.25

Dear all,

I’m having trouble building ROOT 5.34.25 on macOs 10.14.5, with gcc.
I did:

pmlagarelhos$ cmake /Users/pmlagarelhos/Downloads/root_5-34-25 -Dminuit2=ON -Wno-dev

and got:

-- Found Clang. Major version 10, minor version 0
-- CMAKE_BUILD_TYPE: RelWithDebInfo
-- Found a Mac OS X System 10.14
-- Found a 64bit system
-- Found LLVM compiler collection
-- ROOT Platform: macosx
-- ROOT Architecture: macosx64
-- Build Type: RelWithDebInfo
-- Compiler Flags:  -m64 -pipe -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Qunused-arguments -pthread -stdlib=libc++ -O2 -g -DNDEBUG
-- Looking for ZLib
-- Looking for PCRE
-- Building LZMA version 5.0.3 included in ROOT itself
-- Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR) 
-- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR) 
-- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) 
-- Looking for Python
-- Found Python interpreter version 2.7
-- Looking for GCCXML
-- Looking for OpenGL
-- Looking for Bonjour
-- Checking whether Bonjour/Avahi is supported
-- Looking for Kerberos 5
-- Looking for LibXml2
-- Looking for SQLite
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
-- Enabled support for:  asimage astiff bonjour builtin_afterimage builtin_ftgl builtin_freetype builtin_glew builtin_lzma libcxx cintex cocoa exceptions explicitlink fortran genvector krb5 ldap memstat minuit2 opengl python reflex shared sqlite thread tmva xml
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/pmlagarelhos/Workspace/ROOT_5.34.25

Then, when I build:

cmake --build . --

I get an error almost immediately:

[  1%] Built target LZMA
[  1%] Built target IOSENUM_H
[  1%] Built target move_headers
[  4%] Built target Cint_static
[  4%] Built target Cint
[  5%] Built target rootcint
[  5%] Built target rootcint_tmp
[  5%] Built target ROOTCINTTARGET
[  5%] Generating G__MetaUtils.cxx, G__MetaUtils.h
Error: cannot open file "AvailabilityMacros.h"  /Users/pmlagarelhos/Workspace/ROOT_5.34.25/include/RConfig.h:384:
Warning: Error occurred during reading source files
Warning: Error occurred during dictionary source generation
!!!Removing G__MetaUtils.cxx G__MetaUtils.h !!!
Error: ../../bin/rootcint_tmp: error loading headers...
make[2]: *** [core/metautils/G__MetaUtils.cxx] Error 1
make[1]: *** [core/metautils/CMakeFiles/METAUTILS_DICTIONARY.dir/all] Error 2
make: *** [all] Error 2

I have gcc

gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

and Xcode-select fully updated.

Do you have any idea how to fix this AvailabilityMacros.h error?
Thank you for your time.

Cheers,

Pedro

Hi,

You are trying to build a very old version of ROOT. You cannot compile it with one of the latest MaxOS version. Please try to build a newer ROOT version (e.g. the latest released, 6.18.00)

Lorenzo

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