Page 1 of 1

Problem running Make in CosmoMC for the first time

Posted: June 01 2019
by Esteban Chalbaud
Hi, i have a problem while i try to run out, CosmoMC, while i try using make on Linux, i got the following error:


make
cd ./source && make cosmomc BUILD=MPI
make[1]: Entering directory '/home/esteban/CosmoMC-Nov2016/source'
mkdir -p ReleaseMPI
cd ../camb && \
make --file=Makefile_main libcamb OUTPUT_DIR=ReleaseMPI \
RECOMBINATION=recfast EQUATIONS=equations_ppf NONLINEAR=halofit_ppf
make[2]: Entering directory '/home/esteban/CosmoMC-Nov2016/camb'
mkdir -p ReleaseMPI
mpif90 -cpp -O3 -ffast-math -ffree-line-length-none -fopenmp -fmax-errors=4 -march=native -DMPI -JReleaseMPI -IReleaseMPI/ -c constants.f90 -o ReleaseMPI/constants.o
constants.f90:90:29:

if (id==0) error stop('Error id must be non-zero')
1
Error: Blank required in ERROR STOP statement near (1)
Makefile_main:131: recipe for target 'ReleaseMPI/constants.o' failed
make[2]: *** [ReleaseMPI/constants.o] Error 1
make[2]: Leaving directory '/home/esteban/CosmoMC-Nov2016/camb'
Makefile:312: recipe for target 'camb' failed
make[1]: *** [camb] Error 2
make[1]: Leaving directory '/home/esteban/CosmoMC-Nov2016/source'
Makefile:17: recipe for target 'cosmomc' failed
make: *** [cosmomc] Error 2

Is there any way to repair it?
Thanks in advance.

Esteban

Re: Problem running Make in CosmoMC for the first time

Posted: June 03 2019
by Antony Lewis
Looks like you are using a very old version? Try the latest.

Re: Problem running Make in CosmoMC for the first time

Posted: June 04 2019
by Esteban Chalbaud
I am using the link provided in the email (November 2016)

Re: Problem running Make in CosmoMC for the first time

Posted: June 05 2019
by Antony Lewis
I see, yes the "releases" are a bit behind largely because of the nearly-forever delay in the Planck 2018 update. Try the current master head (always a good idea if a specific release gives a problem).

Re: Problem running Make in CosmoMC for the first time

Posted: July 03 2019
by Esteban Chalbaud
Thank you, now is working