CosmoMC-planck2018 unrecognized command-line options

Use of Healpix, camb, CLASS, cosmomc, compilers, etc.
Post Reply
Joe Wraga
Posts: 2
Joined: October 09 2020
Affiliation: Drexel University

CosmoMC-planck2018 unrecognized command-line options

Post by Joe Wraga » October 10 2020

Hello. I am having an issue installing CosmoMC-planck2018 on my Mac. (I have installed plc-3.01 already.) When running make, I get

Code: Select all

gfortran: error: unrecognized command-line option '-mkl'
gfortran: error: unrecognized command-line option '-no-prec-div'
gfortran: error: unrecognized command-line option '-fpp'; did you mean '-cpp'?
gfortran: error: unrecognized command-line option '-qopenmp'; did you mean '-fopenmp'?
gfortran: error: unrecognized command-line option '-module'
make[2]: *** [ReleaseMPI/constants.o] Error 1
make[1]: *** [camb] Error 2
make: *** [cosmomc] Error 2
Looking at similar issues others have had in the past, I have tried adding -f90=ifort to the FFLAGS in ./source/Makefile and it just adds another error that it does not recognize this option. I also tried to replace mpif90 with mpiifort, and get mpiifort: No such file or directory.

Any help would be greatly appreciated!

Joe Wraga
Posts: 2
Joined: October 09 2020
Affiliation: Drexel University

Re: CosmoMC-planck2018 unrecognized command-line options

Post by Joe Wraga » October 12 2020

Update: After doing a conda install of mkl, I instead get a bunch of warnings like:

Code: Select all

mkl -O3 -no-prec-div -fpp  -qopenmp -xHost -DMPI -module ReleaseMPI -IReleaseMPI/ -c constants.f90 -o ReleaseMPI/constants.o
make[2]: mkl: No such file or directory
make[2]: [ReleaseMPI/constants.o] Error 1 (ignored)
Followed by

Code: Select all

ar: ReleaseMPI/constants.o: No such file or directory
ar: ReleaseMPI/utils.o: No such file or directory
ar: ReleaseMPI/subroutines.o: No such file or directory
ar: ReleaseMPI/inifile.o: No such file or directory
ar: ReleaseMPI/power_tilt.o: No such file or directory
ar: ReleaseMPI/recfast.o: No such file or directory
ar: ReleaseMPI/reionization.o: No such file or directory
ar: ReleaseMPI/modules.o: No such file or directory
ar: ReleaseMPI/bessels.o: No such file or directory
ar: ReleaseMPI/equations_ppf.o: No such file or directory
ar: ReleaseMPI/halofit_ppf.o: No such file or directory
ar: ReleaseMPI/lensing.o: No such file or directory
ar: ReleaseMPI/SeparableBispectrum.o: No such file or directory
ar: ReleaseMPI/cmbmain.o: No such file or directory
ar: ReleaseMPI/camb.o: No such file or directory
make[2]: *** [ReleaseMPI/libcamb_recfast.a] Error 1
make[1]: *** [camb] Error 2
make: *** [cosmomc] Error 2

Post Reply