zoglauer / megalib

MEGAlib - the Medium-Energy Gamma-ray Astronomy library
http://megalibtoolkit.com
Other
42 stars 34 forks source link

ERROR: Something went wrong configuring (cmake'ing) ROOT! #71

Open jordina19 opened 2 years ago

jordina19 commented 2 years ago

Hi!! I am trying to run Geomega on my Mac, but I am experiencing the following issues.Below is my RootBuildLog.txt file.

Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1

Setting up ROOT...

Verifying chosen configuration options:

Getting ROOT... Looking for ROOT version 6.24 with latest patch on the ROOT website --- sometimes this takes a few minutes... Trying to find root_v6.24.00.source.tar.gz... Trying to find root_v6.24.02.source.tar.gz... Trying to find root_v6.24.04.source.tar.gz... Trying to find root_v6.24.06.source.tar.gz... Trying to find root_v6.24.08.source.tar.gz... Trying to find root_v6.24.10.source.tar.gz... Trying to find root_v6.24.12.source.tar.gz... Using ROOT tar ball root_v6.24.06.source.tar.gz File is already present and has same size, thus no download required! Version of ROOT is: 6.24.06 Checking for old installation... Old installation is either incompatible or incomplete. Removing root_v6.24.06... Unpacking... Configuring... Configure command: cmake -DCMAKE_INSTALL_PREFIX=.. -DCMAKE_CXX_STANDARD=11 -Dopengl=ON -Dmathmore=ON -Dminuit2=ON -Dxft=ON -Dasimage=ON -Dexplicitlink=ON -Drpath=ON -Dsoversion=ON -DPYTHON_EXECUTABLE:FILEPATH=/Library/Frameworks/Python.framework/Versions/3.9/bin/python3 -Dpython3=ON -Dalien=OFF -Dbonjour=OFF -Dcastor=OFF -Ddavix=OFF -Dfortran=OFF -Dfitsio=OFF -Dchirp=OFF -Ddcache=OFF -Dgfal=OFF -Dglite=off -Dhdfs=OFF -Dkerb5=OFF -Dldap=OFF -Dmonalisa=OFF -Dodbc=OFF -Doracle=OFF -Dpch=OFF -Dpgsql=OFF -Dpythia6=OFF -Dpythia8=OFF -Drfio=OFF -Dsapdb=OFF -Dshadowpw=OFF -Dsqlite=OFF -Dsrp=OFF -Dssl=OFF -Dxrootd=OFF ../root_v6.24.06-source -- The C compiler identification is AppleClang 11.0.0.11000033 -- The CXX compiler identification is AppleClang 11.0.0.11000033 -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- Check for working C compiler: /Library/Developer/CommandLineTools/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: /Library/Developer/CommandLineTools/usr/bin/c++ -- Check for working CXX compiler: /Library/Developer/CommandLineTools/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/bin/git (found version "2.21.1 (Apple Git-122.3)") -- Looking for Python -- Could NOT find Python3 (missing: Python3_NumPy_INCLUDE_DIRS NumPy) (found version "3.9.10") -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE
-- Found a macOS system 11.6 -- Found an x86_64 system -- Performing Test GLIBCXX_USE_CXX11_ABI -- Performing Test GLIBCXX_USE_CXX11_ABI - Failed -- ROOT Platform: macosx -- ROOT Compiler: AppleClang 11.0.0.11000033 -- ROOT Processor: x86_64 -- ROOT Architecture: macosx64 -- Build Type: 'Release' (flags = '-O2') -- 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++ -O2 -- ROOT default compression algorithm: zlib -- PyROOT will be built for version 3.9.10 -- Looking for ZLib -- Found ZLIB: /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/lib/libz.tbd (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 -- Looking for LZMA -- Looking for lzma_auto_decoder in /usr/local/lib/liblzma.dylib -- Looking for lzma_auto_decoder in /usr/local/lib/liblzma.dylib - not found -- Looking for lzma_easy_encoder in /usr/local/lib/liblzma.dylib -- Looking for lzma_easy_encoder in /usr/local/lib/liblzma.dylib - not found -- Looking for lzma_lzma_preset in /usr/local/lib/liblzma.dylib -- Looking for lzma_lzma_preset in /usr/local/lib/liblzma.dylib - not found -- Could NOT find LibLZMA (missing: LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET) (found version "5.2.5") -- LZMA not found. Switching on builtin_lzma option -- Building LZMA version 5.2.4 included in ROOT itself -- Looking for ZSTD -- Found ZSTD: /usr/local/lib/libzstd.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 -- 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) -- Looking for AfterImage -- Could NOT find AfterImage (missing: AFTERIMAGE_INCLUDE_DIR AFTERIMAGE_LIBRARIES) -- AfterImage not found. Switching on builtin_afterimage option -- Building AfterImage library included in ROOT itself -- Looking for GSL -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Could NOT find GSL: Found unsuitable version "", but required is at least "1.10" (found GSL_INCLUDE_DIR-NOTFOUND) -- GSL not found. Set variable GSL_ROOT_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 -- Looking for OpenGL -- Found OpenGL: /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework
-- Looking for GLEW -- Could NOT find GLEW (missing: GLEW_INCLUDE_DIRS GLEW_LIBRARIES) -- GLEW not found. Switching on builtin_glew option -- 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: /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/lib/libxml2.tbd (found version "2.9.4") -- Looking for MySQL -- Could NOT find MySQL (missing: MYSQL_INCLUDE_DIR MYSQL_LIBRARIES) -- MySQL not found. Switching off mysql 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 -- Could NOT find FTGL (missing: FTGL_INCLUDE_DIR FTGL_LIBRARY) -- ftgl library not found. Set variable FTGL_ROOT_DIR to point to your installation -- For the time being switching ON 'builtin_ftgl' option -- Looking for TBB -- Could NOT find TBB (missing: TBB_ROOT_DIR TBB_INCLUDE_DIR TBB_LIBRARY) (Required is at least version "2018") -- TBB not found, enabling 'builtin_tbb' option -- Performing Test CXX_HAS_mno_rtm -- Performing Test CXX_HAS_mno_rtm - Failed -- Looking for VDT -- Could NOT find Vdt (missing: VDT_INCLUDE_DIR VDT_LIBRARY) (Required is at least version "0.4") -- VDT not found. Ensure that the installation of VDT is in the CMAKE_PREFIX_PATH -- Switching ON 'builtinvdt' option -- Cannot select cudnn without selecting cuda or tmva-gpu. Option is ignored -- Looking for BLAS for optional parts of TMVA -- Looking for sgemm -- Looking for sgemm - not found -- Looking for dgemm -- Looking for dgemm - not found -- Looking for dgemm -- Looking for dgemm - not found -- Looking for sgemm -- Looking for sgemm_ - not found -- Could NOT find BLAS (missing: BLAS_LIBRARIES) -- TMVA: Numpy or Python development package not found for python /Library/Frameworks/Python.framework/Versions/3.9/bin/python3. Switching off tmva-pymva option -- Performing Test ROOT_HAVE_CXX_ATOMICS_WITHOUT_LIB -- Performing Test ROOT_HAVE_CXX_ATOMICS_WITHOUT_LIB - Failed -- Building LLVM in 'Release' mode. -- The ASM compiler identification is Clang -- Found assembler: /Library/Developer/CommandLineTools/usr/bin/cc -- Could NOT find Z3: Found unsuitable version "0.0.0", but required is at least "4.7.1" (found Z3_LIBRARIES-NOTFOUND) -- Found libtool - /Library/Developer/CommandLineTools/usr/bin/libtool -- Looking for backtrace -- Looking for backtrace - not found -- Could NOT find Backtrace (missing: Backtrace_LIBRARY) CMake Error at interpreter/llvm/src/cmake/modules/CheckAtomic.cmake:53 (message): Host compiler appears to require libatomic, but cannot find it. Call Stack (most recent call first): interpreter/llvm/src/cmake/config-ix.cmake:349 (include) interpreter/llvm/src/CMakeLists.txt:625 (include)

-- Configuring incomplete, errors occurred! See also "/Users/'User Name'/MEGAlib/Working/MEGAlib/external/root_v6.24.06/root_v6.24.06-build/CMakeFiles/CMakeOutput.log". See also "/Users/'User Name'/MEGAlib/Working/MEGAlib/external/root_v6.24.06/root_v6.24.06-build/CMakeFiles/CMakeError.log". ERROR: Something went wrong configuring (cmake'ing) ROOT!

zoglauer commented 2 years ago

Hi,

I cannot remember seeing this error before.

Did you do: xcode-select --install Before running the script?

Since this is a ROOT issue, you might also try to look in the ROOT forums.

Best, Andreas

jordina19 commented 2 years ago

Xcode was already installed on my system. Thank you for your suggestion about the ROOT forums!

zoglauer commented 2 years ago

Where you able to figure out what is wrong?

parshadkp commented 6 months ago

Hi Andreas,

I am getting a similar error while truing to run "bash setup.sh" in MEGAlib. I am on Mac OS Sonoma 14.5. I have previously been able to build root with homebrew and I am using a clean bash environment.

Here is the error:

Setting up ROOT...

Verifying chosen configuration options:

Getting ROOT... Looking for ROOT version 6.24 with latest patch on the ROOT website --- sometimes this takes a few minutes... Trying to find root_v6.24.00.source.tar.gz... Trying to find root_v6.24.02.source.tar.gz... Trying to find root_v6.24.04.source.tar.gz... Trying to find root_v6.24.06.source.tar.gz... Trying to find root_v6.24.08.source.tar.gz... Trying to find root_v6.24.10.source.tar.gz... Trying to find root_v6.24.12.source.tar.gz... Trying to find root_v6.24.14.source.tar.gz... Using ROOT tar ball root_v6.24.08.source.tar.gz File is already present and has same size, thus no download required! Version of ROOT is: 6.24.08 This version of ROOT requires a mandatory patch Checking for old installation... Old installation is either incompatible or incomplete. Removing root_v6.24.08... Unpacking... Patching... patching file 'root_v6.24.08-source/cmake/modules/SearchInstalledSoftware.cmake' Applied patch: /Users/parshad/MEGAlib/resource/patches/root_v6.24.08.patch Configuring... Configure command: cmake -DCMAKE_INSTALL_PREFIX=.. -DCMAKE_IGNORE_PATH=/opt/local;/opt/local/bin;/opt/local/include;/opt/local/include/libxml2;/opt/local/include/unicode -DCMAKE_CXX_STANDARD=11 -Dopengl=ON -Dmathmore=ON -Dminuit2=ON -Dxft=ON -Dasimage=ON -Dexplicitlink=ON -Drpath=ON -Dsoversion=ON -DPYTHON_EXECUTABLE:FILEPATH=/opt/local/bin/python3 -Dpython3=ON -Dalien=OFF -Dbonjour=OFF -Dcastor=OFF -Ddavix=OFF -Dfortran=OFF -Dfitsio=OFF -Dchirp=OFF -Ddcache=OFF -Dgfal=OFF -Dglite=off -Dhdfs=OFF -Dkerb5=OFF -Dldap=OFF -Dmonalisa=OFF -Dodbc=OFF -Doracle=OFF -Dpch=OFF -Dpgsql=OFF -Dpythia6=OFF -Dpythia8=OFF -Drfio=OFF -Dsapdb=OFF -Dshadowpw=OFF -Dsqlite=OFF -Dsrp=OFF -Dssl=OFF -Dxrootd=OFF ../root_v6.24.08-source -- The C compiler identification is AppleClang 15.0.0.15000309 -- The CXX compiler identification is AppleClang 15.0.0.15000309 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Git: /usr/bin/git (found version "2.39.3 (Apple Git-146)") -- Looking for Python -- Found Python3: /opt/local/bin/python3 (found version "3.8.19") found components: Interpreter Development NumPy Development.Module Development.Embed -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Found a macOS system 14.5 -- Found an AArch64 system -- Performing Test GLIBCXX_USE_CXX11_ABI -- Performing Test GLIBCXX_USE_CXX11_ABI - Failed -- ROOT Platform: macosx -- ROOT Compiler: AppleClang 15.0.0.15000309 -- ROOT Processor: arm64 -- ROOT Architecture: macosxarm64 -- Build Type: 'Release' (flags = '-O2') -- 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++ -O2 -- ROOT default compression algorithm: zlib -- PyROOT will be built for version 3.8.19 -- Looking for ZLib -- Found ZLIB: /opt/local/lib/libz.dylib (found version "1.2.12") -- Building freetype version 2.12.1 included in ROOT itself CMake Warning (dev) at /opt/local/share/cmake-3.29/Modules/ExternalProject.cmake:3230 (message): The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is not set. The policy's OLD behavior will be used. When using a URL download, the timestamps of extracted files should preferably be that of the time of extraction, otherwise code that depends on the extracted contents might not be rebuilt if the URL changes. The OLD behavior preserves the timestamps from the archive instead, but this is usually not what you want. Update your project to the NEW behavior or specify the DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this robustness issue. Call Stack (most recent call first): /opt/local/share/cmake-3.29/Modules/ExternalProject.cmake:4456 (_ep_add_download_command) cmake/modules/SearchInstalledSoftware.cmake:149 (ExternalProject_Add) CMakeLists.txt:219 (include) This warning is for project developers. Use -Wno-dev to suppress it.

-- Looking for PCRE -- Could NOT find PCRE (missing: PCRE_INCLUDE_DIR) -- PCRE not found. Switching on builtin_pcre option CMake Warning (dev) at /opt/local/share/cmake-3.29/Modules/ExternalProject.cmake:3230 (message): The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is not set. The policy's OLD behavior will be used. When using a URL download, the timestamps of extracted files should preferably be that of the time of extraction, otherwise code that depends on the extracted contents might not be rebuilt if the URL changes. The OLD behavior preserves the timestamps from the archive instead, but this is usually not what you want. Update your project to the NEW behavior or specify the DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this robustness issue. Call Stack (most recent call first): /opt/local/share/cmake-3.29/Modules/ExternalProject.cmake:4456 (_ep_add_download_command) builtins/pcre/CMakeLists.txt:37 (ExternalProject_Add) This warning is for project developers. Use -Wno-dev to suppress it.

-- Looking for LZMA -- Looking for lzma_auto_decoder in /opt/local/lib/liblzma.dylib -- Looking for lzma_auto_decoder in /opt/local/lib/liblzma.dylib - found -- Looking for lzma_easy_encoder in /opt/local/lib/liblzma.dylib -- Looking for lzma_easy_encoder in /opt/local/lib/liblzma.dylib - found -- Looking for lzma_lzma_preset in /opt/local/lib/liblzma.dylib -- Looking for lzma_lzma_preset in /opt/local/lib/liblzma.dylib - found -- Could NOT find LibLZMA (missing: LIBLZMA_INCLUDE_DIR) -- LZMA not found. Switching on builtin_lzma option -- Building LZMA version 5.2.4 included in ROOT itself CMake Warning (dev) at /opt/local/share/cmake-3.29/Modules/ExternalProject.cmake:3230 (message): The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is not set. The policy's OLD behavior will be used. When using a URL download, the timestamps of extracted files should preferably be that of the time of extraction, otherwise code that depends on the extracted contents might not be rebuilt if the URL changes. The OLD behavior preserves the timestamps from the archive instead, but this is usually not what you want. Update your project to the NEW behavior or specify the DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this robustness issue. Call Stack (most recent call first): /opt/local/share/cmake-3.29/Modules/ExternalProject.cmake:4456 (_ep_add_download_command) cmake/modules/SearchInstalledSoftware.cmake:239 (ExternalProject_Add) CMakeLists.txt:219 (include) This warning is for project developers. Use -Wno-dev to suppress it.

-- Looking for ZSTD -- Could NOT find ZSTD (missing: ZSTD_INCLUDE_DIR ZSTD_VERSION) -- ZSTD not found. Switching on builtin_zstd option -- Performing Test CXX_FLAG_STD_CPLUSPLUS11 -- Performing Test CXX_FLAG_STD_CPLUSPLUS11 - Success -- Performing Test C_FLAG_STD_C99 -- Performing Test C_FLAG_STD_C99 - Success -- Performing Test C_FLAG_WALL -- Performing Test C_FLAG_WALL - Success -- Performing Test CXX_FLAG_WALL -- Performing Test CXX_FLAG_WALL - Success -- Performing Test C_FLAG_WEXTRA -- Performing Test C_FLAG_WEXTRA - Success -- Performing Test CXX_FLAG_WEXTRA -- Performing Test CXX_FLAG_WEXTRA - Success -- Performing Test C_FLAG_WUNDEF -- Performing Test C_FLAG_WUNDEF - Success -- Performing Test CXX_FLAG_WUNDEF -- Performing Test CXX_FLAG_WUNDEF - Success -- Performing Test C_FLAG_WSHADOW -- Performing Test C_FLAG_WSHADOW - Success -- Performing Test CXX_FLAG_WSHADOW -- Performing Test CXX_FLAG_WSHADOW - Success -- Performing Test C_FLAG_WCAST_ALIGN -- Performing Test C_FLAG_WCAST_ALIGN - Success -- Performing Test CXX_FLAG_WCAST_ALIGN -- Performing Test CXX_FLAG_WCAST_ALIGN - Success -- Performing Test C_FLAG_WCAST_QUAL -- Performing Test C_FLAG_WCAST_QUAL - Success -- Performing Test CXX_FLAG_WCAST_QUAL -- Performing Test CXX_FLAG_WCAST_QUAL - Success -- Performing Test C_FLAG_WSTRICT_PROTOTYPES -- Performing Test C_FLAG_WSTRICT_PROTOTYPES - Success -- Looking for xxHash -- Could NOT find xxHash (missing: xxHash_INCLUDE_DIR) -- xxHash not found. Switching on builtin_xxhash option -- Looking for LZ4 -- Could NOT find LZ4 (missing: LZ4_INCLUDE_DIR) -- LZ4 not found. Switching on builtin_lz4 option -- Performing Test GIF_GifFileType_UserData -- Performing Test GIF_GifFileType_UserData - Success -- Found GIF: /opt/local/lib/libgif.dylib (found version "4") -- Found TIFF: /opt/local/lib/libtiff.dylib (found version "4.0.9") -- Found PNG: /opt/local/lib/libpng.dylib (found version "1.6.43") -- Found JPEG: /opt/local/lib/libjpeg.dylib (found version "80") -- Looking for AfterImage -- Could NOT find AfterImage (missing: AFTERIMAGE_INCLUDE_DIR AFTERIMAGE_LIBRARIES) -- AfterImage not found. Switching on builtin_afterimage option -- Building AfterImage library included in ROOT itself -- Looking for GSL -- Found GSL: /opt/homebrew/Cellar/gsl/2.7.1/include (found suitable version "2.7.1", minimum required is "1.10") -- Looking for OpenGL -- Found OpenGL: /usr/X11R6/lib/libGL.dylib -- Looking for GLEW -- Found GLEW: /opt/homebrew/lib/cmake/glew/glew-config.cmake CMake Error at cmake/modules/SearchInstalledSoftware.cmake:572 (message): Please enable builtin Glew due bug in latest CMake (use cmake option -Dbuiltin_glew=ON). Call Stack (most recent call first): CMakeLists.txt:219 (include)

-- Configuring incomplete, errors occurred! ERROR: Something went wrong configuring (cmake'ing) ROOT!

zoglauer commented 6 months ago

Can you try the main branch of MEGAlib first?

bash setup.sh --br=main

parshadkp commented 6 months ago

I tried that first. Same error.

Setting up ROOT...

Verifying chosen configuration options:

Getting ROOT... Looking for ROOT version 6.28 with latest patch on the ROOT website --- sometimes this takes a few minutes... Trying to find root_v6.28.00.source.tar.gz... Trying to find root_v6.28.02.source.tar.gz... Trying to find root_v6.28.04.source.tar.gz... Trying to find root_v6.28.06.source.tar.gz... Trying to find root_v6.28.08.source.tar.gz... Trying to find root_v6.28.10.source.tar.gz... Trying to find root_v6.28.12.source.tar.gz... Trying to find root_v6.28.14.source.tar.gz... Trying to find root_v6.28.16.source.tar.gz... Trying to find root_v6.28.18.source.tar.gz... Using ROOT tar ball root_v6.28.12.source.tar.gz File is already present and has same size, thus no download required! Version of ROOT is: 6.28.12 Checking for old installation... Old installation is either incompatible or incomplete. Removing root_v6.28.12... Unpacking... Configuring... Configure command: cmake -DCMAKE_INSTALL_PREFIX=.. -DCMAKE_IGNORE_PATH=/opt/local;/opt/local/bin;/opt/local/include;/opt/local/include/libxml2;/opt/local/include/unicode -DCMAKE_CXX_STANDARD=14 -Dopengl=ON -Dmathmore=ON -Dminuit2=ON -Dxft=ON -Dasimage=ON -Dexplicitlink=ON -Drpath=ON -Dsoversion=ON -DPYTHON_EXECUTABLE:FILEPATH=/opt/local/bin/python3 -Dpython3=ON -Dalien=OFF -Dbonjour=OFF -Dcastor=OFF -Ddavix=OFF -Dfortran=OFF -Dfitsio=OFF -Dchirp=OFF -Ddcache=OFF -Dgfal=OFF -Dglite=off -Dhdfs=OFF -Dkerb5=OFF -Dldap=OFF -Dmonalisa=OFF -Dodbc=OFF -Doracle=OFF -Dpch=OFF -Dpgsql=OFF -Dpythia6=OFF -Dpythia8=OFF -Drfio=OFF -Dsapdb=OFF -Dshadowpw=OFF -Dsqlite=OFF -Dsrp=OFF -Dssl=OFF -Dxrootd=OFF ../root_v6.28.12-source -- The C compiler identification is AppleClang 15.0.0.15000309 -- The CXX compiler identification is AppleClang 15.0.0.15000309 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Git: /usr/bin/git (found version "2.39.3 (Apple Git-146)") -- Checking internet connectivity -- Checking internet connectivity - found -- Looking for Python -- Found Python3: /opt/local/bin/python3 (found version "3.8.19") found components: Interpreter Development NumPy Development.Module Development.Embed -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Found a macOS system 14.5 -- Found an AArch64 system -- Performing Test GLIBCXX_USE_CXX11_ABI -- Performing Test GLIBCXX_USE_CXX11_ABI - Failed -- ROOT Platform: macosx -- ROOT Compiler: AppleClang 15.0.0.15000309 -- ROOT Processor: arm64 -- ROOT Architecture: macosxarm64 -- Build Type: 'Release' (flags = '-O3 -DNDEBUG') -- Compiler Flags: -std=c++14 -Wc++11-narrowing -Wsign-compare -Wsometimes-uninitialized -Wconditional-uninitialized -Wheader-guard -Warray-bounds -Wcomment -Wtautological-compare -Wstrncat-size -Wloop-analysis -Wbool-conversion -m64 -pipe -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Qunused-arguments -pthread -stdlib=libc++ -O3 -DNDEBUG -- ROOT default compression algorithm: zlib -- PyROOT will be built for version 3.8.19 -- Looking for ZLib -- Found ZLIB: /opt/local/lib/libz.dylib (found version "1.2.12") -- Looking for nlohmann/json.hpp -- Found nlohmann/json.hpp in /opt/homebrew/include;/opt/homebrew/include (found version 3.11.3) -- Building freetype version 2.12.1 included in ROOT itself -- Looking for PCRE -- Could NOT find PCRE (missing: PCRE_INCLUDE_DIR) -- PCRE not found. Switching on builtin_pcre option -- Looking for LZMA -- Looking for lzma_auto_decoder in /opt/local/lib/liblzma.dylib -- Looking for lzma_auto_decoder in /opt/local/lib/liblzma.dylib - found -- Looking for lzma_easy_encoder in /opt/local/lib/liblzma.dylib -- Looking for lzma_easy_encoder in /opt/local/lib/liblzma.dylib - found -- Looking for lzma_lzma_preset in /opt/local/lib/liblzma.dylib -- Looking for lzma_lzma_preset in /opt/local/lib/liblzma.dylib - found -- Could NOT find LibLZMA (missing: LIBLZMA_INCLUDE_DIR) -- LZMA not found. Switching on builtin_lzma option -- Building LZMA version 5.2.4 included in ROOT itself -- Looking for xxHash -- Could NOT find xxHash (missing: xxHash_INCLUDE_DIR) -- xxHash not found. Switching on builtin_xxhash option -- Looking for ZSTD -- Could NOT find ZSTD (missing: ZSTD_INCLUDE_DIR ZSTD_VERSION) -- ZSTD not found. Switching on builtin_zstd option -- Performing Test CXX_FLAG_STD_CPLUSPLUS11 -- Performing Test CXX_FLAG_STD_CPLUSPLUS11 - Success -- Performing Test C_FLAG_STD_C99 -- Performing Test C_FLAG_STD_C99 - Success -- Performing Test C_FLAG_WALL -- Performing Test C_FLAG_WALL - Success -- Performing Test CXX_FLAG_WALL -- Performing Test CXX_FLAG_WALL - Success -- Performing Test C_FLAG_WEXTRA -- Performing Test C_FLAG_WEXTRA - Success -- Performing Test CXX_FLAG_WEXTRA -- Performing Test CXX_FLAG_WEXTRA - Success -- Performing Test C_FLAG_WUNDEF -- Performing Test C_FLAG_WUNDEF - Success -- Performing Test CXX_FLAG_WUNDEF -- Performing Test CXX_FLAG_WUNDEF - Success -- Performing Test C_FLAG_WSHADOW -- Performing Test C_FLAG_WSHADOW - Success -- Performing Test CXX_FLAG_WSHADOW -- Performing Test CXX_FLAG_WSHADOW - Success -- Performing Test C_FLAG_WCAST_ALIGN -- Performing Test C_FLAG_WCAST_ALIGN - Success -- Performing Test CXX_FLAG_WCAST_ALIGN -- Performing Test CXX_FLAG_WCAST_ALIGN - Success -- Performing Test C_FLAG_WCAST_QUAL -- Performing Test C_FLAG_WCAST_QUAL - Success -- Performing Test CXX_FLAG_WCAST_QUAL -- Performing Test CXX_FLAG_WCAST_QUAL - Success -- Performing Test C_FLAG_WSTRICT_PROTOTYPES -- Performing Test C_FLAG_WSTRICT_PROTOTYPES - Success -- Looking for LZ4 -- Could NOT find LZ4 (missing: LZ4_INCLUDE_DIR) -- LZ4 not found. Switching on builtin_lz4 option -- Performing Test GIF_GifFileType_UserData -- Performing Test GIF_GifFileType_UserData - Success -- Found GIF: /opt/local/lib/libgif.dylib (found version "4") -- Found TIFF: /opt/local/lib/libtiff.dylib (found version "4.0.9") -- Found PNG: /opt/local/lib/libpng.dylib (found version "1.6.43") -- Found JPEG: /opt/local/lib/libjpeg.dylib (found version "80") -- Looking for AfterImage -- Could NOT find AfterImage (missing: AFTERIMAGE_INCLUDE_DIR AFTERIMAGE_LIBRARIES) -- AfterImage not found. Switching on builtin_afterimage option -- Building AfterImage library included in ROOT itself -- Looking for GSL -- Found GSL: /opt/homebrew/Cellar/gsl/2.7.1/include (found suitable version "2.7.1", minimum required is "1.10") -- Looking for OpenGL -- Found OpenGL: /usr/X11R6/lib/libGL.dylib -- Looking for GLEW -- Found GLEW: /opt/homebrew/lib/cmake/glew/glew-config.cmake CMake Error at cmake/modules/SearchInstalledSoftware.cmake:614 (message): Please enable builtin Glew due bug in latest CMake (use cmake option -Dbuiltin_glew=ON). Call Stack (most recent call first): CMakeLists.txt:254 (include)

-- Configuring incomplete, errors occurred! ERROR: Something went wrong configuring (cmake'ing) ROOT!

zoglauer commented 6 months ago

Then open config/build-root.sh file and in the beginning where all the similar lines are (line 20-30), add:

CONFIGUREOPTIONS+=" -Dbuiltin_glew=ON"

parshadkp commented 6 months ago

Getting some new errors now. It got stuck at 77%. There is a thread on ROOT forums for this problem (https://root-forum.cern.ch/t/root-6-30-04-build-failed-on-macos-14-4-arm64-xcode-15-3/58415/27). Is there any way I can do this?

RootBuildLog.txt

zoglauer commented 6 months ago

That's a different issue. See workaround in #89

parshadkp commented 6 months ago

Ah, classic apple. Rolling back to Xcode 15.1 seemed to fix the issue.