CMake error on mac os mojave related to X11

Hi all,

I just got compiler errors while I am trying to build root from source in my laptop (Mac OS 10.14.2, Mojave) with g++-8 compiler.

First I got an error as:

Building CXX object core/macosx/CMakeFiles/Macosx.dir/src/CocoaUtils.mm.o cc1objplus: 
error: argument to '-O' should be a non-negative integer, 'g', 's' or ‘fast'

As suggested in this topic - Mac os x, gcc-6 compile error, I should switch to X11 other than cocoa.
But I just found that X11 is no longer included with Mac, so I just installed the XQUARTZ, then I trying to cmake it with:

cmake ../source  -Dcocoa=OFF -Dx11=ON

And I got another error as

[ 70%] Building CXX object rootx/CMakeFiles/root.dir/src/rootx.cxx.o
In file included from /Users/cheng/Software/root/source/graf3d/glew/src/glew.c:49:
/Users/cheng/Software/root/build_v6-14-04/include/GL/glxew.h:94:10: fatal error: X11/Xlib.h: No such file or directory
 #include <X11/Xlib.h>

Below I pasted the log file of cmake ../source -Dcocoa=OFF -Dx11=ON :

-- ROOT default compression algorithm is zlib
-- Found GCC. Major version 8, minor version 2
-- Found a Mac OS X System 10.14
-- Found a 64bit system
-- Found GNU compiler collection
-- ROOT Platform: macosx
-- ROOT Architecture: macosx64
-- Build Type: RelWithDebInfo
-- Compiler Flags:  -Wno-implicit-fallthrough -Wno-noexcept-type -m64 -pipe -W -Wshadow -Wall -Woverloaded-virtual -fsigned-char -fno-common -pthread -std=c++11 
-- Looking for ZLib
-- Building freetype version 2.6.1 included in ROOT itself
-- Building pcre version 8.37 included in ROOT itself
-- Building LZMA version 5.2.1 included in ROOT itself
-- Looking for X11
-- 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) 
-- Building AfterImage library included in ROOT itself
-- Looking for OpenGL
-- Looking for LibXml2
-- Looking for SQLite
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
-- Looking for BLAS for optional parts of TMVA
-- Enabled support for:  asimage astiff builtin_afterimage builtin_davix builtin_freetype builtin_ftgl builtin_gl2ps builtin_glew builtin_llvm builtin_clang builtin_lzma builtin_lz4 builtin_openssl builtin_pcre builtin_tbb builtin_vdt builtin_xxhash cling cxx11 davix exceptions explicitlink gdml genvector http imt opengl pch python roofit shared sqlite ssl thread tmva tmva-cpu vdt x11 xft xml
-- Found libtool - /Library/Developer/CommandLineTools/usr/bin/libtool
-- Native target architecture is X86
-- Threads disabled.
-- Doxygen disabled.
-- Go bindings disabled.
-- Found ld64 - /Library/Developer/CommandLineTools/usr/bin/ld
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
-- OCaml bindings disabled.
-- LLVM host triple: x86_64-apple-darwin18.2.0
-- LLVM default target triple: x86_64-apple-darwin18.2.0
-- Building with -fPIC
-- Constructing LLVMBuild project information
-- SysLibs: curses;/usr/lib/libz.dylib
-- Targeting X86
-- Clang version: 5.0.0
-- Cling version (from VERSION file): ROOT_0.6~dev
-- Cling will look for C++ headers in '/usr/local/Cellar/gcc/8.2.0/lib/gcc/8/gcc/x86_64-apple-darwin18.0.0/8.2.0/../../../../../../include/c++/8.2.0:/usr/local/Cellar/gcc/8.2.0/lib/gcc/8/gcc/x86_64-apple-darwin18.0.0/8.2.0/../../../../../../include/c++/8.2.0/x86_64-apple-darwin18.0.0:/usr/local/Cellar/gcc/8.2.0/lib/gcc/8/gcc/x86_64-apple-darwin18.0.0/8.2.0/../../../../../../include/c++/8.2.0/backward' at runtime.
-- And if not found, will invoke: '/usr/local/bin/g++-8 ' for them.
-- Using TMVA-DNN with BLAS installation
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/cheng/Software/root/build_v6-14-04


ROOT Version: root_v6-14-04
Platform: Mac OS Mojave 10.14.2
Compiler: g++-8


You seem to be missing the header files for X11, which ROOT needs to compile with X11 support.

I would stick with clang on Mac OS X, as GCC is known to have problems compiling native code.

Hi Amadio, I have used a binary version of ROOT on my mac os laptop, however while I am trying to cmake my native ROOT project with g++-8, I got compiling errors about '-Qunused-arguments, if I cmake it with clang/clang++, I got errors about std::basic_string as you mentioned above. And this native package could be well compiled with g++ on ubuntu system. I pasted the errors for g++-8 and clang below separately. Is there any way to bypass this?

Compiling errors with g++-8

[ 12%] Building CXX object src/CMakeFiles/MiniTuple.dir/MiniTuple.C.o
g++-8: error: unrecognized command line option '-Qunused-arguments'; did you mean '-Wunused-parameter'?
g++-8: error: unrecognized command line option '-stdlib=libc++'
make[2]: *** [src/CMakeFiles/MiniTuple.dir/MiniTuple.C.o] Error 1
make[1]: *** [src/CMakeFiles/MiniTuple.dir/all] Error 2
make: *** [all] Error 2

Compiling errors with clang/clang++

[ 12%] Building CXX object src/CMakeFiles/MiniTuple.dir/MiniTuple.C.o
[ 25%] Linking CXX shared library libMiniTuple.dylib
Undefined symbols for architecture x86_64:
  "HistNameSvc::HistNameSvc()", referenced from:
      MiniTuple::Initialize() in MiniTuple.C.o
  "TVersionCheck::TVersionCheck(int)", referenced from:
      ___cxx_global_var_init in MiniTuple.C.o
  "ROOT::GetROOT()", referenced from:
      MiniTuple::MiniTuple(TTree*) in MiniTuple.C.o
  "TFile::TFile(char const*, char const*, char const*, int)", referenced from:
      MiniTuple::MiniTuple(TTree*) in MiniTuple.C.o
      MiniTuple::AddOutputStream(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in MiniTuple.C.o
  "TClass::GetClass(std::type_info const&, bool, bool)", referenced from:
      int TTree::SetBranchAddress<std::__1::vector<float, std::__1::allocator<float> > >(char const*, std::__1::vector<float, std::__1::allocator<float> >**, TBranch**) in MiniTuple.C.o
      int TTree::SetBranchAddress<std::__1::vector<int, std::__1::allocator<int> > >(char const*, std::__1::vector<int, std::__1::allocator<int> >**, TBranch**) in MiniTuple.C.o
      int TTree::SetBranchAddress<float>(char const*, float*, TBranch**) in MiniTuple.C.o
      int TTree::SetBranchAddress<int>(char const*, int*, TBranch**) in MiniTuple.C.o
      int TTree::SetBranchAddress<std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > >(char const*, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >**, TBranch**) in MiniTuple.C.o
  "HistSvc::Fill(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, float, float, float, float)", referenced from:
      MiniTuple::FillProbeB_region(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int) in MiniTuple.C.o
  "HistSvc::Fill(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, float, float, int, float, float, float, float, float)", referenced from:
      MiniTuple::FillProbeB_region(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int) in MiniTuple.C.o
  "HistSvc::WriteHist()", referenced from:
      MiniTuple::Finalize() in MiniTuple.C.o
  "TBuffer::GetClass(std::type_info const&)", referenced from:
      void TDirectoryFile::GetObject<TTree>(char const*, TTree*&) in MiniTuple.C.o
  "TObject::operator delete(void*)", referenced from:
      MiniTuple::MiniTuple(TTree*) in MiniTuple.C.o
      MiniTuple::AddOutputStream(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in MiniTuple.C.o
  "TStorage::ObjectAlloc(unsigned long)", referenced from:
      TObject::operator new(unsigned long) in MiniTuple.C.o
  "TDataType::GetType(std::type_info const&)", referenced from:
      int TTree::SetBranchAddress<std::__1::vector<float, std::__1::allocator<float> > >(char const*, std::__1::vector<float, std::__1::allocator<float> >**, TBranch**) in MiniTuple.C.o
      int TTree::SetBranchAddress<std::__1::vector<int, std::__1::allocator<int> > >(char const*, std::__1::vector<int, std::__1::allocator<int> >**, TBranch**) in MiniTuple.C.o
      int TTree::SetBranchAddress<float>(char const*, float*, TBranch**) in MiniTuple.C.o
      int TTree::SetBranchAddress<int>(char const*, int*, TBranch**) in MiniTuple.C.o
      int TTree::SetBranchAddress<std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > >(char const*, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >**, TBranch**) in MiniTuple.C.o
  "TTree::GetCurrentFile() const", referenced from:
      MiniTuple::~MiniTuple() in MiniTuple.C.o
  "typeinfo for TTree", referenced from:
      void TDirectoryFile::GetObject<TTree>(char const*, TTree*&) in MiniTuple.C.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/libMiniTuple.dylib] Error 1
make[1]: *** [src/CMakeFiles/MiniTuple.dir/all] Error 2
make: *** [all] Error 2

Are you using XCode’s Clang and the same C++ standard for both your project and ROOT? Are all needed ROOT libraries linked to your library (i.e. at least Core, RIO, Tree)? Another thing, are you using the same version of XCode than the ROOT binaries?

Hi Amadio, thanks for your reply.

For the clang I have used:

My MacBook$ which clang
/usr/bin/clang
My MacBook$ clang --version
Apple LLVM version 10.0.0 (clang-1000.10.44.4)
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

For the binary ROOT version I installed:

OsX 10.14 clang100 root_v6.14.06.macosx64-10.14-clang100.dmg

For the building of my native package, I used some ROOT libraries:

find_package(ROOT REQUIRED COMPONENTS RIO Net Hist Tree MathCore Gui Graf Gpad Core TMVA)

However, this package could be well compiled in my mac OS X laptop with

clang++ -Iinclude `root-config --cflags --glibs` -o main.exe ./util/main.C ./src/*.C

I couldn’t understand why it not compilable with cmake on mac OS (it works well on my ubuntu server with cmake)

Since it seems there are some packages not found when I trying to build root from source in my macOS, I pasted the cmake ../source_root_v6.14.06 results for clang and g++-8 below.

with clang:
cmake ../source_root_v6.14.06
-- The C compiler identification is AppleClang 10.0.0.10001044
-- The CXX compiler identification is AppleClang 10.0.0.10001044
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/clang
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/clang++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- ROOT default compression algorithm is zlib
-- Performing Test HAS_CXX11
-- Performing Test HAS_CXX11 - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- Found a Mac OS X System 10.14
-- Found a 64bit system
-- Found LLVM compiler collection
-- Performing Test GLIBCXX_USE_CXX11_ABI
-- Performing Test GLIBCXX_USE_CXX11_ABI - Failed
-- ROOT Platform: macosx
-- ROOT Architecture: macosx64
-- Build Type: RelWithDebInfo
-- Compiler Flags:  -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 -Wshadow -Wall -Woverloaded-virtual -fsigned-char -fno-common -Qunused-arguments -pthread -std=c++11 -stdlib=libc++ 
-- Looking for ZLib
-- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.11") 
-- Building freetype version 2.6.1 included in ROOT itself
-- Looking for PCRE
-- Could NOT find PCRE (missing: PCRE_INCLUDE_DIR) 
-- PCRE not found. Switching on builtin_pcre option
-- Building pcre version 8.37 included in ROOT itself
-- Looking for LZMA
-- LZMA not found. Switching on builtin_lzma option
-- Building LZMA version 5.2.1 included in ROOT itself
-- Looking for xxHash
-- Could NOT find xxHash (missing: xxHash_LIBRARY xxHash_INCLUDE_DIR) 
-- xxHash not found. Switching on builtin_xxhash option
-- Looking for LZ4
-- Could NOT find LZ4 (missing: LZ4_LIBRARY LZ4_INCLUDE_DIR) 
-- LZ4 not found. Switching on builtin_lz4 option
-- Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR) 
-- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR) 
-- Found PNG: /usr/X11R6/lib/libpng.dylib (found version "1.6.26") 
-- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) 
-- Building AfterImage library included in ROOT itself
-- Looking for GSL
-- FindGSL: gsl-config not found.
-- GSL not found. Set variable GSL_DIR to point to your GSL installation
--                Alternatively, you can also enable the option 'builtin_gsl' to build the GSL libraries internally'
--                For the time being switching OFF 'mathmore' option
-- Found PythonInterp: /usr/bin/python (found version "2.7.10") 
-- Found PythonLibs: /usr/lib/libpython2.7.dylib (found version "2.7.10") 
-- Found NUMPY: /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include (found version "1.8.0rc1") 
-- Looking for OpenGL
-- Found OpenGL: /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/OpenGL.framework   
-- Looking for gl2ps
-- Could NOT find GL2PS (missing: GL2PS_LIBRARY GL2PS_INCLUDE_DIR) 
-- gl2ps not found. Switching on builtin_gl2ps option
-- Looking for LibXml2
-- Found LibXml2: /usr/lib/libxml2.dylib (found version "2.9.4") 
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_INCLUDE_DIR) 
-- OpenSSL not found, switching ON 'builtin_openssl' option.
-- Looking for Castor
-- Could NOT find CASTOR (missing: CASTOR_shift_LIBRARY CASTOR_INCLUDE_DIR) 
-- Castor not found. Switching off castor option
-- Looking for MySQL
-- Could NOT find MYSQL (missing: MYSQL_INCLUDE_DIR MYSQL_LIBRARIES) 
-- MySQL not found. Switching off mysql option
-- Looking for Oracle
-- Oracle not found.
-- Oracle: You can specify includes: -DORACLE_PATH_INCLUDES=/usr/include/oracle/10.2.0.3/client
--    currently found includes: 
-- Oracle: You can specify libs: -DORACLE_PATH_LIB=/usr/lib/oracle/10.2.0.3/client/lib
--    currently found libs: ORACLE_LIBRARY_OCCI-NOTFOUND;ORACLE_LIBRARY_CLNTSH-NOTFOUND;ORACLE_LIBRARY_LNNZ-NOTFOUND
-- Oracle not found. Switching off oracle option
-- Looking for PostgreSQL
-- Could NOT find PostgreSQL (missing: POSTGRESQL_INCLUDE_DIR) 
-- PostgreSQL not found. Switching off pgsql option
-- Looking for SQLite
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
-- Found Sqlite: /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include  
-- Looking for Pythia6
-- Pythia6 not found. Switching off pythia6 option
-- Looking for Pythia8
-- Could NOT find Pythia8 (missing: PYTHIA8_INCLUDE_DIR PYTHIA8_LIBRARY) 
-- Pythia8 not found. Switching off pythia8 option
-- Looking for FFTW3
-- FFTW3 not found. Set [environment] variable FFTW_DIR to point to your FFTW3 installation
--                  Alternatively, you can also enable the option 'builtin_fftw3' to build FFTW3 internally'
--                  For the time being switching OFF 'fftw3' option
-- Looking for CFITSIO
-- Could NOT find CFITSIO (missing: CFITSIO_INCLUDE_DIR CFITSIO_LIBRARY) 
-- CFITSIO not found. You can enable the option 'builtin_cfitsio' to build the library internally'
--                    For the time being switching off 'fitsio' option
-- Looking for XROOTD
-- Found Xrootd version num: 4.8.2 (setting -DROOTXRDVERS=400080002)
--              libXrdMain not found: xproofd will be a wrapper around xrootd
--              include_dirs: /Applications/root_v6.14.06/include;/Applications/root_v6.14.06/include/private
--              libraries: /Applications/root_v6.14.06/lib/libXrdUtils.dylib;/Applications/root_v6.14.06/lib/libXrdClient.dylib;/Applications/root_v6.14.06/lib/libXrdCl.dylib
-- Could NOT find GFAL (missing: GFAL_INCLUDE_DIR SRM_IFCE_INCLUDE_DIR GFAL_LIBRARY) 
-- GFAL library not found. Set variable GFAL_DIR to point to your gfal installation
                      and the variable SRM_IFCE_DIR to the srm_ifce installation
-- For the time being switching OFF 'gfal' option
-- Looking for uuid_generate_random in uuid
-- Looking for uuid_generate_random in uuid - not found
-- Found uuid: /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include  
-- Davix not found, switching ON 'builtin_davix' option.
-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Looking for TBB
-- Could NOT find TBB (missing: TBB_ROOT_DIR TBB_INCLUDE_DIR) 
-- TBB not found. Switching on builtin_tbb option
-- Performing Test CXX_HAS_mno_rtm
-- Performing Test CXX_HAS_mno_rtm - Success
-- Looking for VDT
-- Found VDT: /Applications/root_v6.14.06/include  
-- Looking for BLAS for optional parts of TMVA
-- Looking for sgemm_
-- Looking for sgemm_ - not found
-- Looking for dgemm_
-- Looking for dgemm_ - found
-- Found BLAS: /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Accelerate.framework  
-- Enabled support for:  asimage astiff builtin_afterimage builtin_davix builtin_freetype builtin_ftgl builtin_gl2ps builtin_glew builtin_llvm builtin_clang builtin_lzma builtin_lz4 builtin_openssl builtin_pcre builtin_tbb builtin_xxhash cling cocoa cxx11 davix exceptions explicitlink gdml genvector http imt libcxx opengl pch python roofit shared sqlite ssl thread tmva tmva-cpu vdt xml xrootd
-- The ASM compiler identification is AppleClang
-- Found assembler: /Library/Developer/CommandLineTools/usr/bin/clang
-- Found libtool - /Library/Developer/CommandLineTools/usr/bin/libtool
CMake Warning (dev) at interpreter/llvm/src/CMakeLists.txt:344 (option):
  Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
  --help-policy CMP0077" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, option is clearing the
  normal variable 'BUILD_SHARED_LIBS'.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at interpreter/llvm/src/CMakeLists.txt:399 (option):
  Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
  --help-policy CMP0077" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, option is clearing the
  normal variable 'LLVM_ENABLE_ASSERTIONS'.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/local/Cellar/cmake/3.13.2/share/cmake/Modules/CheckIncludeFile.cmake:70 (message):
  Policy CMP0075 is not set: Include file check macros honor
  CMAKE_REQUIRED_LIBRARIES.  Run "cmake --help-policy CMP0075" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  CMAKE_REQUIRED_LIBRARIES is set to:

    m

  For compatibility with CMake 3.11 and below this check is ignoring it.
Call Stack (most recent call first):
  interpreter/llvm/src/cmake/config-ix.cmake:46 (check_include_file)
  interpreter/llvm/src/CMakeLists.txt:584 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Looking for backtrace
-- Looking for backtrace - found
-- backtrace facility detected in default set of libraries
-- Found Backtrace: /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include  
-- Native target architecture is X86
-- Threads disabled.
-- Doxygen disabled.
-- Go bindings disabled.
-- Found ld64 - /Library/Developer/CommandLineTools/usr/bin/ld
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
-- OCaml bindings disabled.
-- LLVM host triple: x86_64-apple-darwin18.2.0
-- LLVM default target triple: x86_64-apple-darwin18.2.0
-- Building with -fPIC
-- Constructing LLVMBuild project information
-- SysLibs: curses;/usr/lib/libz.dylib
-- Targeting X86
-- Clang version: 5.0.0
-- Cling version (from VERSION file): ROOT_0.6~dev
-- Cling will look for C++ headers in '/Library/Developer/CommandLineTools/usr/include/c++/v1' at runtime.
-- And if not found, will invoke: '/Library/Developer/CommandLineTools/usr/bin/clang++ ' for them.
-- Performing Test CXX_HAS_fno_rtti
-- Performing Test CXX_HAS_fno_rtti - Success
-- Performing Test CXX_HAS_Wno_conditional_uninitialized
-- Performing Test CXX_HAS_Wno_conditional_uninitialized - Success
-- Performing Test C_HAS_Wno_strict_overflow
-- Performing Test C_HAS_Wno_strict_overflow - Success
-- Performing Test C_HAS_Wno_maybe_uninitialized
-- Performing Test C_HAS_Wno_maybe_uninitialized - Failed
-- Performing Test C_HAS_Wno_parentheses_equality
-- Performing Test C_HAS_Wno_parentheses_equality - Success
-- Performing Test CXX_HAS_Wno_deprecated_declarations
-- Performing Test CXX_HAS_Wno_deprecated_declarations - Success
-- Performing Test CXX_HAS_Wno_shadow
-- Performing Test CXX_HAS_Wno_shadow - Success
-- Performing Test CXX_HAS_Wno_nonnull_compare
-- Performing Test CXX_HAS_Wno_nonnull_compare - Failed
-- Performing Test CXX_HAS_fno_strict_aliasing
-- Performing Test CXX_HAS_fno_strict_aliasing - Success
-- Performing Test CXX_HAS_Wno_parentheses_equality
-- Performing Test CXX_HAS_Wno_parentheses_equality - Success
-- Using TMVA-DNN with BLAS installation
-- Performing Test found_setresuid
-- Performing Test found_setresuid - Failed
-- Performing Test found_stdstringview
-- Performing Test found_stdstringview - Success
-- Performing Test found_stdexpstringview
-- Performing Test found_stdexpstringview - 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 - Failed
-- Performing Test found_attribute_always_inline
-- Performing Test found_attribute_always_inline - Success
Running /Users/cheng/Software/root/source/build/unix/compiledata.sh
Making /Users/cheng/Software/root/build_v6-14-04/include/compiledata.h
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/cheng/Software/root/build_v6-14-04
with g++-8
cmake ../source_root_v6.14.06
-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/local/bin/gcc-8
-- Check for working C compiler: /usr/local/bin/gcc-8 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/local/bin/g++-8
-- Check for working CXX compiler: /usr/local/bin/g++-8 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- ROOT default compression algorithm is zlib
-- Found GCC. Major version 8, minor version 2
-- Performing Test HAS_CXX11
-- Performing Test HAS_CXX11 - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- Found a Mac OS X System 10.14
-- Found a 64bit system
-- Found GNU compiler collection
-- Performing Test GLIBCXX_USE_CXX11_ABI
-- Performing Test GLIBCXX_USE_CXX11_ABI - Success
-- ROOT Platform: macosx
-- ROOT Architecture: macosx64
-- Build Type: RelWithDebInfo
-- Compiler Flags:  -Wno-implicit-fallthrough -Wno-noexcept-type -m64 -pipe -W -Wshadow -Wall -Woverloaded-virtual -fsigned-char -fno-common -pthread -std=c++11 
-- Looking for ZLib
-- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.11") 
-- Building freetype version 2.6.1 included in ROOT itself
-- Looking for PCRE
-- Could NOT find PCRE (missing: PCRE_INCLUDE_DIR) 
-- PCRE not found. Switching on builtin_pcre option
-- Building pcre version 8.37 included in ROOT itself
-- Looking for LZMA
-- LZMA not found. Switching on builtin_lzma option
-- Building LZMA version 5.2.1 included in ROOT itself
-- Looking for xxHash
-- Could NOT find xxHash (missing: xxHash_LIBRARY xxHash_INCLUDE_DIR) 
-- xxHash not found. Switching on builtin_xxhash option
-- Looking for LZ4
-- Could NOT find LZ4 (missing: LZ4_LIBRARY LZ4_INCLUDE_DIR) 
-- LZ4 not found. Switching on builtin_lz4 option
-- Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR) 
-- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR) 
-- Found PNG: /usr/X11R6/lib/libpng.dylib (found version "1.6.26") 
-- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) 
-- Building AfterImage library included in ROOT itself
-- Looking for GSL
-- FindGSL: gsl-config not found.
-- GSL not found. Set variable GSL_DIR to point to your GSL installation
--                Alternatively, you can also enable the option 'builtin_gsl' to build the GSL libraries internally'
--                For the time being switching OFF 'mathmore' option
-- Found PythonInterp: /usr/bin/python (found version "2.7.10") 
-- Found PythonLibs: /usr/lib/libpython2.7.dylib (found version "2.7.10") 
-- Found NUMPY: /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include (found version "1.8.0rc1") 
-- Looking for OpenGL
-- Found OpenGL: /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/OpenGL.framework   
-- Looking for gl2ps
-- Could NOT find GL2PS (missing: GL2PS_LIBRARY GL2PS_INCLUDE_DIR) 
-- gl2ps not found. Switching on builtin_gl2ps option
-- Looking for LibXml2
-- Found LibXml2: /usr/lib/libxml2.dylib (found version "2.9.4") 
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_INCLUDE_DIR) 
-- OpenSSL not found, switching ON 'builtin_openssl' option.
-- Looking for Castor
-- Could NOT find CASTOR (missing: CASTOR_shift_LIBRARY CASTOR_INCLUDE_DIR) 
-- Castor not found. Switching off castor option
-- Looking for MySQL
-- Could NOT find MYSQL (missing: MYSQL_INCLUDE_DIR MYSQL_LIBRARIES) 
-- MySQL not found. Switching off mysql option
-- Looking for Oracle
-- Oracle not found.
-- Oracle: You can specify includes: -DORACLE_PATH_INCLUDES=/usr/include/oracle/10.2.0.3/client
--    currently found includes: 
-- Oracle: You can specify libs: -DORACLE_PATH_LIB=/usr/lib/oracle/10.2.0.3/client/lib
--    currently found libs: ORACLE_LIBRARY_OCCI-NOTFOUND;ORACLE_LIBRARY_CLNTSH-NOTFOUND;ORACLE_LIBRARY_LNNZ-NOTFOUND
-- Oracle not found. Switching off oracle option
-- Looking for PostgreSQL
-- Could NOT find PostgreSQL (missing: POSTGRESQL_INCLUDE_DIR) 
-- PostgreSQL not found. Switching off pgsql option
-- Looking for SQLite
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
-- Found Sqlite: /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include  
-- Looking for Pythia6
-- Pythia6 not found. Switching off pythia6 option
-- Looking for Pythia8
-- Could NOT find Pythia8 (missing: PYTHIA8_INCLUDE_DIR PYTHIA8_LIBRARY) 
-- Pythia8 not found. Switching off pythia8 option
-- Looking for FFTW3
-- FFTW3 not found. Set [environment] variable FFTW_DIR to point to your FFTW3 installation
--                  Alternatively, you can also enable the option 'builtin_fftw3' to build FFTW3 internally'
--                  For the time being switching OFF 'fftw3' option
-- Looking for CFITSIO
-- Could NOT find CFITSIO (missing: CFITSIO_INCLUDE_DIR CFITSIO_LIBRARY) 
-- CFITSIO not found. You can enable the option 'builtin_cfitsio' to build the library internally'
--                    For the time being switching off 'fitsio' option
-- Looking for XROOTD
-- Found Xrootd version num: 4.8.2 (setting -DROOTXRDVERS=400080002)
--              libXrdMain not found: xproofd will be a wrapper around xrootd
--              include_dirs: /Applications/root_v6.14.06/include;/Applications/root_v6.14.06/include/private
--              libraries: /Applications/root_v6.14.06/lib/libXrdUtils.dylib;/Applications/root_v6.14.06/lib/libXrdClient.dylib;/Applications/root_v6.14.06/lib/libXrdCl.dylib
-- Could NOT find GFAL (missing: GFAL_INCLUDE_DIR SRM_IFCE_INCLUDE_DIR GFAL_LIBRARY) 
-- GFAL library not found. Set variable GFAL_DIR to point to your gfal installation
                      and the variable SRM_IFCE_DIR to the srm_ifce installation
-- For the time being switching OFF 'gfal' option
-- Looking for uuid_generate_random in uuid
-- Looking for uuid_generate_random in uuid - not found
-- Found uuid: /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include  
-- Davix not found, switching ON 'builtin_davix' option.
-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Looking for TBB
-- Could NOT find TBB (missing: TBB_ROOT_DIR TBB_INCLUDE_DIR) 
-- TBB not found. Switching on builtin_tbb option
-- Performing Test CXX_HAS_mno_rtm
-- Performing Test CXX_HAS_mno_rtm - Success
-- Looking for VDT
-- Found VDT: /Applications/root_v6.14.06/include  
-- Looking for BLAS for optional parts of TMVA
-- Looking for sgemm_
-- Looking for sgemm_ - not found
-- Looking for dgemm_
-- Looking for dgemm_ - found
-- Found BLAS: /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Accelerate.framework  
-- Enabled support for:  asimage astiff builtin_afterimage builtin_davix builtin_freetype builtin_ftgl builtin_gl2ps builtin_glew builtin_llvm builtin_clang builtin_lzma builtin_lz4 builtin_openssl builtin_pcre builtin_tbb builtin_xxhash cling cocoa cxx11 davix exceptions explicitlink gdml genvector http imt opengl pch python roofit shared sqlite ssl thread tmva tmva-cpu vdt xml xrootd
-- The ASM compiler identification is GNU
-- Found assembler: /usr/local/bin/gcc-8
-- Found libtool - /Library/Developer/CommandLineTools/usr/bin/libtool
CMake Warning (dev) at interpreter/llvm/src/CMakeLists.txt:344 (option):
  Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
  --help-policy CMP0077" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, option is clearing the
  normal variable 'BUILD_SHARED_LIBS'.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at interpreter/llvm/src/CMakeLists.txt:399 (option):
  Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
  --help-policy CMP0077" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, option is clearing the
  normal variable 'LLVM_ENABLE_ASSERTIONS'.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/local/Cellar/cmake/3.13.2/share/cmake/Modules/CheckIncludeFile.cmake:70 (message):
  Policy CMP0075 is not set: Include file check macros honor
  CMAKE_REQUIRED_LIBRARIES.  Run "cmake --help-policy CMP0075" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  CMAKE_REQUIRED_LIBRARIES is set to:

    m

  For compatibility with CMake 3.11 and below this check is ignoring it.
Call Stack (most recent call first):
  interpreter/llvm/src/cmake/config-ix.cmake:46 (check_include_file)
  interpreter/llvm/src/CMakeLists.txt:584 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Looking for backtrace
-- Looking for backtrace - found
-- backtrace facility detected in default set of libraries
-- Found Backtrace: /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include  
-- Native target architecture is X86
-- Threads disabled.
-- Doxygen disabled.
-- Go bindings disabled.
-- Found ld64 - /Library/Developer/CommandLineTools/usr/bin/ld
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
-- OCaml bindings disabled.
-- LLVM host triple: x86_64-apple-darwin18.2.0
-- LLVM default target triple: x86_64-apple-darwin18.2.0
-- Building with -fPIC
-- Constructing LLVMBuild project information
-- SysLibs: curses;/usr/lib/libz.dylib
-- Targeting X86
-- Clang version: 5.0.0
-- Cling version (from VERSION file): ROOT_0.6~dev
-- Cling will look for C++ headers in '/usr/local/Cellar/gcc/8.2.0/lib/gcc/8/gcc/x86_64-apple-darwin18.0.0/8.2.0/../../../../../../include/c++/8.2.0:/usr/local/Cellar/gcc/8.2.0/lib/gcc/8/gcc/x86_64-apple-darwin18.0.0/8.2.0/../../../../../../include/c++/8.2.0/x86_64-apple-darwin18.0.0:/usr/local/Cellar/gcc/8.2.0/lib/gcc/8/gcc/x86_64-apple-darwin18.0.0/8.2.0/../../../../../../include/c++/8.2.0/backward' at runtime.
-- And if not found, will invoke: '/usr/local/bin/g++-8 ' for them.
-- Performing Test CXX_HAS_Wno_maybe_uninitialized
-- Performing Test CXX_HAS_Wno_maybe_uninitialized - Success
-- Performing Test CXX_HAS_fno_rtti
-- Performing Test CXX_HAS_fno_rtti - Success
-- Performing Test C_HAS_Wno_strict_overflow
-- Performing Test C_HAS_Wno_strict_overflow - Success
-- Performing Test C_HAS_Wno_maybe_uninitialized
-- Performing Test C_HAS_Wno_maybe_uninitialized - Success
-- Performing Test C_HAS_Wno_parentheses_equality
-- Performing Test C_HAS_Wno_parentheses_equality - Success
-- Performing Test CXX_HAS_Wno_deprecated_declarations
-- Performing Test CXX_HAS_Wno_deprecated_declarations - Success
-- Performing Test CXX_HAS_Wno_shadow
-- Performing Test CXX_HAS_Wno_shadow - Success
-- Performing Test CXX_HAS_Wno_nonnull_compare
-- Performing Test CXX_HAS_Wno_nonnull_compare - Success
-- Performing Test CXX_HAS_fno_strict_aliasing
-- Performing Test CXX_HAS_fno_strict_aliasing - Success
-- Performing Test CXX_HAS_Wno_parentheses_equality
-- Performing Test CXX_HAS_Wno_parentheses_equality - Success
-- Using TMVA-DNN with BLAS installation
-- Performing Test found_setresuid
-- Performing Test found_setresuid - Failed
-- Performing Test found_stdstringview
-- Performing Test found_stdstringview - Failed
-- Performing Test found_stdexpstringview
-- Performing Test found_stdexpstringview - 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 - Failed
-- Performing Test found_attribute_always_inline
-- Performing Test found_attribute_always_inline - Success
Running /Users/cheng/Software/root/source/build/unix/compiledata.sh
Making /Users/cheng/Software/root/build_v6-14-04/include/compiledata.h
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/cheng/Software/root/build_v6-14-04

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