Failing to build ROOT openssl

I’m trying to build root. I downloaded it from the github repo and I tried compiling it. I create a “compile” folder inside the project and run cmake from there. However I get the following error:

ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libRMySQL.so] Error 1
make[1]: *** [sql/mysql/CMakeFiles/RMySQL.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Following Failing to build ROOT I did: openssl and it does open a openssl shell.
If I write: otool -L /usr/bin/openssl I get:

/usr/lib/libssl.44.dylib (compatibility version 45.0.0, current version 45.1.0)
     /usr/lib/libcrypto.42.dylib (compatibility version 43.0.0, current version 43.0.0)
     /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent (compatibility version 1.0.0, current version 31.200.1)
     /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.200.5)

I tried deleting CMakeCache.txt and CMakeFiles and did cmake again and do the make command but still same error.

On the cmake command I get this message:

-- Found OpenSSL: /usr/local/Cellar/openssl/1.0.2q/lib/libcrypto.dylib (found version "1.0.2q")
-- Looking for MySQL
-- Found MYSQL: /usr/local/Cellar/mysql/5.7.21/include/mysql

ROOT Version: GitHub repo 15/01/2019
Platform: Mac
Compiler: Not Provided


Full Cmake message:

cmake -Dpython=ON -Dminuit2=ON -Droofit=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/root -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python ..
-- The C compiler identification is AppleClang 10.0.0.10001145
-- The CXX compiler identification is AppleClang 10.0.0.10001145
-- Check for working C compiler: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc 
-- 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: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ 
-- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/local/bin/git (found version "2.18.0")
-- ROOT default compression algorithm: zlib
-- 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:  -std=c++11 -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++
-- 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
-- Found PCRE: /usr/local/include
-- Looking for LZMA
-- Found LZMA includes at /usr/local/include
-- Found LZMA library at /usr/local/lib/liblzma.dylib
-- Looking for xxHash
-- Could NOT find xxHash (missing: xxHash_LIBRARY xxHash_INCLUDE_DIR)
-- xxHash not found. Switching on builtin_xxhash option
-- Looking for LZ4
-- Found LZ4: /usr/local/lib/liblz4.dylib (found version "1.8.3")
-- Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR)
-- Found TIFF: /usr/local/lib/libTIFF.dylib (found version "4.0.10")
-- Found PNG: /usr/local/lib/libPng.dylib (found version "1.6.36")
-- Found JPEG: /usr/local/lib/libJPEG.dylib (found version "90")
-- Building AfterImage library included in ROOT itself
-- Looking for GSL
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2")
-- Found GSL: /usr/local/include (found suitable version "2.5", minimum 
required is "1.10")
-- Looking for python
-- Found PythonInterp: /usr/bin/python (found version "2.7.10")
-- Found PythonLibs: /usr/lib/libpython2.7.dylib (found version "2.7.10")
-- Looking for numpy (python package)
-- 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: 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/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.0")
-- Found OpenSSL: /usr/local/Cellar/openssl/1.0.2q/lib/libcrypto.dylib 
(found version "1.0.2q")
-- Looking for MySQL
-- Found MYSQL: /usr/local/Cellar/mysql/5.7.21/include/mysql
-- 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
-- Found PostgreSQL: /usr/local/include
-- Looking for SQLite
-- Found Sqlite: 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/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
-- Found fftw3 includes at /usr/local/include
-- Found fftw3 library at /usr/local/lib/libfftw3.dylib
-- 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.3 (setting -DROOTXRDVERS=400080003)
--              libXrdMain not found: xproofd will be a wrapper around 
xrootd
--              include_dirs: 
/usr/local/include/xrootd;/usr/local/include/xrootd/private
--              libraries: 
/usr/local/lib/libXrdUtils.dylib;/usr/local/lib/libXrdClient.dylib;/usr/local/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
-- Checking for module 'davix>=0.6.4'
--   Found davix, version 0.7.1
-- Looking for TBB
-- Found TBB: /usr/local (found version "2019.0")
-- Looking for VDT
-- Could NOT find VDT (missing: VDT_INCLUDE_DIR VDT_LIBRARY)
-- VDT not found. Ensure that the installation of VDT is in the 
CMAKE_PREFIX_PATH
--                Switching ON 'builtin_vdt' option
-- 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: 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Accelerate.framework 

-- Enabled support for:  asimage astiff builtin_afterimage builtin_clang 
builtin_freetype builtin_ftgl builtin_gl2ps builtin_glew builtin_llvm 
builtin_vdt builtin_xxhash clad cling cocoa davix exceptions 
explicitlink fftw3 gdml http imt libcxx mathmore minuit2 mysql opengl 
pch pgsql python roofit shared sqlite ssl thread tmva tmva-cpu 
tmva-pymva vdt xml xrootd
-- The ASM compiler identification is AppleClang
-- Found assembler: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Found libtool - 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool
-- Looking for backtrace
-- Looking for backtrace - found
-- backtrace facility detected in default set of libraries
-- Found Backtrace: 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include 

-- Native target architecture is X86
-- Threads disabled.
-- Doxygen disabled.
-- Go bindings disabled.
-- Found ld64 - 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
-- 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 
'/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 __result
-- Performing Test __result - Failed
-- 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
Recording the git revision now
-- 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
-- Looking for m
-- Looking for m - not found
-- 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
-- Performing Test CXX_HAS_Wno_cast_function_type
-- Performing Test CXX_HAS_Wno_cast_function_type - Failed
-- Performing Test CXX_HAS_Wno_deprecated_register
-- Performing Test CXX_HAS_Wno_deprecated_register - Success
-- Performing Test CXX_HAS_Wno_register
-- Performing Test CXX_HAS_Wno_register - Success
-- Using TMVA-DNN with BLAS installation: 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Accelerate.framework
-- Found GSL: /usr/local/include (found version "2.5")
-- Performing Test found_setresuid
-- Performing Test found_setresuid - Failed
-- 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 - Failed
-- Performing Test found_attribute_always_inline
-- Performing Test found_attribute_always_inline - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/root/compile

It looks like you are mixing things from Homebrew with system provided packages. This is tricky to work properly. If you are using Homebrew, just do brew install root, or make sure that you pick all ROOT dependencies from either the system or Homebrew, without mixing anything. The reason is that the libraries are compiled with different compilers, may have incompatible versions, etc, which won’t work if you mix them.

Dear Amadio, thanks for your reply.

I wanted to use brew at first but after installing it I tried to compile my code that uses some root libraries and got the error described on: Standalone application compilation error with TString.h.
As nickmccoll says: “it appears to be related to upgrading to clang 9.0.0 in XCode 9.0. After upgrading root does not build at all”.
In the end, pcanal said:

We have not yet released any binary compatible with XCode 9.

XCode 9 introduced changes in the standard library that is incompatible with old version of ROOT. There is a slight chance, depending on which plugin you need and which exact version that ‘just’ reconfigure and recompiling from scratch.

If it doesn’t you will need to use the master with commit 263508429dec26449513914e71f0f71c9ce9485f or newer.

Cheers,
Philippe.

I currently have XCode 10 so I decided to build from the git repository as Philippe suggested.

Is this so? Is it still not compatible? What would be the best option to try to do? Make root installation with brew work or continue this path?

If you want to use XCode, you should not use any software from Homebrew at all. The compiler Homebrew uses is not guaranteed to be compatible with XCode. It’s not a problem with ROOT. On the other hand, if you do install ROOT using Homebrew, you can use Homebrew’s compiler to compile your code, and it should just work. Just don’t mix system and Homebrew, as it will not work. ROOT is compatible with XCode 9 and 10. The message you quote is quite old.

…and Philippe’s statement on Xcode 9 is really old - we even have Xcode 10 binaries; grab the newest 6.14, or even better: a nightly snapshot of what we will release as 6.16/00 in the coming days! Grab it from here: https://root.cern/download/nightly/

Dear Amadio,

Even if Philipe’s statement no longer applies I still have the problem on that thread.
I will then try again with homebrew if it’s better but I fear the TString.h problem so I have to solve it first.

I’m using cmake and make commands for my code, how can I

use Homebrew’s compiler to compile your code

?
Sorry about my ignorance of Mac OS (I normally use Ubuntu).

Why do you compile ROOT yourself? why not use a binary? See https://root.cern/download/nightly/ - or take ROOT from Homebrew itself.

I’m compiling ROOT because of Philipe’s answer.
Now if the answer is already out of date (PS: maybe it would be a good idea to update the thread to clarify it)… I still have the problem stated at that thread. I try to compile MY code and get:

In file included from /usr/local/root/install/include/TString.h:28:
/usr/local/root/install/include/RStringView.h:35:12: error: unknown type name 'basic_string_view'
   typedef basic_string_view<char> string_view;
           ^
/usr/local/root/install/include/RStringView.h:35:29: error: expected unqualified-id
   typedef basic_string_view<char> string_view;
                            ^
/usr/local/root/install/include/RStringView.h:36:12: error: unknown type name 'basic_string_view'
   typedef basic_string_view<char16_t> u16string_view;
           ^
/usr/local/root/install/include/RStringView.h:36:29: error: expected unqualified-id
   typedef basic_string_view<char16_t> u16string_view;
                            ^
/usr/local/root/install/include/RStringView.h:37:12: error: unknown type name 'basic_string_view'
   typedef basic_string_view<char32_t> u32string_view;
           ^
/usr/local/root/install/include/RStringView.h:37:29: error: expected unqualified-id
   typedef basic_string_view<char32_t> u32string_view;
                            ^
/usr/local/root/install/include/RStringView.h:38:12: error: unknown type name 'basic_string_view'
   typedef basic_string_view<wchar_t> wstring_view;
           ^
/usr/local/root/install/include/RStringView.h:38:29: error: expected unqualified-id
   typedef basic_string_view<wchar_t> wstring_view;
                            ^

So to sum up… Ok. I do as you say and install via: brew install root. Now, how do I solve the problem of the TString.h?

Are you using the same C++ standard ROOT was compiled with, and using the compiler that was used to compile ROOT? These two things are necessary to compile your code. From the error above it’s not possible to know, as the command line is omitted.

To compile my code I’m just using:

cmake .
make -j$(nproc)

The CMakeLists.txt starts with:

###############             cmake version          #####################
cmake_minimum_required(VERSION 2.6)

###############              Project name          #####################
project(<My Project name>)

###############            Minimal flags           #####################
set (CMAKE_CXX_FLAGS "-g3 -Wall -O0 -pthread -std=c++1y -m64 -I/cvmfs/sft.cern.ch/lcg/releases/LCG_94/ROOT/6.14.04/x86_64-slc6-gcc62-opt/include -L/cvmfs/sft.cern.ch/lcg/releases/LCG_94/ROOT/6.14.04/x86_64-slc6-gcc62-opt/lib -lCore -lImt -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lROOTDataFrame -lROOTVecOps -lTree -lTreePlayer -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lMultiProc -pthread -lm -ldl -rdynamic -L/utils/POOL_SL7/postgresql-11.1/lib/ -lpq -L/utils/POOL_SL7/libpqxx-4.0.1/lib/ -lpqxx")

if(NOT DEFINED CMAKE_MACOSX_RPATH)
  set(CMAKE_MACOSX_RPATH 0)
endif()

#######   Check the compiler and set the compile and link flags  #######
set(CMAKE_CXX_STANDARD_REQUIRED ON) 
set(CMAKE_CXX_EXTENSIONS OFF)

set(CMAKE_BUILD_TYPE Debug)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/../config/cmake")

[...] some stuff [...]

###############        Root include/lib dir        #####################
find_package(ROOT REQUIRED)
include_directories( ${ROOT_INCLUDE_DIR}  )
link_directories( ${ROOT_LIBRARY_DIR})

[...] some stuff [...]

###############             Root flags            #####################
if (CMAKE_SYSTEM_NAME MATCHES Darwin)
   EXEC_PROGRAM("sw_vers -productVersion | cut -d . -f 1-2" OUTPUT_VARIABLE MAC_OS_VERSION)
   MESSAGE("--- Found a Mac OS X System ${MAC_OS_VERSION}")
   if (CMAKE_COMPILER_IS_GNUCXX)
      MESSAGE("--- Found GNU compiler collection")

      STRING(COMPARE EQUAL "10.5" "${MAC_OS_VERSION}" MAC_OS_10_5)
      IF(MAC_OS_10_5)
        SET(CMAKE_CXX_FLAGS "-m64")
        SET(CMAKE_Fortran_FLAGS "-m64")
      ENDIF(MAC_OS_10_5)

      SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS} -flat_namespace -single_module -undefined dynamic_lookup")
      SET(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS} -flat_namespace -single_module -undefined dynamic_lookup")

      # Select flags.
      set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g")
      set(CMAKE_CXX_FLAGS_RELEASE        "-O2")
      set(CMAKE_CXX_FLAGS_DEBUG          "-g -O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline")
      set(CMAKE_CXX_FLAGS_DEBUGFULL      "-g3 -fno-inline -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common")
      set(CMAKE_CXX_FLAGS_PROFILE        "-g3 -fno-inline -ftest-coverage -fprofile-arcs")
      set(CMAKE_C_FLAGS_RELWITHDEBINFO   "-O2 -g")
      set(CMAKE_C_FLAGS_RELEASE          "-O2")
      set(CMAKE_C_FLAGS_DEBUG            "-g -O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline")
      set(CMAKE_C_FLAGS_DEBUGFULL        "-g3 -fno-inline -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common")
      set(CMAKE_C_FLAGS_PROFILE          "-g3 -fno-inline -ftest-coverage -fprofile-arcs")
 
      endif (CMAKE_COMPILER_IS_GNUCXX)

endif (CMAKE_SYSTEM_NAME MATCHES Darwin) 

[...] some stuff [...] Until the end...

Sorry I don’t know how to tell from here if I’m using the same C++ standard ROOT was compiled with, and using the compiler that was used to compile ROOT but does this information help?

PS: Sorry again, this question seams a bit basic for Mac users I guess.

Please post the output of the following commands:

$ which cmake
$ which root
$ cat $ROOTSYS/include/compiledata.h
$ which cc
$ which c++

and the file CMakeCache.txt that appears in the build directory once you configured your project. With this information we will be able to see what’s going on.

So this time I used the link https://root.cern/download/nightly/ . untar it and runned the thisroot.sh.
So to answer your questions.

> which cmake
/usr/local/bin/cmake
> which root
/usr/local/root/bin/root
> cat $ROOTSYS/include/compiledata.h
/* This file is automatically generated */
#define BUILD_ARCH "macosx64"
#define BUILD_NODE "Darwin macitois21.cern.ch 18.2.0 Darwin Kernel 
Version 18.2.0: Mon Nov 12 20:24:46 PST 2018; 
root:xnu-4903.231.4~2/RELEASE_X86_64 x86_64"
#define CXX "c++"
#define COMPILER "/Library/Developer/CommandLineTools/usr/bin/c++"
#define COMPILERVERS "c++"
#define MAKESHAREDLIB  "cd $BuildDir ; c++ -fPIC -c $Opt 
-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 -Woverloaded-virtual -fsigned-char -fno-common 
-Qunused-arguments -pthread -std=c++11 -stdlib=libc++ $IncludePath 
$SourceFiles ; c++ $Opt $ObjectFiles -dynamiclib 
-Wl,-headerpad_max_install_names -m64 -single_module 
-Wl,-dead_strip_dylibs  $LinkedLibs -o $SharedLib"
#define MAKEEXE "cd $BuildDir ; c++ -c  -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 -Woverloaded-virtual 
-fsigned-char -fno-common -Qunused-arguments -pthread -std=c++11 
-stdlib=libc++ $IncludePath $SourceFiles; c++ $ObjectFiles  -o $ExeName 
$LinkedLibs -lm    -ldl"
#define CXXOPT "-O2 -DNDEBUG"
#define CXXDEBUG "-g"
#define ROOTBUILD ""
#define LINKEDLIBS "-L$ROOTSYS/lib -lCore -lRint "
#define INCLUDEPATH "-I$ROOTSYS/include"
#define OBJEXT "o"
#define SOEXT "so"
> which cc
/usr/bin/cc
> which c++
/usr/bin/c++

When on my code I run cmake . I get:

[...]
-- Looking for Root...
-- Looking for Root... - found /usr/local/root/bin/root
-- Looking for Root... - version 6.15/03
[...]

When I now run make I get:

In file included from /usr/local/include/TNamed.h:26:
In file included from /usr/local/include/TString.h:28:
/usr/local/include/RStringView.h:35:12: error: no template named 'basic_string_view'
In file included from 
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
In file included from 
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7:
In file included from /usr/local/include/TGraph.h:24:
In file included from /usr/local/include/TNamed.h:26:
In file included from /usr/local/include/TString.h:28:
/usr/local/include/RStringView.h:35:12: error: no template named 'basic_string_view'
    typedef basic_string_view<char> string_view;   typedef 
basic_string_view<char> string_view;
            ^

            ^
/usr/local/include/RStringView.h:36:12: error: no template 
/usr/local/include/RStringView.hnamed: 36'basic_string_view':12
: error: no template named 'basic_string_view'
    typedef basic_string_view<char16_t> u16string_view;
            ^
    typedef basic_string_view<char16_t> u16string_view;
            ^
/usr/local/include/RStringView.h:37:12: error: no template named 
'basic_string_view'
    typedef basic_string_view<char32_t> u32string_view;
            ^
/usr/local/include/RStringView.h:37:12: error: no template named 
'basic_string_view'
    typedef basic_string_view<char32_t> u32string_view;
            ^
/usr/local/include/RStringView.h:38:12: error: no template named 
'basic_string_view'
    typedef basic_string_view<wchar_t> wstring_view;
            ^
/usr/local/include/RStringView.h:38:12: error: no template named 
'basic_string_view'
    typedef basic_string_view<wchar_t> wstring_view;
            ^
/usr/local/include/RStringView.h:50:28: error: no member named 
'to_string' in 'std::__1::basic_string_view<char, 
std::__1::char_traits<char> >'
       return std::stod(str.to_string(),pos);
                        ~~~ ^
/usr/local/include/RStringView.h:50:28: error: no member named 
'to_string' in 'std::__1::basic_string_view<char, 
std::__1::char_traits<char> >'
In file included from 
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
       return std::stod(str.to_string(),pos);In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h: 
~~~ ^7
:
In file included from /usr/local/include/TGraph.h:24:
In file included from /usr/local/include/TNamed.h:26:
/usr/local/include/TString.h:109:75: error: no member named 'to_string' 
in 'std::__1::basic_string_view<char, std::__1::char_traits<char> >'
    operator std::string() const { return 
std::string_view(Data(),fExtent).to_string(); }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
In file included from 
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/GenerateObs.cpp:12:
In file included from 
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/GenerateObs.h:18:
In file included from /usr/local/include/TTree.h:29:
In file included from /usr/local/include/TBranch.h:28:
In file included from /usr/local/include/TNamed.h:26:
/usr/local/include/TString.h:109:75: error: no member named 'to_string' 
in 'std::__1::basic_string_view<char, std::__1::char_traits<char> >'
    operator std::string() const { return 
std::string_view(Data(),fExtent).to_string(); }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^

I do find weird the TString.h is on ‘/usr/local/include/’ if I just untar the whole file in ‘usr/local/root/’. I think is an old version of my previous installation of root. Actually, the modification date of TString.h is march 2017.

PS: I forgot to say everything worked correctly until I updated the OS a few months ago.
PS2: root itself seams to work. I’m able to run the ‘root’ command and I can see other .root files I have

It’s difficult to tell which things are really being used in your compilation. You probably need to get rid of old ROOT installations so that they are not mixed up by accident with your current one, and you have to make sure to use the compiler from “compiledata.h” to compile your code, and use the same flags as used for ROOT, or at least the same C++ standard. The error you see is probably due to mixing C++17 with some earlier standard, like C++11.

Dear amadio,
I’ve deleted everything, removed all root related entries on .profile and did a brew uninstall of root.
I runned brew doctor the command found many root files like TStrings.h and more in a path /usr/local/include that recommended me to delete. Which I did.

I then, under the assumption I have fully removed root, runned brew install root. It is apparently working correctly.

I tried to compile again my code and I get a problem even before the TString.h issue:

In file included from
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:18:
/usr/local/Cellar/root/6.14.06/include/root/TStorage.h:86:4: error: use
of undeclared identifier 'R__likely'
    ClassDef(TStorage,0)  //Storage manager class
    ^
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:321:4: note:
expanded from macro 'ClassDef'
    _ClassDefOutline_(name,id,virtual,)   \
    ^
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:295:4: note:
expanded from macro '_ClassDefOutline_'
    _ClassDefBase_(name,id, virtual_keyword, overrd)       \
    ^
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:270:11: note:
expanded from macro '_ClassDefBase_'
       if (R__likely(recurseBlocker >= 2)) { \
           ^
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:18:
/usr/local/Cellar/root/6.14.06/include/root/TStorage.h:86:13: error:
'TStorage' does not refer to a value
    ClassDef(TStorage,0)  //Storage manager class
             ^
/usr/local/Cellar/root/6.14.06/include/root/TStorage.h:33:7: note:
declared here
class TStorage {
       ^
/usr/local/Cellar/root/6.14.06/include/root/TStorage.h:111:1: error: use
of undeclared identifier 'R__INTENTIONALLY_UNINIT_BEGIN'
R__INTENTIONALLY_UNINIT_BEGIN
^
/usr/local/Cellar/root/6.14.06/include/root/TStorage.h:113:1: error: use
of undeclared identifier 'R__INTENTIONALLY_UNINIT_END'
R__INTENTIONALLY_UNINIT_END
^
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25:
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:133:4: error:
unknown type name 'R__ALWAYS_INLINE'
    R__ALWAYS_INLINE Bool_t IsOnHeap() const { return TestBit(kIsOnHeap); }
    ^
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:133:27: error:
expected ';' at end of declaration list
    R__ALWAYS_INLINE Bool_t IsOnHeap() const { return TestBit(kIsOnHeap); }
                           ^
                           ;
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:169:30: error:
unknown type name 'Bool_t'; did you mean '::Bool_t'?
    void     SetBit(UInt_t f, Bool_t set);
                              ^~~~~~
                              ::Bool_t
/usr/local/Cellar/root/6.14.06/include/root/RtypesCore.h:59:24: note:
'::Bool_t' declared here
typedef bool           Bool_t;      //Boolean (0=false, 1=true) (bool)
                        ^
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25:
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:172:4: error:
unknown type name 'R__ALWAYS_INLINE'
    R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const { return (Bool_t)
((fBits & f) != 0); }
    ^
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:172:21: error:
duplicate member 'Bool_t'
    R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const { return (Bool_t)
((fBits & f) != 0); }
                     ^
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:133:21: note:
previous declaration is here
    R__ALWAYS_INLINE Bool_t IsOnHeap() const { return TestBit(kIsOnHeap); }
                     ^
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:172:27: error:
expected ';' at end of declaration list
    R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const { return (Bool_t)
((fBits & f) != 0); }
                           ^
                           ;
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:210:11: error:
unknown type name 'Bool_t'; did you mean '::Bool_t'?
    static Bool_t    GetObjectStat();
           ^~~~~~
           ::Bool_t
/usr/local/Cellar/root/6.14.06/include/root/RtypesCore.h:59:24: note:
'::Bool_t' declared here
typedef bool           Bool_t;      //Boolean (0=false, 1=true) (bool)
                        ^
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25:
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:211:35: error:
unknown type name 'Bool_t'; did you mean '::Bool_t'?
    static void      SetObjectStat(Bool_t stat);
                                   ^~~~~~
                                   ::Bool_t
/usr/local/Cellar/root/6.14.06/include/root/RtypesCore.h:59:24: note:
'::Bool_t' declared here
typedef bool           Bool_t;      //Boolean (0=false, 1=true) (bool)
                        ^
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25:
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:215:4: error:
unknown type name 'Bool_t'; did you mean '::Bool_t'?
    ClassDef(TObject,1)  //Basic ROOT object
    ^
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:321:4: note:
expanded from macro 'ClassDef'
    _ClassDefOutline_(name,id,virtual,)   \
    ^
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:295:4: note:
expanded from macro '_ClassDefOutline_'
    _ClassDefBase_(name,id, virtual_keyword, overrd)       \
    ^
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:267:20: note:
expanded from macro '_ClassDefBase_'
    virtual_keyword Bool_t CheckTObjectHashConsistency() const
overrd                                            \
                    ^
/usr/local/Cellar/root/6.14.06/include/root/RtypesCore.h:59:24: note:
'::Bool_t' declared here
typedef bool           Bool_t;      //Boolean (0=false, 1=true) (bool)
                        ^
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25:
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:215:4: error: use
of undeclared identifier 'R__likely'
    ClassDef(TObject,1)  //Basic ROOT object
    ^
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:321:4: note:
expanded from macro 'ClassDef'
    _ClassDefOutline_(name,id,virtual,)   \
    ^
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:295:4: note:
expanded from macro '_ClassDefOutline_'
    _ClassDefBase_(name,id, virtual_keyword, overrd)       \
    ^
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:270:11: note:
expanded from macro '_ClassDefBase_'
       if (R__likely(recurseBlocker >= 2)) { \
           ^
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25:
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:215:13: error:
'TObject' does not refer to a value
    ClassDef(TObject,1)  //Basic ROOT object
             ^
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:37:7: note:
declared here
class TObject {
       ^
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:237:8: error: use
of undeclared identifier 'R__unlikely'
    if (R__unlikely(fgObjectStat)) TObject::AddToTObjectTable(this);
        ^
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:264:8: error: use
of undeclared identifier 'R__unlikely'
    if (R__unlikely(fgObjectStat)) TObject::AddToTObjectTable(this);
        ^
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:273:8: error: use
of undeclared identifier 'R__likely'
    if (R__likely(this != &rhs)) {
        ^
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:275:11: error: use
of undeclared identifier 'IsOnHeap'
       if (IsOnHeap()) {          // test uses fBits so don't move next line
           ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
4 warnings and 20 errors generated.
make[2]: ***
[CMakeFiles/MimacTools.dir/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp.o]
Error 1
make[1]: *** [CMakeFiles/MimacTools.dir/all] Error 2
make: *** [all] Error 2

I am unsure on how to make sure I’m using the compiledata.h file nor how to know which flags where used for ROOT.

Please post the full log instead of just the error message. I’d like to see the line with the call to the compiler. I assume you are using a compiler from Homebrew and not XCode, right?

Well you seem to be correct in the sense that when I run cmake . It seams to use xcode:

cmake .
-- The C compiler identification is AppleClang 10.0.0.10001145
-- The CXX compiler identification is AppleClang 10.0.0.10001145
-- Check for working C compiler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- 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:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for fftw...
-- Found FFTW: /usr/local/lib/libfftw3.dylib
-- Looking for fftw... - fftw found
-- Looking for Root...
-- Looking for Root... - found /usr/local/bin/root
-- Looking for Root... - version 6.14/06
-- Boost version: 1.68.0
-- Found MySQL: /usr/local/lib/libmysqlclient.dylib
/usr/local/include/mysql
-- Found PostgreSQL: /utils/POOL_SL7/postgresql-11.1/lib/libpq.so
-- Found TinyXML: /usr/local/lib/libtinyxml.dylib
-- Found Pqxx: /utils/POOL_SL7/libpqxx-4.0.1/lib/libpqxx.so
--- Found a Mac OS X System 10.14
-- Configuring done
-- Generating done
-- Build files have been written to:
/Users/santos/Programs/MimacTools/analysis

> make
Scanning dependencies of target MimacTools
[  4%] Building CXX object
CMakeFiles/MimacTools.dir/Users/santos/Programs/MimacTools/acquisition/daqCommonParts/PostgresqlConnection/PostgresqlConnection.cc.o
clang: warning: -lCore: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lImt: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lRIO: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lNet: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lHist: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lGraf: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lGraf3d: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lGpad: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lROOTDataFrame: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lROOTVecOps: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lTree: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lTreePlayer: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lRint: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lPostscript: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lMatrix: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lPhysics: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lMathCore: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lThread: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lMultiProc: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lm: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -ldl: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -lpq: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -lpqxx: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: argument unused during compilation:
'-L/cvmfs/sft.cern.ch/lcg/releases/LCG_94/ROOT/6.14.04/x86_64-slc6-gcc62-opt/lib'
[-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-rdynamic'
[-Wunused-command-line-argument]
clang: warning: argument unused during compilation:
'-L/utils/POOL_SL7/postgresql-11.1/lib/' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation:
'-L/utils/POOL_SL7/libpqxx-4.0.1/lib/' [-Wunused-command-line-argument]
[  8%] Building CXX object
CMakeFiles/MimacTools.dir/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp.o
clang: warning: -lCore: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lImt: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lRIO: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lNet: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lHist: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lGraf: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lGraf3d: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lGpad: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lROOTDataFrame: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lROOTVecOps: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lTree: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lTreePlayer: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lRint: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lPostscript: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lMatrix: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lPhysics: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lMathCore: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lThread: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lMultiProc: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: -lm: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -ldl: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -lpq: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -lpqxx: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: argument unused during compilation:
'-L/cvmfs/sft.cern.ch/lcg/releases/LCG_94/ROOT/6.14.04/x86_64-slc6-gcc62-opt/lib'
[-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-rdynamic'
[-Wunused-command-line-argument]
clang: warning: argument unused during compilation:
'-L/utils/POOL_SL7/postgresql-11.1/lib/' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation:
'-L/utils/POOL_SL7/libpqxx-4.0.1/lib/' [-Wunused-command-line-argument]
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:17:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:23:
/usr/local/Cellar/root/6.14.06/include/root/RtypesCore.h:23:10: warning:
non-portable path to file '<root/RConfig.h>'; specified path differs in
case from file
       name on disk [-Wnonportable-include-path]
#include <ROOT/RConfig.h>
          ^~~~~~~~~~~~~~~~
          <root/RConfig.h>
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:17:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:23:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/RtypesCore.h:23:
/usr/local/include/ROOT/RConfig.h:23:10: warning: non-portable path to
file '<root/RConfig.h>'; specified path differs in case from file name
on disk
       [-Wnonportable-include-path]
#include <ROOT/RConfig.h>
          ^~~~~~~~~~~~~~~~
          <root/RConfig.h>
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:17:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:26:
/usr/local/Cellar/root/6.14.06/include/root/snprintf.h:13:10: warning:
non-portable path to file '<root/RConfig.h>'; specified path differs in
case from file name
       on disk [-Wnonportable-include-path]
#include <ROOT/RConfig.h>
          ^~~~~~~~~~~~~~~~
          <root/RConfig.h>
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:17:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:27:
/usr/local/Cellar/root/6.14.06/include/root/strlcpy.h:12:10: warning:
non-portable path to file '<root/RConfig.h>'; specified path differs in
case from file name
       on disk [-Wnonportable-include-path]
#include <ROOT/RConfig.h>
          ^~~~~~~~~~~~~~~~
          <root/RConfig.h>
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:18:
/usr/local/Cellar/root/6.14.06/include/root/TStorage.h:86:4: error: use
of undeclared identifier 'R__likely'
    ClassDef(TStorage,0)  //Storage manager class
    ^
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:321:4: note:
expanded from macro 'ClassDef'
    _ClassDefOutline_(name,id,virtual,)   \
    ^
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:295:4: note:
expanded from macro '_ClassDefOutline_'
    _ClassDefBase_(name,id, virtual_keyword, overrd)       \
    ^
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:270:11: note:
expanded from macro '_ClassDefBase_'
       if (R__likely(recurseBlocker >= 2)) { \
           ^
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:18:
/usr/local/Cellar/root/6.14.06/include/root/TStorage.h:86:13: error:
'TStorage' does not refer to a value
    ClassDef(TStorage,0)  //Storage manager class
             ^
/usr/local/Cellar/root/6.14.06/include/root/TStorage.h:33:7: note:
declared here
class TStorage {
       ^
/usr/local/Cellar/root/6.14.06/include/root/TStorage.h:111:1: error: use
of undeclared identifier 'R__INTENTIONALLY_UNINIT_BEGIN'
R__INTENTIONALLY_UNINIT_BEGIN
^
/usr/local/Cellar/root/6.14.06/include/root/TStorage.h:113:1: error: use
of undeclared identifier 'R__INTENTIONALLY_UNINIT_END'
R__INTENTIONALLY_UNINIT_END
^
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25:
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:133:4: error:
unknown type name 'R__ALWAYS_INLINE'
    R__ALWAYS_INLINE Bool_t IsOnHeap() const { return TestBit(kIsOnHeap); }
    ^
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:133:27: error:
expected ';' at end of declaration list
    R__ALWAYS_INLINE Bool_t IsOnHeap() const { return TestBit(kIsOnHeap); }
                           ^
                           ;
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:169:30: error:
unknown type name 'Bool_t'; did you mean '::Bool_t'?
    void     SetBit(UInt_t f, Bool_t set);
                              ^~~~~~
                              ::Bool_t
/usr/local/Cellar/root/6.14.06/include/root/RtypesCore.h:59:24: note:
'::Bool_t' declared here
typedef bool           Bool_t;      //Boolean (0=false, 1=true) (bool)
                        ^
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25:
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:172:4: error:
unknown type name 'R__ALWAYS_INLINE'
    R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const { return (Bool_t)
((fBits & f) != 0); }
    ^
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:172:21: error:
duplicate member 'Bool_t'
    R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const { return (Bool_t)
((fBits & f) != 0); }
                     ^
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:133:21: note:
previous declaration is here
    R__ALWAYS_INLINE Bool_t IsOnHeap() const { return TestBit(kIsOnHeap); }
                     ^
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:172:27: error:
expected ';' at end of declaration list
    R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const { return (Bool_t)
((fBits & f) != 0); }
                           ^
                           ;
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:210:11: error:
unknown type name 'Bool_t'; did you mean '::Bool_t'?
    static Bool_t    GetObjectStat();
           ^~~~~~
           ::Bool_t
/usr/local/Cellar/root/6.14.06/include/root/RtypesCore.h:59:24: note:
'::Bool_t' declared here
typedef bool           Bool_t;      //Boolean (0=false, 1=true) (bool)
                        ^
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25:
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:211:35: error:
unknown type name 'Bool_t'; did you mean '::Bool_t'?
    static void      SetObjectStat(Bool_t stat);
                                   ^~~~~~
                                   ::Bool_t
/usr/local/Cellar/root/6.14.06/include/root/RtypesCore.h:59:24: note:
'::Bool_t' declared here
typedef bool           Bool_t;      //Boolean (0=false, 1=true) (bool)
                        ^
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25:
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:215:4: error:
unknown type name 'Bool_t'; did you mean '::Bool_t'?
    ClassDef(TObject,1)  //Basic ROOT object
    ^
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:321:4: note:
expanded from macro 'ClassDef'
    _ClassDefOutline_(name,id,virtual,)   \
    ^
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:295:4: note:
expanded from macro '_ClassDefOutline_'
    _ClassDefBase_(name,id, virtual_keyword, overrd)       \
    ^
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:267:20: note:
expanded from macro '_ClassDefBase_'
    virtual_keyword Bool_t CheckTObjectHashConsistency() const
overrd                                            \
                    ^
/usr/local/Cellar/root/6.14.06/include/root/RtypesCore.h:59:24: note:
'::Bool_t' declared here
typedef bool           Bool_t;      //Boolean (0=false, 1=true) (bool)
                        ^
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25:
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:215:4: error: use
of undeclared identifier 'R__likely'
    ClassDef(TObject,1)  //Basic ROOT object
    ^
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:321:4: note:
expanded from macro 'ClassDef'
    _ClassDefOutline_(name,id,virtual,)   \
    ^
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:295:4: note:
expanded from macro '_ClassDefOutline_'
    _ClassDefBase_(name,id, virtual_keyword, overrd)       \
    ^
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:270:11: note:
expanded from macro '_ClassDefBase_'
       if (R__likely(recurseBlocker >= 2)) { \
           ^
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
In file included from
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24:
In file included from
/usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25:
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:215:13: error:
'TObject' does not refer to a value
    ClassDef(TObject,1)  //Basic ROOT object
             ^
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:37:7: note:
declared here
class TObject {
       ^
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:237:8: error: use
of undeclared identifier 'R__unlikely'
    if (R__unlikely(fgObjectStat)) TObject::AddToTObjectTable(this);
        ^
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:264:8: error: use
of undeclared identifier 'R__unlikely'
    if (R__unlikely(fgObjectStat)) TObject::AddToTObjectTable(this);
        ^
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:273:8: error: use
of undeclared identifier 'R__likely'
    if (R__likely(this != &rhs)) {
        ^
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:275:11: error: use
of undeclared identifier 'IsOnHeap'
       if (IsOnHeap()) {          // test uses fBits so don't move next line
           ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
4 warnings and 20 errors generated.
make[2]: ***
[CMakeFiles/MimacTools.dir/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp.o]
Error 1
make[1]: *** [CMakeFiles/MimacTools.dir/all] Error 2
make: *** [all] Error 2

The start of CMakeLists.txt is:

#  To create an Xcode project:                                         #
#         cmake -G Xcode .                                             #

###############             cmake version          #####################
cmake_minimum_required(VERSION 2.6)

###############              Project name          #####################
project(<myProjectName>)

###############            Minimal flags           #####################
##IF(${UNIX})
set (CMAKE_CXX_FLAGS "-g3 -Wall -O0 -pthread -std=c++1y -m64 -I/cvmfs/sft.cern.ch/lcg/releases/LCG_94/ROOT/6.14.04/x86_64-slc6-gcc62-opt/include -L/cvmfs/sft.cern.ch/lcg/releases/LCG_94/ROOT/6.14.04/x86_64-slc6-gcc62-opt/lib -lCore -lImt -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lROOTDataFrame -lROOTVecOps -lTree -lTreePlayer -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lMultiProc -pthread -lm -ldl -rdynamic -L/utils/POOL_SL7/postgresql-11.1/lib/ -lpq -L/utils/POOL_SL7/libpqxx-4.0.1/lib/ -lpqxx")
##ENDIF(${UNIX})

##IF(${APPLE})
##  set (CMAKE_CXX_FLAGS "-std=c++0x -g3 -Wall -fPIC -fno-common -O0")
##ENDIF(${APPLE})

if(NOT DEFINED CMAKE_MACOSX_RPATH)
  set(CMAKE_MACOSX_RPATH 0)
endif()

#######   Check the compiler and set the compile and link flags  #######
##set_target_properties(myTarget PROPERTIES
##    CXX_STANDARD 11
##    CXX_STANDARD_REQUIRED YES
##)
##set(CMAKE_CXX_STANDARD 11) 
set(CMAKE_CXX_STANDARD_REQUIRED ON) 
set(CMAKE_CXX_EXTENSIONS OFF)

set(CMAKE_BUILD_TYPE Debug)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/../config/cmake")

However the comments seam to say that to run a xcode project I should use a option I’m not using.

Why do you have this in your CMakeLists.txt? Do you have CVMFS installed?

No. You are right in that regard. I also changed the paths of postresql and libpqxx as they where not right (I have no folder POOL_SL7).

santos/~ > brew install cvmfs
Updating Homebrew...
Ignoring path homebrew-cask/
To restore the stashed changes to 
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask run:
 'cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask &amp;&amp; git 
stash pop'
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
grpcurl osx-cpu-temp
==> Updated Formulae
sphinx-doc ✔       cockroach          git-fresh gtk+3  
jenkins            juju mas                pcl                safe 
siril              topgrade           vala               vtk
basex              dartsim            graph-tool iamy  
jenv               librsvg modd               pdal               ship 
swiftformat        userspace-rcu      vim

==> Installing cvmfs from icecube-spno/icecube
Error: No available formula with the name "fuse4x" (dependency of 
icecube-spno/icecube/cvmfs)
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
 git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.

I’ve changed some lines in the CMakeLists.txt to use homebrew compiler instead of XCode as you suggested adding:

set(CMAKE_C_COMPILER "/usr/local/Cellar/gcc/8.2.0/bin/gcc-8")
set(CMAKE_CXX_COMPILER "/usr/local/Cellar/gcc/8.2.0/bin/g++-8")

Still not working (but new error):

santos/analysis &gt; cmake .
-- 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/Cellar/gcc/8.2.0/bin/gcc-8
-- Check for working C compiler: /usr/local/Cellar/gcc/8.2.0/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/Cellar/gcc/8.2.0/bin/g++-8
-- Check for working CXX compiler: /usr/local/Cellar/gcc/8.2.0/bin/g++-8 
-- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for fftw...
-- Found FFTW: /usr/local/lib/libfftw3.dylib
-- Looking for fftw... - fftw found
-- Looking for Root...
-- Looking for Root... - found /usr/local/bin/root
-- Looking for Root... - version 6.14/06
-- Boost version: 1.68.0
-- Found MySQL: /usr/local/lib/libmysqlclient.dylib
/usr/local/include/mysql
-- Found PostgreSQL: /usr/local/Cellar/postgresql/11.1_1/lib/libpq.dylib 
(found version "11.1")
-- Found TinyXML: /usr/local/lib/libtinyxml.dylib
-- Found Pqxx: /usr/local/Cellar/libpqxx/6.2.5_4/lib/libpqxx.dylib
--- Found a Mac OS X System 10.14
--- Found GNU compiler collection
-- Configuring done
-- Generating done
-- Build files have been written to: 
/Users/santos/Programs/MimacTools/analysis
santos/analysis &gt; make
Scanning dependencies of target MimacTools
[  4%] Building CXX object 
CMakeFiles/MimacTools.dir/Users/santos/Programs/MimacTools/acquisition/daqCommonParts/PostgresqlConnection/PostgresqlConnection.cc.o
/Users/santos/Programs/MimacTools/acquisition/daqCommonParts/PostgresqlConnection/PostgresqlConnection.cc: 
In static member function 'static PGresult* 
PostgresqlConnection::PQExecTimeout(PGconn*, const char*, short unsigned 
int)':
/Users/santos/Programs/MimacTools/acquisition/daqCommonParts/PostgresqlConnection/PostgresqlConnection.cc:231:16: 
warning: variable 'lastResult' set but not used [-Wunused-but-set-variable]
 PGresult   *lastResult;
 ^~~~~~~~~~
[  8%] Building CXX object 
CMakeFiles/MimacTools.dir/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp.o
In file included from 
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:17,
 from 
/usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25,
 from 
/usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24,
 from 
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7,
 from 
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
/usr/local/Cellar/root/6.14.06/include/root/TStorage.h: In member 
function 'virtual Bool_t TStorage::CheckTObjectHashConsistency() const':
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:270:11: error: 
'R__likely' was not declared in this scope
 if (R__likely(recurseBlocker &gt;= 2)) { \
 ^~~~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:295:4: note: in 
expansion of macro '_ClassDefBase_'
 _ClassDefBase_(name,id, virtual_keyword, overrd)       \
 ^~~~~~~~~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:321:4: note: in 
expansion of macro '_ClassDefOutline_'
 _ClassDefOutline_(name,id,virtual,)   \
 ^~~~~~~~~~~~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/TStorage.h:86:4: note: in 
expansion of macro 'ClassDef'
 ClassDef(TStorage,0)  //Storage manager class
 ^~~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:276:67: error: 
expected primary-expression before ')' token
::ROOT::Internal::HasConsistentHashMember(_QUOTE_(name)) 
||                                         \
^
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:295:4: note: in 
expansion of macro '_ClassDefBase_'
 _ClassDefBase_(name,id, virtual_keyword, overrd)       \
 ^~~~~~~~~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:321:4: note: in 
expansion of macro '_ClassDefOutline_'
 _ClassDefOutline_(name,id,virtual,)   \
 ^~~~~~~~~~~~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/TStorage.h:86:4: note: in 
expansion of macro 'ClassDef'
 ClassDef(TStorage,0)  //Storage manager class
 ^~~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:276:55: error: 
'_QUOTE_' was not declared in this scope
::ROOT::Internal::HasConsistentHashMember(_QUOTE_(name)) 
||                                         \
 ^~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:295:4: note: in 
expansion of macro '_ClassDefBase_'
 _ClassDefBase_(name,id, virtual_keyword, overrd)       \
 ^~~~~~~~~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:321:4: note: in 
expansion of macro '_ClassDefOutline_'
 _ClassDefOutline_(name,id,virtual,)   \
 ^~~~~~~~~~~~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/TStorage.h:86:4: note: in 
expansion of macro 'ClassDef'
 ClassDef(TStorage,0)  //Storage manager class
 ^~~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:276:55: note: 
suggested alternative: '__DATE__'
::ROOT::Internal::HasConsistentHashMember(_QUOTE_(name)) 
||                                         \
 ^~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:295:4: note: in 
expansion of macro '_ClassDefBase_'
 _ClassDefBase_(name,id, virtual_keyword, overrd)       \
 ^~~~~~~~~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:321:4: note: in 
expansion of macro '_ClassDefOutline_'
 _ClassDefOutline_(name,id,virtual,)   \
 ^~~~~~~~~~~~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/TStorage.h:86:4: note: in 
expansion of macro 'ClassDef'
 ClassDef(TStorage,0)  //Storage manager class
 ^~~~~~~~
In file included from 
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:18,
 from 
/usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25,
 from 
/usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24,
 from 
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7,
 from 
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
/usr/local/Cellar/root/6.14.06/include/root/TStorage.h: In static member 
function 'static Bool_t TStorage::FilledByObjectAlloc(volatile UInt_t*)':
/usr/local/Cellar/root/6.14.06/include/root/TStorage.h:111:1: error: 
'R__INTENTIONALLY_UNINIT_BEGIN' was not declared in this scope
R__INTENTIONALLY_UNINIT_BEGIN
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/TStorage.h:113:1: error: 
'R__INTENTIONALLY_UNINIT_END' was not declared in this scope
R__INTENTIONALLY_UNINIT_END
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/TStorage.h:114:1: warning: 
no return statement in function returning non-void [-Wreturn-type]
}
^
In file included from 
/usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25,
 from 
/usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24,
 from 
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7,
 from 
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
/usr/local/Cellar/root/6.14.06/include/root/TObject.h: At global scope:
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:133:4: error: 
'R__ALWAYS_INLINE' does not name a type
 R__ALWAYS_INLINE Bool_t IsOnHeap() const { return TestBit(kIsOnHeap); }
 ^~~~~~~~~~~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:134:4: error: 
'R__ALWAYS_INLINE' does not name a type
 R__ALWAYS_INLINE Bool_t IsZombie() const { return TestBit(kZombie); }
 ^~~~~~~~~~~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:172:4: error: 
'R__ALWAYS_INLINE' does not name a type
 R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const { return (Bool_t) 
((fBits &amp; f) != 0); }
 ^~~~~~~~~~~~~~~~
In file included from 
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:17,
 from 
/usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25,
 from 
/usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24,
 from 
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7,
 from 
/Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
/usr/local/Cellar/root/6.14.06/include/root/TObject.h: In member 
function 'virtual Bool_t TObject::CheckTObjectHashConsistency() const':
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:270:11: error: 
'R__likely' was not declared in this scope
 if (R__likely(recurseBlocker &gt;= 2)) { \
 ^~~~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:295:4: note: in 
expansion of macro '_ClassDefBase_'
 _ClassDefBase_(name,id, virtual_keyword, overrd)       \
 ^~~~~~~~~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:321:4: note: in 
expansion of macro '_ClassDefOutline_'
 _ClassDefOutline_(name,id,virtual,)   \
 ^~~~~~~~~~~~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:215:4: note: in 
expansion of macro 'ClassDef'
 ClassDef(TObject,1)  //Basic ROOT object
 ^~~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:276:67: error: 
expected primary-expression before ')' token
::ROOT::Internal::HasConsistentHashMember(_QUOTE_(name)) 
||                                         \
^
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:295:4: note: in 
expansion of macro '_ClassDefBase_'
 _ClassDefBase_(name,id, virtual_keyword, overrd)       \
 ^~~~~~~~~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:321:4: note: in 
expansion of macro '_ClassDefOutline_'
 _ClassDefOutline_(name,id,virtual,)   \
 ^~~~~~~~~~~~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:215:4: note: in 
expansion of macro 'ClassDef'
 ClassDef(TObject,1)  //Basic ROOT object
 ^~~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:276:55: error: 
'_QUOTE_' was not declared in this scope
::ROOT::Internal::HasConsistentHashMember(_QUOTE_(name)) 
||                                         \
 ^~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:295:4: note: in 
expansion of macro '_ClassDefBase_'
 _ClassDefBase_(name,id, virtual_keyword, overrd)       \
 ^~~~~~~~~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:321:4: note: in 
expansion of macro '_ClassDefOutline_'
 _ClassDefOutline_(name,id,virtual,)   \
 ^~~~~~~~~~~~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/TObject.h:215:4: note: in 
expansion of macro 'ClassDef'
 ClassDef(TObject,1)  //Basic ROOT object
 ^~~~~~~~
/usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:276:55: note: 
suggested alternative: '__DATE__'

Le 21/01/2019 à 14:34, Jose BARRACHINA a écrit :
&gt; Hola Daniel. CUando puedas me mandás el mensaje entero?
&gt;
&gt; Saludos.
&gt;
&gt; ----- Mail original -----
&gt; De: "Jose BARRACHINA" &lt;barrachina@lpsc.in2p3.fr&gt;
&gt; À: "Daniel Santos" &lt;daniel.santos@lpsc.in2p3.fr&gt;
&gt; Envoyé: Lundi 21 Janvier 2019 13:55:56
&gt; Objet: Re: make problems...
&gt;
&gt; Joya.Ya volví del medico. Voy a investigar ésto
&gt;
&gt; ----- Mail original -----
&gt; De: "Daniel Santos" &lt;daniel.santos@lpsc.in2p3.fr&gt;
&gt; À: "Jose BARRACHINA" &lt;barrachina@lpsc.in2p3.fr&gt;
&gt; Envoyé: Lundi 21 Janvier 2019 13:40:09
&gt; Objet: make problems...
&gt;
&gt; In file included from
&gt; /usr/local/Cellar/root/6.14.06/include/root/TObject.h:18:
&gt; /usr/local/Cellar/root/6.14.06/include/root/TStorage.h:86:4: error: use
&gt; of undeclared identifier 'R__likely'
&gt;      ClassDef(TStorage,0)  //Storage manager class
&gt;      ^
&gt; /usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:321:4: note:
&gt; expanded from macro 'ClassDef'
&gt;      _ClassDefOutline_(name,id,virtual,)   \
&gt;      ^
&gt; /usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:295:4: note:
&gt; expanded from macro '_ClassDefOutline_'
&gt;      _ClassDefBase_(name,id, virtual_keyword, overrd)       \
&gt;      ^
&gt; /usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:270:11: note:
&gt; expanded from macro '_ClassDefBase_'
&gt;         if (R__likely(recurseBlocker &gt;= 2)) { \
&gt;             ^
&gt; In file included from
&gt; /Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
&gt; In file included from
&gt; /Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7:
&gt; In file included from
&gt; /usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24:
&gt; In file included from
&gt; /usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25:
&gt; In file included from
&gt; /usr/local/Cellar/root/6.14.06/include/root/TObject.h:18:
&gt; /usr/local/Cellar/root/6.14.06/include/root/TStorage.h:86:13: error:
&gt; 'TStorage' does not refer to a value
&gt;      ClassDef(TStorage,0)  //Storage manager class
&gt;               ^
&gt; /usr/local/Cellar/root/6.14.06/include/root/TStorage.h:33:7: note:
&gt; declared here
&gt; class TStorage {
&gt;         ^
&gt; /usr/local/Cellar/root/6.14.06/include/root/TStorage.h:111:1: error: use
&gt; of undeclared identifier 'R__INTENTIONALLY_UNINIT_BEGIN'
&gt; R__INTENTIONALLY_UNINIT_BEGIN
&gt; ^
&gt; /usr/local/Cellar/root/6.14.06/include/root/TStorage.h:113:1: error: use
&gt; of undeclared identifier 'R__INTENTIONALLY_UNINIT_END'
&gt; R__INTENTIONALLY_UNINIT_END
&gt; ^
&gt; In file included from
&gt; /Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
&gt; In file included from
&gt; /Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7:
&gt; In file included from
&gt; /usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24:
&gt; In file included from
&gt; /usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25:
&gt; /usr/local/Cellar/root/6.14.06/include/root/TObject.h:133:4: error:
&gt; unknown type name 'R__ALWAYS_INLINE'
&gt;      R__ALWAYS_INLINE Bool_t IsOnHeap() const { return TestBit(kIsOnHeap); }
&gt;      ^
&gt; /usr/local/Cellar/root/6.14.06/include/root/TObject.h:133:27: error:
&gt; expected ';' at end of declaration list
&gt;      R__ALWAYS_INLINE Bool_t IsOnHeap() const { return TestBit(kIsOnHeap); }
&gt;                             ^
&gt;                             ;
&gt; /usr/local/Cellar/root/6.14.06/include/root/TObject.h:169:30: error:
&gt; unknown type name 'Bool_t'; did you mean '::Bool_t'?
&gt;      void     SetBit(UInt_t f, Bool_t set);
&gt;                                ^~~~~~
&gt;                                ::Bool_t
&gt; /usr/local/Cellar/root/6.14.06/include/root/RtypesCore.h:59:24: note:
&gt; '::Bool_t' declared here
&gt; typedef bool           Bool_t;      //Boolean (0=false, 1=true) (bool)
&gt;                          ^
&gt; In file included from
&gt; /Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
&gt; In file included from
&gt; /Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7:
&gt; In file included from
&gt; /usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24:
&gt; In file included from
&gt; /usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25:
&gt; /usr/local/Cellar/root/6.14.06/include/root/TObject.h:172:4: error:
&gt; unknown type name 'R__ALWAYS_INLINE'
&gt;      R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const { return (Bool_t)
&gt; ((fBits &amp; f) != 0); }
&gt;      ^
&gt; /usr/local/Cellar/root/6.14.06/include/root/TObject.h:172:21: error:
&gt; duplicate member 'Bool_t'
&gt;      R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const { return (Bool_t)
&gt; ((fBits &amp; f) != 0); }
&gt;                       ^
&gt; /usr/local/Cellar/root/6.14.06/include/root/TObject.h:133:21: note:
&gt; previous declaration is here
&gt;      R__ALWAYS_INLINE Bool_t IsOnHeap() const { return TestBit(kIsOnHeap); }
&gt;                       ^
&gt; /usr/local/Cellar/root/6.14.06/include/root/TObject.h:172:27: error:
&gt; expected ';' at end of declaration list
&gt;      R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const { return (Bool_t)
&gt; ((fBits &amp; f) != 0); }
&gt;                             ^
&gt;                             ;
&gt; /usr/local/Cellar/root/6.14.06/include/root/TObject.h:210:11: error:
&gt; unknown type name 'Bool_t'; did you mean '::Bool_t'?
&gt;      static Bool_t    GetObjectStat();
&gt;             ^~~~~~
&gt;             ::Bool_t
&gt; /usr/local/Cellar/root/6.14.06/include/root/RtypesCore.h:59:24: note:
&gt; '::Bool_t' declared here
&gt; typedef bool           Bool_t;      //Boolean (0=false, 1=true) (bool)
&gt;                          ^
&gt; In file included from
&gt; /Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
&gt; In file included from
&gt; /Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7:
&gt; In file included from
&gt; /usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24:
&gt; In file included from
&gt; /usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25:
&gt; /usr/local/Cellar/root/6.14.06/include/root/TObject.h:211:35: error:
&gt; unknown type name 'Bool_t'; did you mean '::Bool_t'?
&gt;      static void      SetObjectStat(Bool_t stat);
&gt;                                     ^~~~~~
&gt;                                     ::Bool_t
&gt; /usr/local/Cellar/root/6.14.06/include/root/RtypesCore.h:59:24: note:
&gt; '::Bool_t' declared here
&gt; typedef bool           Bool_t;      //Boolean (0=false, 1=true) (bool)
&gt;                          ^
&gt; In file included from
&gt; /Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
&gt; In file included from
&gt; /Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7:
&gt; In file included from
&gt; /usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24:
&gt; In file included from
&gt; /usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25:
&gt; /usr/local/Cellar/root/6.14.06/include/root/TObject.h:215:4: error:
&gt; unknown type name 'Bool_t'; did you mean '::Bool_t'?
&gt;      ClassDef(TObject,1)  //Basic ROOT object
&gt;      ^
&gt; /usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:321:4: note:
&gt; expanded from macro 'ClassDef'
&gt;      _ClassDefOutline_(name,id,virtual,)   \
&gt;      ^
&gt; /usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:295:4: note:
&gt; expanded from macro '_ClassDefOutline_'
&gt;      _ClassDefBase_(name,id, virtual_keyword, overrd)       \
&gt;      ^
&gt; /usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:267:20: note:
&gt; expanded from macro '_ClassDefBase_'
&gt;      virtual_keyword Bool_t CheckTObjectHashConsistency() const
&gt; overrd                                            \
&gt;                      ^
&gt; /usr/local/Cellar/root/6.14.06/include/root/RtypesCore.h:59:24: note:
&gt; '::Bool_t' declared here
&gt; typedef bool           Bool_t;      //Boolean (0=false, 1=true) (bool)
&gt;                          ^
&gt; In file included from
&gt; /Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
&gt; In file included from
&gt; /Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7:
&gt; In file included from
&gt; /usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24:
&gt; In file included from
&gt; /usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25:
&gt; /usr/local/Cellar/root/6.14.06/include/root/TObject.h:215:4: error: use
&gt; of undeclared identifier 'R__likely'
&gt;      ClassDef(TObject,1)  //Basic ROOT object
&gt;      ^
&gt; /usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:321:4: note:
&gt; expanded from macro 'ClassDef'
&gt;      _ClassDefOutline_(name,id,virtual,)   \
&gt;      ^
&gt; /usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:295:4: note:
&gt; expanded from macro '_ClassDefOutline_'
&gt;      _ClassDefBase_(name,id, virtual_keyword, overrd)       \
&gt;      ^
&gt; /usr/local/Cellar/root/6.14.06/include/root/Rtypes.h:270:11: note:
&gt; expanded from macro '_ClassDefBase_'
&gt;         if (R__likely(recurseBlocker &gt;= 2)) { \
&gt;             ^
&gt; In file included from
&gt; /Users/santos/Programs/MimacTools/analysis/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp:1:
&gt; In file included from
&gt; /Users/santos/Programs/MimacTools/analysis/DataMimacTools/include/FlashAdcFit_ObservableGenerator.h:7:
&gt; In file included from
&gt; /usr/local/Cellar/root/6.14.06/include/root/TGraph.h:24:
&gt; In file included from
&gt; /usr/local/Cellar/root/6.14.06/include/root/TNamed.h:25:
&gt; /usr/local/Cellar/root/6.14.06/include/root/TObject.h:215:13: error:
&gt; 'TObject' does not refer to a value
&gt;      ClassDef(TObject,1)  //Basic ROOT object
&gt;               ^
&gt; /usr/local/Cellar/root/6.14.06/include/root/TObject.h:37:7: note:
&gt; declared here
&gt; class TObject {
&gt;         ^
&gt; /usr/local/Cellar/root/6.14.06/include/root/TObject.h:237:8: error: use
&gt; of undeclared identifier 'R__unlikely'
&gt;      if (R__unlikely(fgObjectStat)) TObject::AddToTObjectTable(this);
&gt;          ^
&gt; /usr/local/Cellar/root/6.14.06/include/root/TObject.h:264:8: error: use
&gt; of undeclared identifier 'R__unlikely'
&gt;      if (R__unlikely(fgObjectStat)) TObject::AddToTObjectTable(this);
&gt;          ^
&gt; /usr/local/Cellar/root/6.14.06/include/root/TObject.h:273:8: error: use
&gt; of undeclared identifier 'R__likely'
&gt;      if (R__likely(this != &amp;rhs)) {
&gt;          ^
&gt; /usr/local/Cellar/root/6.14.06/include/root/TObject.h:275:11: error: use
&gt; of undeclared identifier 'IsOnHeap'
&gt;         if (IsOnHeap()) {          // test uses fBits so don't move next line
&gt;             ^
&gt; fatal error: too many errors emitted, stopping now [-ferror-limit=]
&gt; 4 warnings and 20 errors generated.
&gt; make[2]: ***
&gt; [CMakeFiles/MimacTools.dir/DataMimacTools/src/FlashAdcFit_ObservableGenerator.cpp.o]
&gt; Error 1
&gt; make[1]: *** [CMakeFiles/MimacTools.dir/all] Error 2
&gt; make: *** [all] Error 2

It kinds of seams legit to me. I se no include that defines R_likely. I’ve seen the definition might be on Rconfig.h so I’m tempted to add it and see what happens.

I’ll keep debugging for myself and will post if I get any advances.

Regards,

I solved the problem. I went back to compile the ROOT code from github. I did locate openssl and add it’s path to the .profile like:

export LDFLAGS=" -L/usr/local/Cellar/openssl/1.0.2q/lib"

I then succeded on compiling root and my code.

I have (because of my code) to compile root with the following options:

cmake -Dpython=ON -Dminuit2=ON -Droofit=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/root ..

My guess that brew doesn’t have one of this options, nor did the file on https://root.cern/download/nightly/ link…

Regards,

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