Dear all,
I cannot compile a fetched O2 on Mojave, what I did:
alibuild init O2@dev --defaults o2
cd O2/
git remote add MYOMAO https://github.com/MYOMAO/AliceO2.git
git fetch MYOMAO
git checkout -b O2forQC MYOMAO/dev
aliBuild build O2 --defaults o2
It does not find Boost and FairRoot:
-- Could NOT find Boost (missing: signals) (found suitable version "1.70.0", minimum required is "1.59")
-- Could NOT find FairRoot (missing: FairRoot_Base FairRoot_Tools FairRoot_ParBase FairRoot_GeoBase FairRoot_ParMQ FairRoot_Gen FairRoot_INC)
CMake Error at dependencies/Findms_gsl.cmake:15 (message):
MS_GSL not found
Call Stack (most recent call first):
dependencies/O2Dependencies.cmake:76 (find_package)
dependencies/CMakeLists.txt:11 (include)
CMakeLists.txt:45 (include)
I fixed Boost and FairRoot changing in dependencies/O2Dependencies.cmake
-find_package(Boost 1.59
+find_package(Boost 1.70
and
-find_package(ms_gsl MODULE)
-set_package_properties(ms_gsl
- PROPERTIES
- TYPE REQUIRED
- PURPOSE "Mainly for its span")
+#find_package(ms_gsl MODULE)
+#set_package_properties(ms_gsl
+# PROPERTIES
+# TYPE REQUIRED
+# PURPOSE "Mainly for its span")
and in dependencies/FindFairRoot.cmake
- PATHS ${FAIRROOTPATH}/include)
+ PATHS ${FAIRROOTPATH}/include
+ ${FAIRROOT_ROOT}/include
+ $ENV{FAIRROOT_ROOT}/include)
Then I get error in ms_gsl and I change in dependencies/Findms_gsl.cmake:
- message(FATAL_ERROR "MS_GSL not found")
+ message(WARNING "MS_GSL not found")
Then it does not find the recommended GLFW so I do in dependencies/O2Dependencies.cmake
-find_package(GLFW NAMES glfw3 CONFIG)
-set_package_properties(GLFW PROPERTIES TYPE RECOMMENDED)
+#find_package(GLFW NAMES glfw3 CONFIG)
+find_package(GLFW MODULE)
+#set_package_properties(GLFW PROPERTIES TYPE RECOMMENDED)
but then I get stuck with the following log which prompts again to a problem in Boost:
++ export ROOTSYS=/Users/valentinazaccolo/aliceforQC/sw/osx_x86-64/ROOT/v6-18-04-1
++ ROOTSYS=/Users/valentinazaccolo/aliceforQC/sw/osx_x86-64/ROOT/v6-18-04-1
++ unset SIMPATH
++ case $ARCHITECTURE in
++ [[ ! -n /Users/valentinazaccolo/aliceforQC/sw/osx_x86-64/boost/v1.70.0-1 ]]
++ [[ ! -n '' ]]
+++ brew --prefix zeromq
++ ZEROMQ_ROOT=/usr/local/opt/zeromq
++ [[ ! -n '' ]]
+++ brew --prefix gsl
++ GSL_ROOT=/usr/local/opt/gsl
++ [[ ! -n /Users/valentinazaccolo/aliceforQC/sw/osx_x86-64/protobuf/v3.7.1-1 ]]
++ [[ ! -n '' ]]
+++ brew --prefix glfw
++ GLFW_ROOT=/usr/local/opt/glfw
++ [[ ! -n /Users/valentinazaccolo/aliceforQC/sw/osx_x86-64/fmt/5.3.0-1 ]]
++ SONAME=dylib
++ [[ -n '' ]]
++ [[ ! -n '' ]]
++ [[ '' != 1 ]]
++ [[ '' != /Users/valentinazaccolo/aliceforQC/sw/SOURCES/O2/1.0.0/0 ]]
++ NINJA_BIN=ninja-build
++ type ninja-build
++ NINJA_BIN=ninja
++ type ninja
++ NINJA_BIN=
++ [[ -n '' ]]
++ true
++ unset NINJA_BIN
++ unset DYLD_LIBRARY_PATH
++ cmake /Users/valentinazaccolo/aliceforQC/sw/SOURCES/O2/1.0.0/0 -DCMAKE_INSTALL_PREFIX=/Users/valentinazaccolo/aliceforQC/sw/osx_x86-64/O2/1.0.0-1 -DCMAKE_BUILD_TYPE=RELWITHDEBINFO -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_CXX_STANDARD=17
-- !!!
-- !!! Using O2RecipeAdapter - this should be only temporary
-- !!!
-- !!!
-- Detected Compiler: Clang 11.0.0
-- Detected CPU: kaby-lake
CMake Warning at dependencies/FindROOT.cmake:25 (message):
vdt target added by hand. Please fix this upstream in ROOT
Call Stack (most recent call first):
dependencies/O2Dependencies.cmake:44 (find_package)
dependencies/CMakeLists.txt:11 (include)
CMakeLists.txt:45 (include)
-- Could NOT find Boost (missing: signals) (found suitable version "1.70.0", minimum required is "1.70")
-- InfoLogger found - using cmake targets in /Users/valentinazaccolo/aliceforQC/sw/osx_x86-64/libInfoLogger/v1.3.5-1/lib/cmake/InfoLogger
-- Found Boost: /Users/valentinazaccolo/aliceforQC/sw/osx_x86-64/boost/v1.70.0-1/include (found version "1.70.0")
-- Configuration 1.5.2 found
-- Monitoring 2.4.0 found
-- Found Boost: /Users/valentinazaccolo/aliceforQC/sw/osx_x86-64/boost/v1.70.0-1/include (found suitable version "1.70.0", minimum required is "1.56") found components: unit_test_framework program_options filesystem
-- Common-O2 0.0.0 found
-- RapidJSON found. Headers: /Users/valentinazaccolo/aliceforQC/sw/osx_x86-64/RapidJSON/091de040edb3355dcf2f4a18c425aec51b906f08-1/lib/cmake/RapidJSON/../../../include
-- Input BUILD_SIMULATION=OFF
-- Could NOT find pythia (missing: pythia_INCLUDE_DIR pythia_LIBRARY_SHARED pythia_DATA)
-- Could NOT find pythia6 (missing: pythia6_LIBRARY_SHARED)
-- Output BUILD_SIMULATION=OFF
-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
-- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND)
CMake Warning at dependencies/O2Dependencies.cmake:120 (find_package):
No "FindGLFW.cmake" found in CMAKE_MODULE_PATH.
Call Stack (most recent call first):
dependencies/CMakeLists.txt:11 (include)
CMakeLists.txt:45 (include)
CMake Warning (dev) at dependencies/O2Dependencies.cmake:120 (find_package):
FindGLFW.cmake must either be part of this project itself, in this case
adjust CMAKE_MODULE_PATH so that it points to the correct location inside
its source tree.
Or it must be installed by a package which has already been found via
find_package(). In this case make sure that package has indeed been found
and adjust CMAKE_MODULE_PATH to contain the location where that package has
installed FindGLFW.cmake. This must be a location provided by that
package. This error in general means that the buildsystem of this project
is relying on a Find-module without ensuring that it is actually available.
Call Stack (most recent call first):
dependencies/CMakeLists.txt:11 (include)
CMakeLists.txt:45 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Could NOT find GLEW (missing: GLEW_INCLUDE_DIRS GLEW_LIBRARIES)
CMake Warning at dependencies/O2Dependencies.cmake:134 (find_package):
By not providing "FindLLVM.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "LLVM", but
CMake did not find one.
Could not find a package configuration file provided by "LLVM" with any of
the following names:
LLVMConfig.cmake
llvm-config.cmake
Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set
"LLVM_DIR" to a directory containing one of the above files. If "LLVM"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
dependencies/CMakeLists.txt:11 (include)
CMakeLists.txt:45 (include)
-- The following OPTIONAL packages have been found:
* ZLIB
* Geant3, the legacy but not slow MC transport engine
* Geant4, more recent and more complete MC transport engine
* Geant4VMC
* VGM
* HepMC
* benchmark
* OpenGL
* OpenCL
* O2GPU
-- The following RECOMMENDED packages have been found:
* DDS
-- The following REQUIRED packages have been found:
* arrow
* Vc
* ROOT (required version >= 6.16.00)
* fmt
* FairLogger
* FairRoot
* FairMQ
* protobuf
For CCDB API
* InfoLogger
* Configuration
* Monitoring
* Boost (required version >= 1.56)
* Threads
* Common
* RapidJSON
* CURL
-- The following OPTIONAL packages have not been found:
* pythia, the Pythia8 generator
* pythia6, the Pythia6 legacy generator
* OpenMP
* GLFW
* AliRoot
For very specific use cases only
* GLEW
* LLVM
CMake Error at cmake/O2AddLibrary.cmake:88 (message):
Trying to add a dependency on non-existing target Boost::iostreams
Call Stack (most recent call first):
Common/Utils/CMakeLists.txt:11 (o2_add_library)
-- Configuring incomplete, errors occurred!
See also "/Users/valentinazaccolo/aliceforQC/sw/BUILD/8fc01e3a787af789d49eeaaa159486ba85ff33ed/O2/CMakeFiles/CMakeOutput.log".
See also "/Users/valentinazaccolo/aliceforQC/sw/BUILD/8fc01e3a787af789d49eeaaa159486ba85ff33ed/O2/CMakeFiles/CMakeError.log".
Is there any known fix for this? I know I am trying to build an old O2 with new OS which is not ideal
Thanks a lot in advance for any guidance provided.
Cheers,
Valentina