Skip to content

Instantly share code, notes, and snippets.

@tueda
Last active November 20, 2022 10:29
Show Gist options
  • Save tueda/1ef4d59a101346243c8f82429779ba8d to your computer and use it in GitHub Desktop.
Save tueda/1ef4d59a101346243c8f82429779ba8d to your computer and use it in GitHub Desktop.

MicrOMEGAs 5.3.35 on Homebrew/CentOS7

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment