Installation of cosmomc

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Dyaa Chbib
Posts: 1
Joined: August 17 2016
Affiliation: CPT

Installation of cosmomc

Post by Dyaa Chbib » August 17 2016

Hi,

I tried to install cosmomc but I get error.
I use fortran with the following version:
GNU Fortran (Debian 4.9.2-10) 4.9.2

I need help in asap.
Thanks

cd ./source && make cosmomc BUILD=MPI
make[1]: Entering directory `/tmp/CosmoMC-June2016/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 `/tmp/CosmoMC-June2016/camb'
mkdir -p ReleaseMPI
ar -r ReleaseMPI/libcamb_recfast.a ReleaseMPI/constants.o ReleaseMPI/utils.o ReleaseMPI/subroutines.o ReleaseMPI/inifile.o ReleaseMPI/power_tilt.o ReleaseMPI/recfast.o ReleaseMPI/reionization.o ReleaseMPI/modules.o ReleaseMPI/bessels.o ReleaseMPI/equations_ppf.o ReleaseMPI/halofit_ppf.o ReleaseMPI/lensing.o ReleaseMPI/SeparableBispectrum.o ReleaseMPI/cmbmain.o ReleaseMPI/camb.o
make[2]: Leaving directory `/tmp/CosmoMC-June2016/camb'
mpif90 -cpp -O3 -ffast-math -ffree-line-length-none -fopenmp -fmax-errors=4 -march=native -DMPI -I../camb/ReleaseMPI -JReleaseMPI -IReleaseMPI/ -c MiscUtils.f90 -o ReleaseMPI/MiscUtils.o
mpif90 -cpp -O3 -ffast-math -ffree-line-length-none -fopenmp -fmax-errors=4 -march=native -DMPI -I../camb/ReleaseMPI -JReleaseMPI -IReleaseMPI/ -c ArrayUtils.f90 -o ReleaseMPI/ArrayUtils.o
mpif90 -cpp -O3 -ffast-math -ffree-line-length-none -fopenmp -fmax-errors=4 -march=native -DMPI -I../camb/ReleaseMPI -JReleaseMPI -IReleaseMPI/ -c StringUtils.f90 -o ReleaseMPI/StringUtils.o
mpif90 -cpp -O3 -ffast-math -ffree-line-length-none -fopenmp -fmax-errors=4 -march=native -DMPI -I../camb/ReleaseMPI -JReleaseMPI -IReleaseMPI/ -c MpiUtils.f90 -o ReleaseMPI/MpiUtils.o
mpif90 -cpp -O3 -ffast-math -ffree-line-length-none -fopenmp -fmax-errors=4 -march=native -DMPI -I../camb/ReleaseMPI -JReleaseMPI -IReleaseMPI/ -c FileUtils.f90 -o ReleaseMPI/FileUtils.o
FileUtils.f90: In function ‘writetextvector’:
FileUtils.f90:1369:0: internal compiler error: Segmentation fault
call F%Write(vec(j))

Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc−4.9/README.Bugs> for instructions.
make[1]: *** [ReleaseMPI/FileUtils.o] Error 1
make[1]: Leaving directory `/tmp/CosmoMC-June2016/source'
make: *** [cosmomc] Error 2

Antony Lewis
Posts: 1936
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: Installation of cosmomc

Post by Antony Lewis » August 18 2016

You need Gfortran 6 or higher. Or use CosmoBox :

http://cosmologist.info/CosmoBox/

Post Reply