Error in building O2Phyics

Hi all
I am using macOS Monterey v12.6.3 (M2 model). I was building O2Physics, the build terminated giving an error in
ROOT@v6-26-10-alice5 package. I am attaching the log file for your reference CERNBox

The following is the result of aliDoctor.

SUCCESS: Package CMake will be picked up from the system.
WARNING: Package libuv 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.40.0
WARNING: printf “#include <uv/version.h>\n#if UV_VERSION_HEX < 0x12a00\n#error libuv >=1.40.0 required\n#endif\n” | c++ -I$(brew --prefix libuv)/include -xc++ - -c -o /dev/null 2>&1
WARNING:
WARNING: with the following output:
WARNING:
WARNING: libuv: :1:10: fatal error: ‘uv/version.h’ file not found
WARNING: libuv: #include <uv/version.h>
WARNING: libuv: ^~~~~~~~~~~~~~
WARNING: libuv: 1 error generated.
WARNING:
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: Required package Python-system will be picked up from the system.
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: :2:2: error: “Cannot find libwebsocket”
WARNING: libwebsockets: #error “Cannot find libwebsocket”
WARNING: libwebsockets: ^
WARNING: libwebsockets: 1 error generated.
WARNING: libwebsockets: :1:10: fatal error: ‘lws_config.h’ file not found
WARNING: libwebsockets: #include <lws_config.h>
WARNING: libwebsockets: ^~~~~~~~~~~~~~
WARNING: libwebsockets: 1 error generated.
WARNING:
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: 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 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:
SUCCESS: Required package rsync 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:

- cgal 
- AliEn-Runtime 
- pythia6 
- MPFR 
- VMC 
- O2Physics 
- O2-customization 
- ROOT 
- pythia 
- FairMQ 
- ms_gsl 
- json-c 
- MCStepLogger 
- JAliEn-ROOT 
- libInfoLogger 
- FairCMakeModules 
- GLFW 
- simulation 
- xsimd 
- Ppconsul 
- lhapdf 
- UUID 
- GEANT4 
- generators 
- O2 
- DebugGUI 
- utf8proc 
- ninja 
- GEANT3 
- GEANT4_VMC 
- googlebenchmark 
- XRootD 
- Alice-GRID-Utils 
- MLModels 
- HepMC3 
- defaults-release 
- vgm 
- curl 
- Vc 
- FairLogger 
- arrow 
- capstone 
- ITSResponse 
- AliEn-CAs 
- xjalienfs 
- KFParticle 
- Common-O2 
- re2 
- Monitoring 
- RapidJSON 
- FairRoot 
- ONNXRuntime 
- GMP 
- protobuf 
- fastjet 
- ApMon-CPP 
- flatbuffers 
- Configuration 
- VecGeom 
- fmt 
- boost 
- ZeroMQ 
- double-conversion 
- alibuild-recipe-tools 
- libjalienO2

==> The following packages will be picked up from the system:

- bz2
- GSL
- CMake
- libpng
- libxml2
- lz4
- zlib
- FreeType

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:

- libuv
- TBB
- libwebsockets
- lzma
- FFTW3

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.

Thank you in advance
With regards
Banajit