In short, change compilers and flags in CalcHEP_src/FlagsForSh
:
CC="gcc-12"
CFLAGS="-g -O2 -fcommon -fsigned-char -std=gnu99 -fPIC"
FC="gfortran-12"
FFLAGS="-g -O2 -fno-automatic"
CXX="g++-12"
CXXFLAGS="-g -O2 -fPIC"
Note the flag -fcommon
in CFLAGS
. Or you need to fix the wrong linkage in MSSM/lib/my_complex.h
.
Also, replace python
with python3
in include/Lilith.inc
and include/Lilith_inc.f
; presumably you don't have SciPy with Python 2.