Hi experts,
I checked out ROOT master an run the baseline cmake setup
Compilation abort with this
/Users/lpnhe/root/core/base/inc/TStorage.h:148:1: error: unknown type name 'R__EXTERN'
R__EXTERN FreeIfTMapFile_t *gFreeIfTMapFile;
^
/Users/lpnhe/root/core/base/inc/TStorage.h:148:27: error: expected ';' after top level declarator
R__EXTERN FreeIfTMapFile_t *gFreeIfTMapFile;
^
;
/Users/lpnhe/root/core/base/inc/TStorage.h:149:1: error: unknown type name 'R__EXTERN'
R__EXTERN void *gMmallocDesc;
^
/Users/lpnhe/root/core/base/inc/TStorage.h:149:11: error: expected unqualified-id
R__EXTERN void *gMmallocDesc;
^
In file included from /Users/lpnhe/root/core/base/src/TApplication.cxx:23:
In file included from /Users/lpnhe/root/core/base/inc/TApplication.h:30:
In file included from /Users/lpnhe/root/core/base/inc/TQObject.h:40:
In file included from /usr/local/include/TList.h:25:
In file included from /usr/local/include/TSeqCollection.h:25:
In file included from /usr/local/include/TCollection.h:31:
In file included from /usr/local/include/TVirtualRWMutex.h:26:
/usr/local/include/TVirtualMutex.h:32:1: error: unknown type name 'R__EXTERN'
R__EXTERN TVirtualMutex *gGlobalMutex;
^
/usr/local/include/TVirtualMutex.h:32:24: error: expected ';' after top level declarator
R__EXTERN TVirtualMutex *gGlobalMutex;
^
;
In file included from /Users/lpnhe/root/core/base/src/TApplication.cxx:23:
In file included from /Users/lpnhe/root/core/base/inc/TApplication.h:30:
In file included from /Users/lpnhe/root/core/base/inc/TQObject.h:40:
In file included from /usr/local/include/TList.h:25:
In file included from /usr/local/include/TSeqCollection.h:25:
In file included from /usr/local/include/TCollection.h:31:
/usr/local/include/TVirtualRWMutex.h:36:1: error: unknown type name 'R__EXTERN'
R__EXTERN TVirtualRWMutex *gCoreMutex;
^
/usr/local/include/TVirtualRWMutex.h:36:26: error: expected ';' after top level declarator
R__EXTERN TVirtualRWMutex *gCoreMutex;
^
;
In file included from /Users/lpnhe/root/core/base/src/TApplication.cxx:23:
In file included from /Users/lpnhe/root/core/base/inc/TApplication.h:30:
In file included from /Users/lpnhe/root/core/base/inc/TQObject.h:40:
In file included from /usr/local/include/TList.h:25:
In file included from /usr/local/include/TSeqCollection.h:25:
/usr/local/include/TCollection.h:43:1: error: unknown type name 'R__EXTERN'
R__EXTERN TVirtualMutex *gCollectionMutex;
^
/usr/local/include/TCollection.h:43:24: error: expected ';' after top level declarator
R__EXTERN TVirtualMutex *gCollectionMutex;
^
;
In file included from /Users/lpnhe/root/core/base/src/TApplication.cxx:23:
In file included from /Users/lpnhe/root/core/base/inc/TApplication.h:30:
In file included from /Users/lpnhe/root/core/base/inc/TQObject.h:42:
In file included from /Users/lpnhe/root/core/base/inc/TVirtualQConnection.h:16:
/usr/local/include/TInterpreter.h:42:1: error: unknown type name 'R__EXTERN'
R__EXTERN TVirtualMutex *gInterpreterMutex;
^
/usr/local/include/TInterpreter.h:42:24: error: expected ';' after top level declarator
R__EXTERN TVirtualMutex *gInterpreterMutex;
^
;
/usr/local/include/TInterpreter.h:374:20: error: unknown type name 'gInterpreterMutex'
R__LOCKGUARD(gInterpreterMutex);
^
/usr/local/include/TInterpreter.h:374:7: warning: parentheses were disambiguated as a function declaration [-Wvexing-parse]
R__LOCKGUARD(gInterpreterMutex);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/TVirtualMutex.h:94:61: note: expanded from macro 'R__LOCKGUARD'
#define R__LOCKGUARD(mutex) TLockGuard _R__UNIQUE_(R__guard)(mutex)
^~~~~~~
/usr/local/include/TInterpreter.h:374:20: note: add a pair of parentheses to declare a variable
R__LOCKGUARD(gInterpreterMutex);
^
(
/usr/local/include/TVirtualMutex.h:94:62: note: expanded from macro 'R__LOCKGUARD'
#define R__LOCKGUARD(mutex) TLockGuard _R__UNIQUE_(R__guard)(mutex)
^
In file included from /Users/lpnhe/root/core/base/src/TApplication.cxx:23:
In file included from /Users/lpnhe/root/core/base/inc/TApplication.h:30:
In file included from /Users/lpnhe/root/core/base/inc/TQObject.h:42:
In file included from /Users/lpnhe/root/core/base/inc/TVirtualQConnection.h:16:
/usr/local/include/TInterpreter.h:553:1: error: unknown type name 'R__EXTERN'
R__EXTERN TInterpreter* gCling;
^
/usr/local/include/TInterpreter.h:553:23: error: expected ';' after top level declarator
R__EXTERN TInterpreter* gCling;
^
;
/usr/local/include/TInterpreter.h:559:8: error: use of undeclared identifier 'gCoreMutex'
if (gCoreMutex)
^
/usr/local/include/TInterpreter.h:560:9: error: no member named 'gCling' in the global namespace
::gCling->SnapshotMutexState(gCoreMutex);
~~^
/usr/local/include/TInterpreter.h:560:36: error: use of undeclared identifier 'gCoreMutex'
::gCling->SnapshotMutexState(gCoreMutex);
^
/usr/local/include/TInterpreter.h:564:8: error: use of undeclared identifier 'gCoreMutex'
if (gCoreMutex)
And my cmake …/
Prompt this
~/root/build_root (master)
$|=>cmake ../
-- Detected ROOT_VERSION 6.23.01
-- Looking for Python
-- Could NOT find Python3 (missing: Python3_NumPy_INCLUDE_DIRS NumPy) (found version "3.9.1")
-- Found a macOS system 10.14
-- Found an x86_64 system
-- ROOT Platform: macosx
-- ROOT Compiler: AppleClang 10.0.1.10010046
-- ROOT Processor: x86_64
-- ROOT Architecture: macosx64
-- Build Type: 'Release' (flags = '-O2')
-- Compiler Flags: -std=c++14 -Wc++11-narrowing -Wsign-compare -Wsometimes-uninitialized -Wconditional-uninitialized -Wheader-guard -Warray-bounds -Wcomment -Wtautological-compare -Wstrncat-size -Wloop-analysis -Wbool-conversion -m64 -pipe -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Qunused-arguments -pthread -stdlib=libc++ -O2
-- ROOT default compression algorithm: zlib
-- PyROOT will be built for versions 3.9.1 (Main) and 2.7.16
-- Looking for ZLib
-- Building freetype version 2.6.1 included in ROOT itself
-- Looking for PCRE
-- Looking for LZMA
-- Looking for ZSTD
-- Looking for LZ4
-- Building AfterImage library included in ROOT itself
-- Looking for GSL
-- Looking for OpenGL
-- Looking for gl2ps
-- Looking for LibXml2
-- Looking for SQLite
-- Looking for FFTW3
-- Looking for CFITSIO
-- Looking for XROOTD
-- Found Xrootd version num: 4.6.1 (setting -DROOTXRDVERS=400060001)
-- libXrdMain not found: xproofd will be a wrapper around xrootd
-- libXrdClient not found: use built-in
-- include_dirs: /usr/local/include;/usr/local/include/private
-- libraries: /usr/local/lib/libXrdUtils.dylib;/usr/local/lib/libXrdCl.dylib
-- Checking for module 'davix>=0.6.4'
-- Found davix, version 0.7.6
-- Looking for VDT
-- Cannot select cudnn without selecting cuda or tmva-gpu. Option is ignored
-- Looking for BLAS for optional parts of TMVA
-- Building LLVM in 'Release' mode.
-- Found libtool - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool
-- Native target architecture is X86
-- Threads disabled.
-- Doxygen disabled.
-- Go bindings enabled.
-- Found ld64 - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
-- LLVM host triple: x86_64-apple-darwin18.7.0
-- LLVM default target triple: x86_64-apple-darwin18.7.0
-- Building with -fPIC
-- Constructing LLVMBuild project information
-- SysLibs: curses;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libz.tbd
-- Targeting X86
-- Targeting NVPTX
-- Clang version: 5.0.0
-- Cling version (from VERSION file): ROOT_0.8~dev
-- Cling will look for C++ headers in '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1' at runtime.
-- And if not found, will invoke: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ ' for them.
-- Performing Test found_stdstringview
-- Performing Test found_stdstringview - Success
-- Performing Test found_stod_stringview
-- Performing Test found_stod_stringview - Failed
-- Performing Test found_stdapply
-- Performing Test found_stdapply - Failed
-- Performing Test found_stdinvoke
-- Performing Test found_stdinvoke - Failed
-- Performing Test found_stdindexsequence
-- Performing Test found_stdindexsequence - Success
-- ROOT Configuration
System Darwin-18.7.0
Processor 4 core Intel(R) Core(TM) i7-7920HQ CPU @ 3.10GHz (x86_64)
Build type Release
Install path /usr/local
Compiler AppleClang 10.0.1.10010046
Compiler flags:
C -m64 -pipe -W -Wall -fsigned-char -fno-common -Qunused-arguments -pthread -O2 -DNDEBUG
C++ -std=c++14 -Wc++11-narrowing -Wsign-compare -Wsometimes-uninitialized -Wconditional-uninitialized -Wheader-guard -Warray-bounds -Wcomment -Wtautological-compare -Wstrncat-size -Wloop-analysis -Wbool-conversion -m64 -pipe -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Qunused-arguments -pthread -stdlib=libc++ -O2 -DNDEBUG
Linker flags:
Executable -mmacosx-version-min=10.14
Module
Shared
-- Enabled support for: asimage builtin_afterimage builtin_clang builtin_freetype builtin_ftgl builtin_glew builtin_llvm builtin_nlohmannjson builtin_openssl builtin_openui5 builtin_tbb builtin_xxhash clad cocoa dataframe davix exceptions fftw3 fitsio gdml http imt libcxx mathmore mlp opengl pyroot roofit runtime_cxxmodules shared sqlite ssl tmva tmva-cpu spectrum vdt xml xrootd
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/lpnhe/root/build_root
Thanks in advance ,
Renato
Please read tips for efficient and successful posting and posting code
_ROOT Version: master
Platform: Mac Os