Dear all,
I was building O2Physics on MacBook with m2 chip. The installation stuck showing
==> Building O2@dev
==> O2 is being built (use --debug for full output): failed
ERROR: Error while executing /Users/banajitbarman/alice/sw/SPECS/osx_arm64/O2/dev-local1/build.sh on `BANAJITs-MacBook-Air.local’.
ERROR: Log can be found in /Users/banajitbarman/alice/sw/BUILD/O2-latest/log
ERROR: Please upload it to CERNBox/Dropbox if you intend to request support.
ERROR: Build directory is /Users/banajitbarman/alice/sw/BUILD/O2-latest/O2.
ERROR:
ERROR: Note that you have packages in development mode.
ERROR: Devel sources are not updated automatically, you must do it by hand.
ERROR: This problem might be due to one or more outdated devel sources.
ERROR: To update all development packages required for this build it is usually sufficient to do:
ERROR:
ERROR: ( cd O2 && git pull --rebase )
the link for log file is
https://cernbox.cern.ch/index.php/s/hPX5ofEEPtI4rDP
the result of aliDoctor O2Physics --defaults o2
SUCCESS: Package CMake will be picked up from the system.
SUCCESS: Package libuv will be picked up from the system.
WARNING: Package FFTW3 cannot be picked up from the system and will be built by aliBuild.
WARNING: This is due to the fact the following script fails:
WARNING:
WARNING: REQUESTED_VERSION=v3.3.9
WARNING: false
WARNING:
WARNING: with the following output:
WARNING:
WARNING: FFTW3:
WARNING:
SUCCESS: Package lz4 will be picked up from the system.
SUCCESS: Package zlib will be picked up from the system.
SUCCESS: Package FreeType will be picked up from the system.
WARNING: Package libwebsockets cannot be picked up from the system and will be built by aliBuild.
WARNING: This is due to the fact the following script fails:
WARNING:
WARNING: REQUESTED_VERSION=v3.0.1
WARNING: printf ‘#if !__has_include(<lws_config.h>)\n#error "Cannot find libwebsocket"\n#endif\n’ | c++ -I$(brew --prefix libwebsockets)/include -c -xc++ -std=c++17 - -o /dev/null
WARNING: printf ‘#include <lws_config.h>\n#if LWS_LIBRARY_VERSION_NUMBER < 2004000 || LWS_LIBRARY_VERSION_NUMBER >= 3001000\n#error "JAliEn-ROOT requires libwebsockets 3.0.x but other version was detected"\n#endif\n’ | c++ -c -x c++ -I$(brew --prefix libwebsockets)/include -std=c++17 - -o /dev/null || exit 1
WARNING:
WARNING: with the following output:
WARNING:
WARNING: libwebsockets: :3:2: error: “JAliEn-ROOT requires libwebsockets 3.0.x but other version was detected”
WARNING: libwebsockets: #error “JAliEn-ROOT requires libwebsockets 3.0.x but other version was detected”
WARNING: libwebsockets: ^
WARNING: libwebsockets: 1 error generated.
WARNING:
SUCCESS: Required package Xcode will be picked up from the system.
SUCCESS: Package libxml2 will be picked up from the system.
SUCCESS: Required package osx-system-openssl will be picked up from the system.
SUCCESS: Package libpng will be picked up from the system.
WARNING: Package lzma cannot be picked up from the system and will be built by aliBuild.
WARNING: This is due to the fact the following script fails:
WARNING:
WARNING: REQUESTED_VERSION=v5.2.3
WARNING: printf “#include <lzma.h>\n” | c++ -xc++ - -c -M 2>&1
WARNING:
WARNING: with the following output:
WARNING:
WARNING: lzma: :1:10: fatal error: ‘lzma.h’ file not found
WARNING: lzma: #include <lzma.h>
WARNING: lzma: ^~~~~~~~
WARNING: lzma: 1 error generated.
WARNING:
SUCCESS: Package bz2 will be picked up from the system.
SUCCESS: Package GSL will be picked up from the system.
WARNING: Package TBB cannot be picked up from the system and will be built by aliBuild.
WARNING: This is due to the fact the following script fails:
WARNING:
WARNING: REQUESTED_VERSION=v2021.5.0
WARNING: printf “#include <tbb/concurrent_unordered_map.h>\n static_assert(TBB_INTERFACE_VERSION >= 11009, "min version check failed");\n” | c++ -std=c++11 -xc++ - -c -o /dev/null
WARNING:
WARNING: with the following output:
WARNING:
WARNING: TBB: :1:10: fatal error: ‘tbb/concurrent_unordered_map.h’ file not found
WARNING: TBB: #include <tbb/concurrent_unordered_map.h>
WARNING: TBB: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
WARNING: TBB: 1 error generated.
WARNING:
WARNING: Package ofi cannot be picked up from the system and will be built by aliBuild.
WARNING: This is due to the fact the following script fails:
WARNING:
WARNING: REQUESTED_VERSION=v1.14.0
WARNING: pkg-config --atleast-version=1.6.0 libfabric 2>&1 && printf “#include "rdma/fabric.h"\nint main(){}” | cc -xc - -o /dev/null
WARNING:
WARNING: with the following output:
WARNING:
WARNING: ofi:
WARNING:
SUCCESS: Required package rsync will be picked up from the system.
SUCCESS: Package autotools will be picked up from the system.
SUCCESS: Required package Python-system will be picked up from the system.
==> The following packages will be built by aliBuild because
usage of a system version of it is not allowed or supported, by policy:
- GEANT3
- Common-O2
- ZeroMQ
- defaults-release
- Configuration
- xjalienfs
- arrow
- AliEn-Runtime
- generators
- XRootD
- HepMC3
- re2
- GLFW
- FairCMakeModules
- asiofi
- curl
- Vc
- flatbuffers
- AliEn-CAs
- FairMQ
- VecGeom
- GEANT4_VMC
- Ppconsul
- DebugGUI
- MCStepLogger
- fmt
- simulation
- capstone
- Alice-GRID-Utils
- utf8proc
- ROOT
- protobuf
- UUID
- O2-customization
- Monitoring
- pythia
- ms_gsl
- KFParticle
- pythia6
- boost
- json-c
- libInfoLogger
- lhapdf
- asio
- O2Physics
- ninja
- VMC
- googlebenchmark
- O2
- RapidJSON
- libjalienO2
- FairLogger
- alibuild-recipe-tools
- GMP
- double-conversion
- FairRoot
- ONNXRuntime
- cgal
- fastjet
- MPFR
- ApMon-CPP
- vgm
- MLModels
- JAliEn-ROOT
- GEANT4
==> The following packages will be picked up from the system:
- libuv
- libpng
- autotools
- lz4
- bz2
- FreeType
- GSL
- zlib
- CMake
- libxml2
If this is not you want, you have to uninstall / unload them.
==> The following packages will be built by aliBuild because they couldn’t be picked up from the system:
- FFTW3
- ofi
- TBB
- lzma
- libwebsockets
This is not a real issue, but it might take longer the first time you invoke aliBuild.
Look at the error messages above to get hints on what packages you need to install separately.