problems building o2 - MacOS - AEGIS@v1.4

Hi everybody,

I am doing a clean installation of o2, my system:

iMac macOS Big Sur 11.2.1
Xcode: 12.4 (17801)
command Line Tools 12.4

when I use

aliBuild build O2 --defaults o2

the installation stops with

==> Building AEGIS@v1.4
==> AEGIS is being built (use --debug for full output): failed
ERROR: Error while executing /Users/ejgarcia/alice/sw/SPECS/osx_x86-64/AEGIS/v1.4-1/build.sh on `Edmundos-iMac.local’.
ERROR: Log can be found in /Users/ejgarcia/alice/sw/BUILD/AEGIS-latest/log
ERROR: Please upload it to CERNBox/Dropbox if you intend to request support.
ERROR: Build directory is /Users/ejgarcia/alice/sw/BUILD/AEGIS-latest/AEGIS.

I am attaching the error log file.

I appreciate any input to solve this problem.

Regards, Edmundo

Log

++ gfortran --version
+++ grep -i fortran
+++ sed -e ‘s/.* //’
+++ cut -d. -f1
++ FVERSION=10
++ SPECIALFFLAGS=
++ ‘[’ 10 -ge 10 ‘]’
++ echo ‘Fortran version 10’
Fortran version 10
++ SPECIALFFLAGS=1
++ cmake /Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4 -DCMAKE_INSTALL_PREFIX=/Users/ejgarcia/alice/sw/INSTALLROOT/cf6edd433f584ffc5ed3f65c83bf429fdd8b0567/osx_x86-64/AEGIS/v1.4-1 -DCMAKE_BUILD_TYPE=RELWITHDEBINFO -DCMAKE_SKIP_RPATH=TRUE -DCMAKE_Fortran_FLAGS=-fallow-argument-mismatch
– The C compiler identification is AppleClang 12.0.0.12000032
– The CXX compiler identification is AppleClang 12.0.0.12000032
– 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
– The Fortran compiler identification is GNU 10.2.0
– Checking whether Fortran compiler has -isysroot
– Checking whether Fortran compiler has -isysroot - yes
– Checking whether Fortran compiler supports OSX deployment target flag
– Checking whether Fortran compiler supports OSX deployment target flag - yes
– Detecting Fortran compiler ABI info
– Detecting Fortran compiler ABI info - done
– Check for working Fortran compiler: /usr/local/bin/gfortran - skipped
– Checking whether /usr/local/bin/gfortran supports Fortran 90
– Checking whether /usr/local/bin/gfortran supports Fortran 90 - yes
CMake Warning (dev) at TEPEMGEN/CMakeLists.txt:10 (find_package):
Policy CMP0074 is not set: find_package uses _ROOT variables.
Run “cmake --help-policy CMP0074” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

Environment variable ROOT_ROOT is set to:

/Users/ejgarcia/alice/sw/osx_x86-64/ROOT/v6-20-08-alice1-1

For compatibility, CMake is ignoring the variable.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at GeneratorCosmics/CMakeLists.txt:10 (find_package):
Policy CMP0074 is not set: find_package uses _ROOT variables.
Run “cmake --help-policy CMP0074” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

Environment variable ROOT_ROOT is set to:

/Users/ejgarcia/alice/sw/osx_x86-64/ROOT/v6-20-08-alice1-1

For compatibility, CMake is ignoring the variable.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at GeneratorParam/CMakeLists.txt:10 (find_package):
Policy CMP0074 is not set: find_package uses _ROOT variables.
Run “cmake --help-policy CMP0074” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

Environment variable ROOT_ROOT is set to:

/Users/ejgarcia/alice/sw/osx_x86-64/ROOT/v6-20-08-alice1-1

For compatibility, CMake is ignoring the variable.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at GeneratorSlowNucleons/CMakeLists.txt:10 (find_package):
Policy CMP0074 is not set: find_package uses _ROOT variables.
Run “cmake --help-policy CMP0074” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

Environment variable ROOT_ROOT is set to:

/Users/ejgarcia/alice/sw/osx_x86-64/ROOT/v6-20-08-alice1-1

For compatibility, CMake is ignoring the variable.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at GeneratorSpectators/CMakeLists.txt:10 (find_package):
Policy CMP0074 is not set: find_package uses _ROOT variables.
Run “cmake --help-policy CMP0074” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

Environment variable ROOT_ROOT is set to:

/Users/ejgarcia/alice/sw/osx_x86-64/ROOT/v6-20-08-alice1-1

For compatibility, CMake is ignoring the variable.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at THijing/CMakeLists.txt:10 (find_package):
Policy CMP0074 is not set: find_package uses _ROOT variables.
Run “cmake --help-policy CMP0074” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

Environment variable ROOT_ROOT is set to:

/Users/ejgarcia/alice/sw/osx_x86-64/ROOT/v6-20-08-alice1-1

For compatibility, CMake is ignoring the variable.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at TDPMjet/CMakeLists.txt:10 (find_package):
Policy CMP0074 is not set: find_package uses _ROOT variables.
Run “cmake --help-policy CMP0074” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

Environment variable ROOT_ROOT is set to:

/Users/ejgarcia/alice/sw/osx_x86-64/ROOT/v6-20-08-alice1-1

For compatibility, CMake is ignoring the variable.
This warning is for project developers. Use -Wno-dev to suppress it.

– Configuring done
CMake Warning (dev):
Policy CMP0068 is not set: RPATH settings on macOS do not affect
install_name. Run “cmake --help-policy CMP0068” for policy details. Use
the cmake_policy command to set the policy and suppress this warning.

For compatibility with older versions of CMake, the install_name fields for
the following targets are still affected by RPATH settings:

GeneratorCosmics
GeneratorParam
GeneratorSlowNucleons
GeneratorSpectators
MICROCERN
TDPMjet
TEPEMGEN
THijing

This warning is for project developers. Use -Wno-dev to suppress it.

– Generating done
– Build files have been written to: /Users/ejgarcia/alice/sw/BUILD/cf6edd433f584ffc5ed3f65c83bf429fdd8b0567/AEGIS
++ cmake --build . – -j16 install
[ 1%] Generating G__GeneratorCosmics.cxx, libGeneratorCosmics_rdict.pcm, libGeneratorCosmics.rootmap
[ 3%] Generating G__GeneratorParam.cxx, libGeneratorParam_rdict.pcm, libGeneratorParam.rootmap
[ 5%] Generating G__GeneratorSlowNucleons.cxx, libGeneratorSlowNucleons_rdict.pcm, libGeneratorSlowNucleons.rootmap
[ 6%] Generating G__GeneratorSpectators.cxx, libGeneratorSpectators_rdict.pcm, libGeneratorSpectators.rootmap
[ 8%] Generating G__TDPMjet.cxx, libTDPMjet_rdict.pcm, libTDPMjet.rootmap
Scanning dependencies of target MICROCERN
[ 13%] Building Fortran object MICROCERN/CMakeFiles/MICROCERN.dir/cltou.F.o
[ 13%] Building Fortran object MICROCERN/CMakeFiles/MICROCERN.dir/abend.F.o
[ 13%] Building Fortran object MICROCERN/CMakeFiles/MICROCERN.dir/cfill.F.o
[ 15%] Building C object MICROCERN/CMakeFiles/MICROCERN.dir/dummies.c.o
[ 16%] Building C object MICROCERN/CMakeFiles/MICROCERN.dir/fchput.c.o
[ 18%] Building C object MICROCERN/CMakeFiles/MICROCERN.dir/fchtak.c.o
[ 20%] Building Fortran object MICROCERN/CMakeFiles/MICROCERN.dir/fint.F.o
[ 22%] Building Fortran object MICROCERN/CMakeFiles/MICROCERN.dir/gamma.F.o
[ 23%] Building Fortran object MICROCERN/CMakeFiles/MICROCERN.dir/gamma64.F.o
[ 25%] Building Fortran object MICROCERN/CMakeFiles/MICROCERN.dir/gauss.F.o
[ 27%] Building Fortran object MICROCERN/CMakeFiles/MICROCERN.dir/gauss64.F.o
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/fint.F:39:72:

39 | IF(X-ENT(LOCC)) 12, 20, 13
| 1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/gamma64.F:53:72:

53 | 1 U=U+1
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 1 at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/gamma64.F:57:72:

57 | 2 F=F*U
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 2 at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/gamma64.F:66:72:

66 | 3 B1=B0
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 3 at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/gausscod.inc:32:72:

32 | 3 S8=S8+W(I)*(F(C1+U)+F(C1-U))
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 3 at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/gausscod.inc:36:72:

36 | 4 S16=S16+W(I)*(F(C1+U)+F(C1-U))
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 4 at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/gausscod.inc:32:72:

32 | 3 S8=S8+W(I)*(F(C1+U)+F(C1-U))
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 3 at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/gausscod.inc:36:72:

36 | 4 S16=S16+W(I)*(F(C1+U)+F(C1-U))
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 4 at (1)
[ 28%] Building C object MICROCERN/CMakeFiles/MICROCERN.dir/geteni.c.o
[ 30%] Building Fortran object MICROCERN/CMakeFiles/MICROCERN.dir/getenvf.F.o
[ 32%] Building Fortran object MICROCERN/CMakeFiles/MICROCERN.dir/kerset.F.o
[ 33%] Building C object MICROCERN/CMakeFiles/MICROCERN.dir/lnblnk.c.o
[ 35%] Building Fortran object MICROCERN/CMakeFiles/MICROCERN.dir/mtlprt.F.o
[ 37%] Building Fortran object MICROCERN/CMakeFiles/MICROCERN.dir/mtlset.F.o
[ 38%] Building Fortran object MICROCERN/CMakeFiles/MICROCERN.dir/sortzv.F.o
[ 40%] Building Fortran object MICROCERN/CMakeFiles/MICROCERN.dir/ufill.F.o
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/sortzv.F:17:72:

17 | 1 INDEX(I)=I
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 1 at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/sortzv.F:20:72:

20 | IF (MODE) 10,20,30
| 1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/sortzv.F:35:72:

35 | 41 INDEX(K) = ISWAP
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 41 at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/sortzv.F:49:72:

49 | IF (I2) 3,3,2
| 1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/sortzv.F:55:72:

55 | 3 INDEX (I3) = I33
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 3 at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/sortzv.F:60:72:

60 | IF (N-1) 12,12,5
| 1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/sortzv.F:64:72:

64 | IF (I2-N) 7,9,11
| 1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/sortzv.F:66:72:

66 | IF (A(I22)-A(I222)) 8,9,9
| 1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/sortzv.F:69:72:

69 | 9 IF (AI-A(I22)) 10,11,11
| 1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/sortzv.F:90:72:

90 | IF (I2) 3,3,2
| 1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/sortzv.F:96:72:

96 | 3 INDEX (I3) = I33
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 3 at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/sortzv.F:101:72:

101 | IF (N-1) 12,12,5
| 1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/sortzv.F:105:72:

105 | IF (I2-N) 7,9,11
| 1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/sortzv.F:107:72:

107 | IF (A(I22)-A(I222)) 8,9,9
| 1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/sortzv.F:110:72:

110 | 9 IF (AI-A(I22)) 10,11,11
| 1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/sortzv.F:131:72:

131 | IF (I2) 3,3,2
| 1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/sortzv.F:133:72:

133 | IF(ICMPCH(AI,A(I22)))3,3,21
| 1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/sortzv.F:137:72:

137 | 3 INDEX (I3) = I33
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 3 at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/sortzv.F:142:72:

142 | IF (N-1) 12,12,5
| 1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/sortzv.F:146:72:

146 | IF (I2-N) 7,9,11
| 1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/sortzv.F:148:72:

148 | IF (ICMPCH(A(I22),A(I222))) 8,9,9
| 1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/sortzv.F:151:72:

151 | 9 IF (ICMPCH(AI,A(I22))) 10,11,11
| 1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/sortzv.F:173:72:

173 | IF(I1-I2)80,70,60
| 1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/sortzv.F:174:72:

174 | 40 IF(I1-I2)60,70,80
| 1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/sortzv.F:21:72:

21 | 10 CALL SORTTI (A,INDEX,N)
| 1
Warning: Type mismatch in argument ‘a’ at (1); passed REAL(4) to INTEGER(4)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/sortzv.F:24:72:

24 | 20 CALL SORTTC(A,INDEX,N)
| 1
Warning: Type mismatch in argument ‘a’ at (1); passed REAL(4) to INTEGER(4)
/Users/ejgarcia/alice/sw/SOURCES/AEGIS/v1.4/v1.4/MICROCERN/ufill.F:14:72:

14 | 29 IV(J)=ITEXT
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 29 at (1)
[ 42%] Linking Fortran shared library libMICROCERN.dylib
[ 42%] Built target MICROCERN
[ 44%] Generating G__TEPEMGEN.cxx, libTEPEMGEN_rdict.pcm, libTEPEMGEN.rootmap
[ 45%] Generating G__THijing.cxx, libTHijing_rdict.pcm, libTHijing.rootmap
Scanning dependencies of target TDPMjet
Scanning dependencies of target GeneratorSpectators
[ 49%] Building CXX object TDPMjet/CMakeFiles/TDPMjet.dir/TDPMjet.cxx.o
[ 49%] Building CXX object TDPMjet/CMakeFiles/TDPMjet.dir/G__TDPMjet.cxx.o
[ 50%] Building CXX object GeneratorSpectators/CMakeFiles/GeneratorSpectators.dir/GeneratorSpectators.cxx.o
[ 52%] Building CXX object GeneratorSpectators/CMakeFiles/GeneratorSpectators.dir/G__GeneratorSpectators.cxx.o
Scanning dependencies of target GeneratorSlowNucleons
[ 55%] Building CXX object GeneratorSlowNucleons/CMakeFiles/GeneratorSlowNucleons.dir/GeneratorSlowNucleons.cxx.o
[ 55%] Building CXX object GeneratorSlowNucleons/CMakeFiles/GeneratorSlowNucleons.dir/SlowNucleonModel.cxx.o
[ 57%] Building CXX object GeneratorSlowNucleons/CMakeFiles/GeneratorSlowNucleons.dir/SlowNucleonModelExp.cxx.o
[ 59%] Building CXX object GeneratorSlowNucleons/CMakeFiles/GeneratorSlowNucleons.dir/G__GeneratorSlowNucleons.cxx.o
Scanning dependencies of target GeneratorParam
[ 61%] Building CXX object GeneratorParam/CMakeFiles/GeneratorParam.dir/GeneratorParamLibBase.cxx.o
[ 62%] Building CXX object GeneratorParam/CMakeFiles/GeneratorParam.dir/GeneratorParam.cxx.o
[ 64%] Building CXX object GeneratorParam/CMakeFiles/GeneratorParam.dir/GeneratorParamMUONlib.cxx.o
[ 66%] Building CXX object GeneratorParam/CMakeFiles/GeneratorParam.dir/PythiaDecayerConfig.cxx.o
[ 67%] Building CXX object GeneratorParam/CMakeFiles/GeneratorParam.dir/G__GeneratorParam.cxx.o
Scanning dependencies of target GeneratorCosmics
[ 69%] Building CXX object GeneratorCosmics/CMakeFiles/GeneratorCosmics.dir/GeneratorCosmics.cxx.o
Scanning dependencies of target THijing
[ 71%] Building CXX object THijing/CMakeFiles/THijing.dir/THijing.cxx.o
Scanning dependencies of target TEPEMGEN
[ 72%] Building CXX object TEPEMGEN/CMakeFiles/TEPEMGEN.dir/TGenQEDBg.cxx.o
[ 74%] Building Fortran object THijing/CMakeFiles/THijing.dir/openDecayTableHijing.F.o
[ 76%] Building CXX object GeneratorCosmics/CMakeFiles/GeneratorCosmics.dir/G__GeneratorCosmics.cxx.o
[ 77%] Building CXX object THijing/CMakeFiles/THijing.dir/G__THijing.cxx.o
[ 79%] Building CXX object TEPEMGEN/CMakeFiles/TEPEMGEN.dir/TGenEpEmv1.cxx.o
[ 81%] Building CXX object TEPEMGEN/CMakeFiles/TEPEMGEN.dir/TEpEmGen.cxx.o
[ 83%] Building Fortran object TEPEMGEN/CMakeFiles/TEPEMGEN.dir/epemgen.f.o
[ 84%] Linking CXX shared library libGeneratorSpectators.dylib
[ 84%] Built target GeneratorSpectators
[ 86%] Linking CXX shared library libTDPMjet.dylib
[ 88%] Building Fortran object TEPEMGEN/CMakeFiles/TEPEMGEN.dir/diffcross.f.o
ld: warning: directory not found for option ‘-L/Users/ejgarcia/alice/sw/osx_x86-64/DPMJET/v3.0.5-alice5-1/lib’
ld: library not found for -lDPMJET
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [TDPMjet/CMakeFiles/TDPMjet.dir/build.make:150: TDPMjet/libTDPMjet.dylib] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:618: TDPMjet/CMakeFiles/TDPMjet.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs…
[ 89%] Building Fortran object TEPEMGEN/CMakeFiles/TEPEMGEN.dir/dtrint.f.o
[ 91%] Building CXX object TEPEMGEN/CMakeFiles/TEPEMGEN.dir/G__TEPEMGEN.cxx.o
[ 93%] Linking CXX shared library libTHijing.dylib
[ 94%] Linking CXX shared library libGeneratorSlowNucleons.dylib
[ 94%] Built target THijing
[ 94%] Built target GeneratorSlowNucleons
[ 96%] Linking CXX shared library libGeneratorCosmics.dylib
[ 96%] Built target GeneratorCosmics
[ 98%] Linking CXX shared library libTEPEMGEN.dylib
[ 98%] Built target TEPEMGEN
[100%] Linking CXX shared library libGeneratorParam.dylib
[100%] Built target GeneratorParam
gmake: *** [Makefile:149: all] Error 2

I solved the problem with the recommendation that I found in another post:

brew update
brew upgrade
brew link --overwrite python@3.8