Cosmomc:Complinig with new version of CAMB (Jan 2011) updates

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Akhilesh Nautiyal(akhi)
Posts: 72
Joined: June 13 2007
Affiliation: Malaviya National Institute of Technology Jaipur

Cosmomc:Complinig with new version of CAMB (Jan 2011) update

Post by Akhilesh Nautiyal(akhi) » March 01 2011

Hi,

I tried to compile cosmomc using updated version of CAMB but I got the following error message.

make[1]: Leaving directory `/home/mohanty/cosmomc/camb'
mpif90 -f90=ifort -o ../cosmomc 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 CMB_Cls_simple.o paramdef.o propose.o params_CMB.o calclike.o conjgrad_wrapper.o EstCovmat.o postprocess.o MCMC.o driver.o /home/mohanty/likelihood_v4/read_archive_map.o /home/mohanty/likelihood_v4/read_fits.o /home/mohanty/likelihood_v4/healpix_types.o /home/mohanty/likelihood_v4/WMAP_7yr_options.o /home/mohanty/likelihood_v4/WMAP_7yr_util.o /home/mohanty/likelihood_v4/WMAP_7yr_tt_pixlike.o /home/mohanty/likelihood_v4/WMAP_7yr_teeebb_pixlike.o /home/mohanty/likelihood_v4/WMAP_7yr_likelihood.o /home/mohanty/likelihood_v4/WMAP_7yr_gibbs.o /home/mohanty/likelihood_v4/WMAP_7yr_tt_beam_ptsrc_chisq.o /home/mohanty/likelihood_v4/br_mod_dist.o -L../camb -lcamb -L/rhome/intel/mkl/10.2.0.013/lib/em64t -I/rhome/intel/mkl/10.2.0.013/include/em64t/lp64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -L/home/mohanty/cfitsio/lib -L/home/mohanty/likelihood_v4 -lcfitsio -DMATRIX_SINGLE -O2 -ip -W0 -WB -openmp -fpp -DMPI -vec_report0 -mkl=parallel -I../camb -I/home/mohanty/cfitsio/include -I/home/mohanty/likelihood_v4
../camb/libcamb.a(utils.o): In function `ranges._':
utils.F90:(.text+0x0): multiple definition of `ranges._'
utils.o:utils.F90:(.text+0x0): first defined here
../camb/libcamb.a(utils.o): In function `ranges_mp_ranges_free_':
utils.F90:(.text+0x10): multiple definition of `ranges_mp_ranges_free_'
utils.o:utils.F90:(.text+0x10): first defined here
../camb/libcamb.a(utils.o): In function `ranges_mp_ranges_nullify_':
utils.F90:(.text+0xc0): multiple definition of `ranges_mp_ranges_nullify_'
utils.o:utils.F90:(.text+0xc0): first defined here
../camb/libcamb.a(utils.o): In function `ranges_mp_ranges_indexof_':
utils.F90:(.text+0x590): multiple definition of `ranges_mp_ranges_indexof_'
utils.o:utils.F90:(.text+0xf0): first defined here
../camb/libcamb.a(utils.o): In function `ranges_mp_ranges_getarray_':
utils.F90:(.text+0x690): multiple definition of `ranges_mp_ranges_getarray_'
utils.o:utils.F90:(.text+0x1f0): first defined here
../camb/libcamb.a(utils.o): In function `ranges_mp_ranges_getdpoints_':
utils.F90:(.text+0xa80): multiple definition of `ranges_mp_ranges_getdpoints_'
utils.o:utils.F90:(.text+0x5e0): first defined here
../camb/libcamb.a(utils.o): In function `ranges_mp_ranges_add_delta_':
utils.F90:(.text+0xcb0): multiple definition of `ranges_mp_ranges_add_delta_'
utils.o:utils.F90:(.text+0x810): first defined here
../camb/libcamb.a(utils.o): In function `ranges_mp_ranges_add_':
utils.F90:(.text+0x23f0): multiple definition of `ranges_mp_ranges_add_'
utils.o:utils.F90:(.text+0x1f50): first defined here
../camb/libcamb.a(utils.o): In function `ranges_mp_ranges_write_':
utils.F90:(.text+0x3a20): multiple definition of `ranges_mp_ranges_write_'
utils.o:utils.F90:(.text+0x3580): first defined here
../camb/libcamb.a(utils.o): In function `lists._':
utils.F90:(.text+0x3bc0): multiple definition of `lists._'
utils.o:utils.F90:(.text+0x3720): first defined here
../camb/libcamb.a(utils.o): In function `lists_mp_tlist_realarr_clear_':
utils.F90:(.text+0x3bd0): multiple definition of `lists_mp_tlist_realarr_clear_'
utils.o:utils.F90:(.text+0x3730): first defined here
../camb/libcamb.a(utils.o): In function `lists_mp_tlist_realarr_add_':
utils.F90:(.text+0x3ce0): multiple definition of `lists_mp_tlist_realarr_add_'
utils.o:utils.F90:(.text+0x3840): first defined here
../camb/libcamb.a(utils.o): In function `lists_mp_tlist_realarr_delete_':
utils.F90:(.text+0x4210): multiple definition of `lists_mp_tlist_realarr_delete_'
utils.o:utils.F90:(.text+0x3d70): first defined here
../camb/libcamb.a(utils.o): In function `lists_mp_tlist_realarr_savebinary_':
utils.F90:(.text+0x43d0): multiple definition of `lists_mp_tlist_realarr_savebinary_'
utils.o:utils.F90:(.text+0x3f30): first defined here
../camb/libcamb.a(utils.o): In function `lists_mp_tlist_realarr_readbinary_':
utils.F90:(.text+0x4580): multiple definition of `lists_mp_tlist_realarr_readbinary_'
utils.o:utils.F90:(.text+0x40e0): first defined here
../camb/libcamb.a(utils.o): In function `lists_mp_tlist_realarr_setcapacity_':
utils.F90:(.text+0x49d0): multiple definition of `lists_mp_tlist_realarr_setcapacity_'
utils.o:utils.F90:(.text+0x4530): first defined here
../camb/libcamb.a(utils.o): In function `lists_mp_tlist_realarr_thin_':
utils.F90:(.text+0x4d40): multiple definition of `lists_mp_tlist_realarr_thin_'
utils.o:utils.F90:(.text+0x48a0): first defined here
../camb/libcamb.a(utils.o): In function `lists_mp_tlist_realarr_confidval_':
utils.F90:(.text+0x4ff0): multiple definition of `lists_mp_tlist_realarr_confidval_'
utils.o:utils.F90:(.text+0x4b50): first defined here
../camb/libcamb.a(utils.o): In function `lists_mp_quicksortarr_real_':
utils.F90:(.text+0x5730): multiple definition of `lists_mp_quicksortarr_real_'
utils.o:utils.F90:(.text+0x5290): first defined here
../camb/libcamb.a(utils.o): In function `lists_mp_tstringlist_clear_':
utils.F90:(.text+0x5980): multiple definition of `lists_mp_tstringlist_clear_'
utils.o:utils.F90:(.text+0x54e0): first defined here
../camb/libcamb.a(utils.o): In function `lists_mp_tstringlist_setfromstring_':
utils.F90:(.text+0x5a90): multiple definition of `lists_mp_tstringlist_setfromstring_'
utils.o:utils.F90:(.text+0x55f0): first defined here
ld: Warning: size of symbol `lists_mp_tstringlist_setfromstring_' changed from 3648 in utils.o to 3552 in ../camb/libcamb.a(utils.o)
../camb/libcamb.a(utils.o): In function `lists_mp_tstringlist_add_':
utils.F90:(.text+0x6870): multiple definition of `lists_mp_tstringlist_add_'
utils.o:utils.F90:(.text+0x6430): first defined here.....

I will be glad if some one can help me.

Thanks,
Akhilesh
.

Lukas Hollenstein
Posts: 16
Joined: March 31 2009
Affiliation: IPhT CEA-Saclay
Contact:

Cosmomc:Complinig with new version of CAMB (Jan 2011) update

Post by Lukas Hollenstein » March 11 2011

Hi,

same here. I tried altering the Makefile of CosmoMC to solve the problem: I deleted the utils.o entry in the OBJFILES= definition. That made it compile for me. Does that help?

Best,
Lukas

Ryohei Kobayashi
Posts: 1
Joined: October 08 2011
Affiliation: Nagoya University

Cosmomc:Complinig with new version of CAMB (Jan 2011) update

Post by Ryohei Kobayashi » October 08 2011

Hi,

I faced the same problem,and Lucas's treatment worked for my case.Thank you very much.

But I was wondering if cosmomc was compiled without utils.o, did it work well?

Sorry for my poor English writing skill.

Thank you for reading.

Ryohei

Post Reply