I m trying to install the WMAP Likelihood code under LINUX using the following Makefile:
Code: Select all
CFITSIO=/cosmomc/cfitsio
WMAPFLAGS = -DOPTIMIZE -lg2c
F90 = gfortran-4.2
FFLAGS = -O $(WMAPFLAGS) -ffree-line-length-none
INCS = -I. -I$(CFITSIO)/include
LIBS = -L. -L$(CFITSIO) -lcfitsio -llapack -fopenm
Code: Select all
gfortran-4.2 -O -DOPTIMIZE -ffree-line-length-none -I. -I/cosmomc/cfitsio/include -c -o WMAP_5yr_tetbeebbeb_pixlike.o WMAP_5yr_tetbeebbeb_pixlike.F90
WMAP_5yr_tetbeebbeb_pixlike.F90:620.87:
rite(lun,'(I,6ES)') l, cltt(l), clte(l), cltb(l), clee(l), clbb(l), cleb(l)
1
Warning: Nonnegative width required in format string at (1)
WMAP_5yr_tetbeebbeb_pixlike.F90:621.85:
write(*,'(I,6ES)') l, cltt(l), clte(l), cltb(l), clee(l), clbb(l), cleb(l)
1
Warning: Nonnegative width required in format string at (1)
UPDATE
So, the Warning and error messages, later, appear when running the Makefile of source/:
Code: Select all
THISVERSION = cosmomc_vanilla
CFITSIO=/cosmomc/cfitsio
F90C = gfortran-4.2
FFLAGS = -O2 -ffree-form -D__GFORTRAN__ -ffree-line-length-none
LAPACKL = -Wl,-framework -Wl,accelerate
PROPOSE = propose.o
CLSFILE = CMB_Cls_simple.o
PARAMETERIZATION = params_CMB.o
WMAP = /cosmomc/data_share/wmap5
IFLAG = -I
INCLUDE=
WMAP_inc = $(IFLAG)$(cfitsio)/include $(IFLAG)$(WMAP)
WMAP_lib = -L$(cfitsio)/lib -L$(WMAP) -lcfitsio
CLSLIB = $(WMAP_lib) -L/cosmomc/$(THISVERSION)/camb -lcamb $(LAPACKL)
CAMB_inc= $(IFLAG)/cosmomc/$(THISVERSION)/camb
F90FLAGS = -DMATRIX_SINGLE $(FFLAGS) $(WMAP_inc) $(CAMB_inc) $(INCLUDE)
DISTFILES = utils.o Matrix_utils.o settings.o GetDist.o
Code: Select all
gfortran-4.2 -DMATRIX_SINGLE -O2 -ffree-form -D__GFORTRAN__ -ffree-line-length-none -I/cosmomc/cfitsio/include -I/cosmomc/data_share/wmap5 -I/cosmomc/cosmomc_vanilla/camb -c params_CMB.f90
params_CMB.f90:236.52:
P%Info%Theory%Sigma_8, C%zre,r10,C%H0,P%P(num_real_params+1:num_real_
1
Warning: Array reference at (1) is out of bounds
gfortran-4.2 -DMATRIX_SINGLE -O2 -ffree-form -D__GFORTRAN__ -ffree-line-length-none -I/cosmomc/cfitsio/include -I/cosmomc/data_share/wmap5 -I/cosmomc/cosmomc_vanilla/camb -c calclike.f90
calclike.f90:107.58:
GetLogLikePost = GetLogLikePost + sum(CMB%nuisance(1:nuisance_params_use
1
Warning: Array reference at (1) is out of bounds
gfortran-4.2 -DMATRIX_SINGLE -O2 -ffree-form -D__GFORTRAN__ -ffree-line-length-none -I/cosmomc/cfitsio/include -I/cosmomc/data_share/wmap5 -I/cosmomc/cosmomc_vanilla/camb -c conjgrad_wrapper.f90
gfortran-4.2 -DMATRIX_SINGLE -O2 -ffree-form -D__GFORTRAN__ -ffree-line-length-none -I/cosmomc/cfitsio/include -I/cosmomc/data_share/wmap5 -I/cosmomc/cosmomc_vanilla/camb -c EstCovmat.f90
gfortran-4.2 -DMATRIX_SINGLE -O2 -ffree-form -D__GFORTRAN__ -ffree-line-length-none -I/cosmomc/cfitsio/include -I/cosmomc/data_share/wmap5 -I/cosmomc/cosmomc_vanilla/camb -c postprocess.f90
gfortran-4.2 -DMATRIX_SINGLE -O2 -ffree-form -D__GFORTRAN__ -ffree-line-length-none -I/cosmomc/cfitsio/include -I/cosmomc/data_share/wmap5 -I/cosmomc/cosmomc_vanilla/camb -c MCMC.f90
gfortran-4.2 -DMATRIX_SINGLE -O2 -ffree-form -D__GFORTRAN__ -ffree-line-length-none -I/cosmomc/cfitsio/include -I/cosmomc/data_share/wmap5 -I/cosmomc/cosmomc_vanilla/camb -c driver.F90
gfortran-4.2 -o ../cosmomc /cosmomc/data_share/wmap5/read_archive_map.o /cosmomc/data_share/wmap5/read_fits.o /cosmomc/data_share/wmap5/WMAP_5yr_options.o /cosmomc/data_share/wmap5/WMAP_5yr_util.o /cosmomc/data_share/wmap5/WMAP_5yr_tt_pixlike.o /cosmomc/data_share/wmap5/WMAP_5yr_teeebb_pixlike.o /cosmomc/data_share/wmap5/WMAP_5yr_likelihood.o /cosmomc/data_share/wmap5/WMAP_5yr_gibbs.o /cosmomc/data_share/wmap5/WMAP_5yr_tt_beam_ptsrc_chisq.o /cosmomc/data_share/wmap5/br_mod_dist.o utils.o Matrix_utils.o settings.o cmbtypes.o Planck_like.o cmbdata.o WeakLen.o mpk.o supernovae.o SDSSLy-a-v3.o CMB_Cls_simple.o paramdef.o propose.o params_CMB.o calclike.o conjgrad_wrapper.o EstCovmat.o postprocess.o MCMC.o driver.o -L/cosmomc/cfitsio/lib -L/cosmomc/data_share/wmap5 -lcfitsio -L/cosmomc/cosmomc_vanilla/camb -lcamb -Wl,-framework -Wl,accelerate -DMATRIX_SINGLE -O2 -ffree-form -D__GFORTRAN__ -ffree-line-length-none -I/cosmomc/cfitsio/include -I/cosmomc/data_share/wmap5 -I/cosmomc/cosmomc_vanilla/camb
/usr/bin/ld: -f may not be used without -shared
collect2: ld returned 1 exit status
make: *** [cosmomc] Error 1
Thanks a lot for your help!
Cheers,
MarioAAO