Compiling problem in Mac

Use of Healpix, camb, CLASS, cosmomc, compilers, etc.
Post Reply
Tian Qiu
Posts: 12
Joined: June 01 2017
Affiliation: University of Science and Technology of China

Compiling problem in Mac

Post by Tian Qiu » October 01 2018

I am trying to compile CosmoMC in a new Mac.
When I run make, everything seemed ok until the message showed below,

Code: Select all

Undefined symbols for architecture x86_64:
  "_amlutils_mp_mpistop_", referenced from:
      _calculator_camb_mp_cambcalc_cmbtocamb_ in Calculator_CAMB.o
      _calculator_camb_mp_cambcalc_setpowersfromcamb_ in Calculator_CAMB.o
  "_camb_mp_camb_freecambdata_", referenced from:
      _calculator_camb_mp_cambtransfercache_clear_ in Calculator_CAMB.o
  "_camb_mp_camb_gettransfers_", referenced from:
      _calculator_camb_mp_cambcalc_getnewtransferdata_ in Calculator_CAMB.o
      _calculator_camb_mp_cambcalc_gettheoryforimportance_ in Calculator_CAMB.o
  "_camb_mp_camb_getzrefromtau_", referenced from:
      _calculator_camb_mp_cambcalc_getzrefromtau_ in Calculator_CAMB.o
  "_camb_mp_camb_initcambdata_", referenced from:
      _calculator_camb_mp_cambcalc_getnewtransferdata_ in Calculator_CAMB.o
      _calculator_camb_mp_cambcalc_gettheoryforimportance_ in Calculator_CAMB.o
  "_camb_mp_camb_setdefparams_", referenced from:
      _calculator_camb_mp_cambcalc_initcambparams_ in Calculator_CAMB.o
  "_camb_mp_camb_setneutrinohierarchy_", referenced from:
      _calculator_camb_mp_cambcalc_cmbtocamb_ in Calculator_CAMB.o
  "_camb_mp_camb_transferstopowers_", referenced from:
      _calculator_camb_mp_cambcalc_getnewpowerdata_ in Calculator_CAMB.o
      _calculator_camb_mp_cambcalc_gettheoryforimportance_ in Calculator_CAMB.o
  "_cambmain_mp_alens_", referenced from:
      _calculator_camb_mp_cambcalc_cmbtocamb_ in Calculator_CAMB.o
  "_cambmain_mp_initvars_", referenced from:
      _calculator_camb_mp_cambcalc_setbackgroundtheorydata_ in Calculator_CAMB.o
  "_dverk_", referenced from:
      _power_sz_mp_inigrowth_ in szcounts.o
      _power_sz_mp_delta_ in szcounts.o
      _szcounts_mp_szcc_cash_ in szcounts.o
      _numbercounts_mp_get_grid_ in szcounts.o
  "_errors_mp_global_error_flag_", referenced from:
      _calculator_camb_mp_cambcalc_setbackgroundtheorydata_ in Calculator_CAMB.o
      _calculator_camb_mp_cambcalc_getnewpowerdata_ in Calculator_CAMB.o
      _calculator_camb_mp_cambcalc_gettheoryforimportance_ in Calculator_CAMB.o
  "_errors_mp_global_error_message_", referenced from:
      _calculator_camb_mp_cambcalc_getnewtransferdata_ in Calculator_CAMB.o
  "_initialpower_mp_scalarpower_", referenced from:
      _calculator_camb_mp_cambcalc_setpowersfromcamb_ in Calculator_CAMB.o
  "_initialpower_mp_tensorpower_", referenced from:
      _calculator_camb_mp_cambcalc_setpowersfromcamb_ in Calculator_CAMB.o
  "_lambdageneral_mp_w_lam_", referenced from:
      _calculator_camb_mp_cambcalc_cmbtocamb_ in Calculator_CAMB.o
      _calculator_camb_mp_cambcalc_initcambparams_ in Calculator_CAMB.o
  "_lambdageneral_mp_wa_ppf_", referenced from:
      _calculator_camb_mp_cambcalc_cmbtocamb_ in Calculator_CAMB.o
      _calculator_camb_mp_cambcalc_initcambparams_ in Calculator_CAMB.o
  "_lensing_mp_alens_fiducial_", referenced from:
      _calculator_camb_mp_cambcalc_cmbtocamb_ in Calculator_CAMB.o
  "_lensing_mp_lensing_includes_tensors_", referenced from:
      _calculator_camb_mp_cambcalc_initcambparams_ in Calculator_CAMB.o
  "_modeldata_mp_cl_lensed_", referenced from:
      _calculator_camb_mp_cambcalc_setpowersfromcamb_ in Calculator_CAMB.o
  "_modeldata_mp_cl_scalar_", referenced from:
      _calculator_camb_mp_cambcalc_setpowersfromcamb_ in Calculator_CAMB.o
  "_modeldata_mp_cl_tensor_", referenced from:
      _calculator_camb_mp_cambcalc_setpowersfromcamb_ in Calculator_CAMB.o
  "_modelparams_mp_accuracyboost_", referenced from:
      _calculator_camb_mp_cambcalc_initcambparams_ in Calculator_CAMB.o
  "_modelparams_mp_angulardiameterdistance2_", referenced from:
      _calculator_camb_mp_cambcalc_angulardiameterdistance2_ in Calculator_CAMB.o
  "_modelparams_mp_angulardiameterdistance_", referenced from:
      _calculator_camb_mp_cambcalc_angulardiameterdistance_ in Calculator_CAMB.o
  "_modelparams_mp_backgroundoutputs_", referenced from:
      _calculator_camb_mp_cambcalc_setderived_ in Calculator_CAMB.o
      _calculator_camb_mp_cambcalc_initcambparams_ in Calculator_CAMB.o
  "_modelparams_mp_bao_d_v_", referenced from:
      _calculator_camb_mp_cambcalc_bao_d_v_ in Calculator_CAMB.o
  "_modelparams_mp_cambparams_set_", referenced from:
      _calculator_camb_mp_cambcalc_setparamsforbackground_ in Calculator_CAMB.o
      _calculator_camb_mp_cambcalc_getopticaldepth_ in Calculator_CAMB.o
      _calculator_camb_mp_cambcalc_initcamb_ in Calculator_CAMB.o
  "_modelparams_mp_comovingradialdistance_", referenced from:
      _calculator_camb_mp_cambcalc_comovingradialdistance_ in Calculator_CAMB.o
  "_modelparams_mp_cosmomctheta_", referenced from:
      _calculator_camb_mp_cambcalc_cmbtotheta_ in Calculator_CAMB.o
  "_modelparams_mp_cp_", referenced from:
      _calculator_camb_mp_cambcalc_setpkfromcamb_ in Calculator_CAMB.o
  "_modelparams_mp_highaccuracydefault_", referenced from:
      _calculator_camb_mp_cambcalc_initcambparams_ in Calculator_CAMB.o
  "_modelparams_mp_highl_unlensed_cl_template_", referenced from:
      _calculator_camb_mp_cambcalc_readparams_ in Calculator_CAMB.o
  "_modelparams_mp_hofz_", referenced from:
      _calculator_camb_mp_cambcalc_hofz_ in Calculator_CAMB.o
  "_modelparams_mp_laccuracyboost_", referenced from:
      _calculator_camb_mp_cambcalc_initcambparams_ in Calculator_CAMB.o
  "_modelparams_mp_lsampleboost_", referenced from:
      _calculator_camb_mp_cambcalc_initcambparams_ in Calculator_CAMB.o
  "_modelparams_mp_luminositydistance_", referenced from:
      _calculator_camb_mp_cambcalc_luminositydistance_ in Calculator_CAMB.o
  "_modelparams_mp_thermoderivedparams_", referenced from:
      _calculator_camb_mp_cambcalc_setderived_ in Calculator_CAMB.o
  "_modelparams_mp_threadnum_", referenced from:
      _calculator_camb_mp_cambcalc_getnewtransferdata_ in Calculator_CAMB.o
      _calculator_camb_mp_cambcalc_gettheoryforimportance_ in Calculator_CAMB.o
      _calculator_camb_mp_cambcalc_initcambparams_ in Calculator_CAMB.o
  "_mpi_abort_", referenced from:
      _mpiutils_mp_getmpirank_ in MpiUtils.o
      _mpiutils_mp_ismainmpi_ in MpiUtils.o
      _mpiutils_mp_mpistat_ in MpiUtils.o
      _mpiutils_mp_mpiquietwait_ in MpiUtils.o
      _mpiutils_mp_mpiwakequietwait_ in MpiUtils.o
      _mpiutils_mp_mpisharestring_ in MpiUtils.o
      _mpiutils_mp_mpistop_ in MpiUtils.o
      ...
  "_mpi_allgather_", referenced from:
      _importancesampling_mp_timportancesampler_importancesample_ in ImportanceSampling.o
      _minimize_mp_tpowellminimizer_findbestfit_ in minimize.o
      _samplecollector_mp_tmpichaincollector_updatecovandcheckconverge_ in SampleCollector.o
  "_mpi_barrier_", referenced from:
      _minimize_mp_tpowellminimizer_findbestfit_ in minimize.o
  "_mpi_bcast_", referenced from:
      _mpiutils_mp_mpisharestring_ in MpiUtils.o
      _matrixutils_mp_matrix_inversearraympi_ in Matrix_utils_new.o
      _samplecollector_mp_checklimitsconverge_ in SampleCollector.o
      _cmblikes_mp_readcovmat_ in CMBlikes.o
      _MAIN__ in driver.o
  "_mpi_comm_rank_", referenced from:
      _mpiutils_mp_getmpirank_ in MpiUtils.o
      _mpiutils_mp_ismainmpi_ in MpiUtils.o
      _mpiutils_mp_mpistat_ in MpiUtils.o
      _mpiutils_mp_mpiquietwait_ in MpiUtils.o
      _mpiutils_mp_mpiwakequietwait_ in MpiUtils.o
      _mpiutils_mp_mpisharestring_ in MpiUtils.o
      _mpiutils_mp_mpistop_ in MpiUtils.o
      ...
  "_mpi_comm_size_", referenced from:
      _mpiutils_mp_mpistat_ in MpiUtils.o
      _mpiutils_mp_mpiquietwait_ in MpiUtils.o
      _mpiutils_mp_mpiwakequietwait_ in MpiUtils.o
  "_mpi_finalize_", referenced from:
      _settings_mp_dostop_ in settings.o
  "_mpi_init_", referenced from:
      _MAIN__ in driver.o
  "_mpi_iprobe_", referenced from:
      _mpiutils_mp_mpiquietwait_ in MpiUtils.o
      _samplecollector_mp_tmpichaincollector_addnewpoint_ in SampleCollector.o
  "_mpi_irecv_", referenced from:
      _samplecollector_mp_tmpichaincollector_addnewpoint_ in SampleCollector.o
  "_mpi_isend_", referenced from:
      _samplecollector_mp_tmpichaincollector_addnewpoint_ in SampleCollector.o
  "_mpi_issend_", referenced from:
      _mpiutils_mp_mpiwakequietwait_ in MpiUtils.o
      _samplecollector_mp_tmpichaincollector_addnewpoint_ in SampleCollector.o
  "_mpi_recv_", referenced from:
      _mpiutils_mp_mpiquietwait_ in MpiUtils.o
      _matrixutils_mp_matrix_inversearraympi_ in Matrix_utils_new.o
      _samplecollector_mp_tmpichaincollector_addnewpoint_ in SampleCollector.o
  "_mpi_send_", referenced from:
      _matrixutils_mp_matrix_inversearraympi_ in Matrix_utils_new.o
  "_mpi_testall_", referenced from:
      _samplecollector_mp_tmpichaincollector_addnewpoint_ in SampleCollector.o
  "_mpi_wtime_", referenced from:
      _mpiutils_mp_timertime_ in MpiUtils.o
      _mpiutils_mp_ttimer_start_ in MpiUtils.o
      _mpiutils_mp_ttimer_time_ in MpiUtils.o
      _mpiutils_mp_ttimer_writetime_ in MpiUtils.o
      _settings_mp_dostop_ in settings.o
      _samplecollector_mp_tmpichaincollector_readparams_ in SampleCollector.o
      _samplecollector_mp_tmpichaincollector_addnewpoint_ in SampleCollector.o
      ...
  "_nonlinear_getratios_", referenced from:
      _calculator_camb_mp_cambcalc_getnlandratios_ in Calculator_CAMB.o
  "_nonlinear_mp_halofit_version_", referenced from:
      _calculator_camb_mp_cambcalc_readparams_ in Calculator_CAMB.o
  "_reionization_mp_reionization_getoptdepth_", referenced from:
      _calculator_camb_mp_cambcalc_getopticaldepth_ in Calculator_CAMB.o
  "_rombint_", referenced from:
      _cosmology_mp_r_ in szcounts.o
      _cosmology_mp_da_ in szcounts.o
      _cosmology_mp_dvdzdo_ in szcounts.o
      _power_sz_mp_inigrowth_ in szcounts.o
      _power_sz_mp_delta_ in szcounts.o
      _szcounts_mp_szcc_cash_ in szcounts.o
      _numbercounts_mp_get_grid_ in szcounts.o
      ...
  "_transfer_mp_matterpowerdata_free_", referenced from:
      _calculator_camb_mp_cambcalc_getnlandratios_ in Calculator_CAMB.o
  "_transfer_mp_matterpowerdata_getsplines_", referenced from:
      _calculator_camb_mp_cambcalc_getnlandratios_ in Calculator_CAMB.o
  "_transfer_mp_transfer_getsigmararray_", referenced from:
      _calculator_camb_mp_cambcalc_setpkfromcamb_ in Calculator_CAMB.o
  "_transfer_mp_transfer_getunsplinedpower_", referenced from:
      _calculator_camb_mp_cambcalc_setpkfromcamb_ in Calculator_CAMB.o
  "_transfer_mp_transfer_power_var_", referenced from:
      _calculator_camb_mp_cambcalc_setpkfromcamb_ in Calculator_CAMB.o
  "_transfer_mp_transfer_setfornonlinearlensing_", referenced from:
      _calculator_camb_mp_cambcalc_initcambparams_ in Calculator_CAMB.o
  "_transfer_mp_transfer_sortandindexredshifts_", referenced from:
      _calculator_camb_mp_cambcalc_initcambparams_ in Calculator_CAMB.o
ld: symbol(s) not found for architecture x86_64
make[1]: *** [cosmomc] Error 1
make: *** [cosmomc] Error 2
I have not met this problem and do not know what I need.

Thanks advanced.

Post Reply