Page 1 of 1

Compiling the Fortran command-line

Posted: June 27 2023
by Jose Lozano
Hello, I'm trying to run CAMB in the fortran directory by typing "make camb". However, I get the following error

make camb
/Library/Developer/CommandLineTools/usr/bin/make -C Release --no-print-directory -f../Makefile FORUTILS_SRC_DIR=.. libforutils.a
make[1]: Circular precision.mod <- precision.mod dependency dropped.
make[1]: Circular results.mod <- results.mod dependency dropped.
make[1]: Circular spherbessels.mod <- spherbessels.mod dependency dropped.
gfortran -O3 -MMD -cpp -ffree-line-length-none -fmax-errors=4 -fopenmp -I"/Users/planck/Desktop/CAMB-master/fortran/../forutils/Release/" -c ../cmbmain.f90 -o cmbmain.o

58 | use ModelParams
| 1
Fatal Error: Cannot open module file 'modelparams.mod' for reading at (1): No such file or directory
compilation terminated.
make[1]: *** [cmbmain.o] Error 1
make: *** [camb] Error 2

Do you know how to fix this? I'm doing this compilation in my MacOS M2 chip.
I hope you can help me out

Re: Compiling the Fortran command-line

Posted: July 03 2023
by Antony Lewis
Should be in Computers and Software forum. (try make clean first)