Error building GEANT@v4-2 during O2 build on macOS Monterey 12.5

Hello all,
I have problems building the GEANT3@v4-2 during the build of O2. The problem persist even if I try to build without geant3 using the command aliBuild build O2 --disable geant3 --defaults o2.

This is the error:

==> GEANT3 is being built (use --debug for full output): failed

ERROR: Error while executing /Users/vojtechzabloudil/alice/sw/SPECS/osx_arm64/GEANT3/v4-2-local1/ on `Vojtechs-MacBook-Pro.local’.

ERROR: Log can be found in /Users/vojtechzabloudil/alice/sw/BUILD/GEANT3-latest/log

ERROR: Please upload it to CERNBox/Dropbox if you intend to request support.

ERROR: Build directory is /Users/vojtechzabloudil/alice/sw/BUILD/GEANT3-latest/GEANT3.

log.log (14.9 KB)
The log is attached. My machine has macOS Monterey 12.5 with an M1 chip. Thanks for helping.

Vojtěch Zabloudil