Problem when compiling WMAP_likelihood3

Use of Healpix, camb, CLASS, cosmomc, compilers, etc.
Post Reply
robert suhada
Posts: 1
Joined: September 01 2009
Affiliation: mpe

Problem when compiling WMAP_likelihood3

Post by robert suhada » September 01 2009

Hi,

I'm trying to install cosmomc with WMAP_likelihood3. I solved several problems thanks to this forum, but I can't get through this error:

Code: Select all

make
/usr/local/bin/gfortran-4.2  -o test test.o read_archive_map.o read_fits.o healpix_types.o br_mod_dist.o WMAP_5yr_options.o WMAP_5yr_util.o WMAP_5yr_gibbs.o WMAP_5yr_tt_pixlike.o WMAP_5yr_tt_beam_ptsrc_chisq.o WMAP_5yr_teeebb_pixlike.o WMAP_5yr_tetbeebbeb_pixlike.o WMAP_5yr_likelihood.o -L/Users/rsuhada/data1/sw/cfitsio/lib -lm -lSystemStubs -L/Users/rsuhada/data1/sw/lapack-3.2.1/lib -llapack -lcfitsio 
Undefined symbols:
  "_ddot_", referenced from:
      ___wmap_teeebb_lowl__teeebb_lowl_likelihood in WMAP_5yr_teeebb_pixlike.o
      ___wmap_teeebb_lowl__teeebb_lowl_likelihood in WMAP_5yr_teeebb_pixlike.o
      ___wmap_teeebb_lowl__teeebb_lowl_likelihood in WMAP_5yr_teeebb_pixlike.o
      ___wmap_teeebb_lowl__teeebb_lowl_likelihood in WMAP_5yr_teeebb_pixlike.o
      ___wmap_teeebb_lowl__teeebb_lowl_likelihood in WMAP_5yr_teeebb_pixlike.o
      ___wmap_teeebb_lowl__teeebb_lowl_likelihood in WMAP_5yr_teeebb_pixlike.o
      ___wmap_teeebb_lowl__teeebb_lowl_likelihood in WMAP_5yr_teeebb_pixlike.o
      ___wmap_teeebb_lowl__teeebb_lowl_likelihood in WMAP_5yr_teeebb_pixlike.o
      ___wmap_teeebb_lowl__teeebb_lowl_likelihood in WMAP_5yr_teeebb_pixlike.o
      ___wmap_tetbeebbeb_lowl__tetbeebbeb_lowl_likelihood in WMAP_5yr_tetbeebbeb_pixlike.o
      ___wmap_tetbeebbeb_lowl__tetbeebbeb_lowl_likelihood in WMAP_5yr_tetbeebbeb_pixlike.o
      ___wmap_tetbeebbeb_lowl__tetbeebbeb_lowl_likelihood in WMAP_5yr_tetbeebbeb_pixlike.o
      ___wmap_tetbeebbeb_lowl__tetbeebbeb_lowl_likelihood in WMAP_5yr_tetbeebbeb_pixlike.o
      ___wmap_tetbeebbeb_lowl__tetbeebbeb_lowl_likelihood in WMAP_5yr_tetbeebbeb_pixlike.o
      ___wmap_tetbeebbeb_lowl__tetbeebbeb_lowl_likelihood in WMAP_5yr_tetbeebbeb_pixlike.o
      ___wmap_tetbeebbeb_lowl__tetbeebbeb_lowl_likelihood in WMAP_5yr_tetbeebbeb_pixlike.o
      ___wmap_tetbeebbeb_lowl__tetbeebbeb_lowl_likelihood in WMAP_5yr_tetbeebbeb_pixlike.o
      ___wmap_tetbeebbeb_lowl__tetbeebbeb_lowl_likelihood in WMAP_5yr_tetbeebbeb_pixlike.o
      ___wmap_tetbeebbeb_lowl__tetbeebbeb_lowl_likelihood in WMAP_5yr_tetbeebbeb_pixlike.o
      ___wmap_tetbeebbeb_lowl__tetbeebbeb_lowl_likelihood in WMAP_5yr_tetbeebbeb_pixlike.o
      ___wmap_tetbeebbeb_lowl__tetbeebbeb_lowl_likelihood in WMAP_5yr_tetbeebbeb_pixlike.o
      ___wmap_tetbeebbeb_lowl__tetbeebbeb_lowl_likelihood in WMAP_5yr_tetbeebbeb_pixlike.o
      ___wmap_tetbeebbeb_lowl__tetbeebbeb_lowl_likelihood in WMAP_5yr_tetbeebbeb_pixlike.o
      ___wmap_tetbeebbeb_lowl__tetbeebbeb_lowl_likelihood in WMAP_5yr_tetbeebbeb_pixlike.o
      ___wmap_tetbeebbeb_lowl__tetbeebbeb_lowl_likelihood in WMAP_5yr_tetbeebbeb_pixlike.o
      ___wmap_tetbeebbeb_lowl__tetbeebbeb_lowl_likelihood in WMAP_5yr_tetbeebbeb_pixlike.o
  "_dpotrf_", referenced from:
      ___wmap_tlike__compute_tt_pixlike in WMAP_5yr_tt_pixlike.o
      ___wmap_tt_beam_ptsrc_chisq__compute_tt_beam_and_ptsrc_chisq in WMAP_5yr_tt_beam_ptsrc_chisq.o
      ___wmap_teeebb_lowl__teeebb_lowl_likelihood in WMAP_5yr_teeebb_pixlike.o
      ___wmap_tetbeebbeb_lowl__tetbeebbeb_lowl_likelihood in WMAP_5yr_tetbeebbeb_pixlike.o
  "_dpotri_", referenced from:
      ___wmap_teeebb_lowl__teeebb_lowl_likelihood in WMAP_5yr_teeebb_pixlike.o
      ___wmap_tetbeebbeb_lowl__tetbeebbeb_lowl_likelihood in WMAP_5yr_tetbeebbeb_pixlike.o
  "_dpotrs_", referenced from:
      ___wmap_tlike__compute_tt_pixlike in WMAP_5yr_tt_pixlike.o
      ___wmap_tlike__compute_tt_pixlike in WMAP_5yr_tt_pixlike.o
      ___wmap_tt_beam_ptsrc_chisq__compute_tt_beam_and_ptsrc_chisq in WMAP_5yr_tt_beam_ptsrc_chisq.o
      ___wmap_tt_beam_ptsrc_chisq__compute_tt_beam_and_ptsrc_chisq in WMAP_5yr_tt_beam_ptsrc_chisq.o
  "_dsymv_", referenced from:
      ___wmap_teeebb_lowl__teeebb_lowl_likelihood in WMAP_5yr_teeebb_pixlike.o
      ___wmap_tetbeebbeb_lowl__tetbeebbeb_lowl_likelihood in WMAP_5yr_tetbeebbeb_pixlike.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [test] Error 1
I think the problem is with LAPACK. I installed it folowing this guide: http://www.commonmediainc.com/2008/03/2 ... -mac-os-x/

but after done the LAPACK dir doesn't have a lib/ subdir.

My WMAP_likelihood3 makefile:

F90 = /usr/local/bin/gfortran-4.2
FFLAGS = #-qsuffix=f=f90:cpp=F90 -qstrict -qmaxmem=-1 \
#-qarch=auto -qtune=auto -qunroll=auto -framework Accelerate -O2 \
-ffixed-line-length-none \
[tex](WMAPFLAGS)
INCS = -I. -I[/tex](CFITSIO)/include
LIBS = -L$(CFITSIO)/lib -lm -lSystemStubs -L/Users/rsuhada/data1/sw/lapack-3.2.1 -llapack -lcfitsio

Machine:
MacBook3,1
Intel Core 2 Duo
Mac OS X 10.5.6

Thank you very much!

Minghua Li
Posts: 15
Joined: August 25 2009
Affiliation: Institue of High Energy Physics, Chinese Academy of Sciences

hope not too late

Post by Minghua Li » September 12 2009

I hope that my reply isn't too late.

The symbols "_dpotrf_",etc. are some kinds of funtions in the library. The error message told you that it couldn't recognize the function name, which means you didn't give the correct path of the lib file in the makefile of the "source" subdirectory.

If possible, post your makefile in the source subdirectory, so that we can figure out what the problem is together!

Post Reply