[cosmomc] Error installing cosmomc with WMAP7, gfortran

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Noble P Abraham
Posts: 9
Joined: July 31 2008
Affiliation: School of Pure and Applied Physics, Mahatma Gandhi University, Kottayam

[cosmomc] Error installing cosmomc with WMAP7, gfortran

Post by Noble P Abraham » June 21 2010

I am trying to install cosmomc with the following Makefile(only parts posted).
I could make likelihood without erros at /home/mcmc/wmap_likelihood_full_v4/likelihood_v4
I have Intel mkl initialized

Code: Select all

##Uncomment the next line to include dr7 LRG
EXTDATA = 
#EXTDATA = LRG

#set WMAP empty not to compile with WMAP
WMAP = /home/mcmc/wmap_likelihood_full_v4/likelihood_v4 

#Only needed for WMAP
cfitsio = /usr

#GSL only needed for DR7 LRG
#GSLPATH = /home/aml1005/libs/gsl

IFLAG = -I
INCLUDE=

#GFortran: if pre v4.3 add -D__GFORTRAN__
F90C     = gfortran
FFLAGS = -O2 -ffree-form -x f95-cpp-input 
LAPACKL = -lmkl -lmkl_lapack -lmkl_core -lguide -lpthread  #-Wl,-framework -Wl,accelerate

PROPOSE = propose.o
CLSFILE = CMB_Cls_simple.o

#Can use params_H if you prefer more generic parameters
PARAMETERIZATION = params_CMB.o

F90FLAGS = -DMATRIX_SINGLE $(FFLAGS) $(IFLAG)../camb $(INCLUDE)
LINKFLAGS = -L../camb -lcamb $(LAPACKL) 

DISTFILES = utils.o ParamNames.o Matrix_utils.o settings.o GetDist.o

OBJFILES= utils.o ParamNames.o Matrix_utils.o settings.o IO.o cmbtypes.o Planck_like.o \
	cmbdata.o WeakLen.o bbn.o bao.o lrggettheory.o mpk.o supernovae.o HST.o SDSSLy-a-v3.o \
	$(CLSFILE) paramdef.o $(PROPOSE) $(PARAMETERIZATION) calclike.o \
	conjgrad_wrapper.o EstCovmat.o postprocess.o MCMC.o driver.o \

ifeq ($(EXTDATA),LRG)
F90FLAGS += -DDR71RG
OBJFILES += bsplinepk.o
GSLINC = -I$(GSLPATH)/include
LINKFLAGS += -L$(GSLPATH)/lib -lgsl -lgslcblas
endif

ifneq ($(WMAP),)
F90FLAGS += $(IFLAG)$(cfitsio)/include $(IFLAG)$(WMAP)
LINKFLAGS +=  -L$(cfitsio)/lib -L$(WMAP) -lcfitsio

OBJFILES += $(WMAP)/read_archive_map.o \
	$(WMAP)/read_fits.o \
	$(WMAP)/healpix_types.o \
	$(WMAP)/WMAP_7yr_options.o \
	$(WMAP)/WMAP_7yr_util.o \
	$(WMAP)/WMAP_7yr_tt_pixlike.o \
	$(WMAP)/WMAP_7yr_teeebb_pixlike.o \
	$(WMAP)/WMAP_7yr_likelihood.o \
	$(WMAP)/WMAP_7yr_gibbs.o \
	$(WMAP)/WMAP_7yr_tt_beam_ptsrc_chisq.o \
	$(WMAP)/br_mod_dist.o 
else
F90FLAGS += -DNOWMAP
endif ............




The error that I get is the following

Code: Select all

gfortran -DMATRIX_SINGLE -O2 -ffree-form -x f95-cpp-input  -I../camb  -I/usr/include -I/home/mcmc/wmap_likelihood_full_v4/likelihood_v4  -c MCMC.f90
gfortran -DMATRIX_SINGLE -O2 -ffree-form -x f95-cpp-input  -I../camb  -I/usr/include -I/home/mcmc/wmap_likelihood_full_v4/likelihood_v4  -c driver.F90
make: *** No rule to make target `/read_archive_map.o', needed by `cosmomc'.  Stop.

Something wrong with the Makefile?(Why it is not prefixing $(WMAP)?)
Or am I passing wrong arguments to gfortran?

My laptop is with Ubuntu 10.04(x86_64) and gfortran/gcc version is 4.4.3 (Ubuntu 4.4.3-4ubuntu5)

Moncho R Raposo
Posts: 3
Joined: May 23 2011
Affiliation: USC

[cosmomc] Error installing cosmomc with WMAP7, gfortran

Post by Moncho R Raposo » June 07 2011

I had a similar problem, and what I did was to do a "make clean" on likelihood, and then a "make" again.

I hope it helps.

Sheng Li
Posts: 57
Joined: May 26 2009
Affiliation: University of Sussex
Contact:

[cosmomc] Error installing cosmomc with WMAP7, gfortran

Post by Sheng Li » July 04 2011

check your Makefile, if you can not find a line like below, then add it in:

Code: Select all

%.o: %.f90
	$(F90C) $(F90FLAGS) -c $*.f90
hope it helps :)

This problem states compiler could not find object files, so you need generate them or link them.

Illa R. Losada
Posts: 5
Joined: October 05 2012
Affiliation: PhD

[cosmomc] Error installing cosmomc with WMAP7, gfortran

Post by Illa R. Losada » November 05 2012

I have the same problem.
I tried make clean in likelihood_v4p1 and make again.
Also, I verified the directories and the *.o files, but I keep getting the same problem.

Any idea?

Thank you for your help.

Erick Almaraz
Posts: 29
Joined: June 10 2012
Affiliation: University of Mexico

[cosmomc] Error installing cosmomc with WMAP7, gfortran

Post by Erick Almaraz » November 07 2012

Hi Illa. I had problems with the wmap7 likelihood software installation (firts I tried to install it using the gfortran compiler), until I downloaded the ifort free compiler from

http://software.intel.com/en-us/non-com ... evelopment

For the installation of this compiler, I found very useful this link

http://conquer-ur-computer.blogspot.mx/ ... cc-in.html

and then, I edited the Makefile according to the post of April 2012.

Makefile

If you give up with gfortran, maybe this would help you.

Regards

Post Reply