CosmoMC, compilation aborted for cliklike.f90

Use of Healpix, camb, CLASS, cosmomc, compilers, etc.
Post Reply
Joe Wraga
Posts: 3
Joined: October 09 2020
Affiliation: Drexel University

CosmoMC, compilation aborted for cliklike.f90

Post by Joe Wraga » November 03 2020

Hello. First a quick basic question: Since I am having installation issues, is it possible to simply get the Planck covariance matrix for cosmological parameters without using CosmoMC? That would help me in the short-term. I have plc-3.01 installed.

My main question is, when running make on CosmoMC-planck2018 on my Mac, I get (full error at bottom)

Code: Select all

/var/folders/m5/254dqgrn7398_c7c6g67tbcr0000gn/T/ifortY69YbZ.i90(269): catastrophic error: Too many errors, exiting
compilation aborted for cliklike.f90 (code 1)
make[1]: *** [ReleaseMPI/cliklike.o] Error 1
make: *** [cosmomc] Error 2

The bottom of my .bash_profile has

Code: Select all

export PYTHONPATH=/Users/joe/Documents/Research/CosmoMC-planck2018_2/python

export PLC_PATH=/Users/joe/Documents/Research/code/plc_3.0
export PATH=$PATH:/usr/local/bin
export I_MPI_F90=ifort
export PLANCKLIKE=cliklike
export CLIK_PATH=$PLC_PATH/plc-3.01
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CLIK_PATH/lib

source $CLIK_PATH/bin/clik_profile.sh
I note that sourcing this gives addvar:1: bad substitution, and I'm not sure what this means. The full output when running make clean && make:

Code: Select all

(base) CosmoMC-planck2018_2 % make clean && make
cd ./source && make clean
rm -f ReleaseMPI/*.o ReleaseMPI/*.mod ../core
rm -rf Release*
rm -rf Debug*
cd ../camb; make clean
rm -f *.o *.a *.d core *.mod Releaselib/*.o Releaselib/*.mod
rm -f *.o *.a *.d core *.mod ReleaseMPI/*.o ReleaseMPI/*.mod
rm -rf Release*
rm -rf Debug*
cd ./source && make cosmomc BUILD=MPI
mkdir -p ReleaseMPI
cd ../camb && \
	/Applications/Xcode.app/Contents/Developer/usr/bin/make --file=Makefile_main libcamb OUTPUT_DIR=ReleaseMPI \
	RECOMBINATION=recfast EQUATIONS=equations_ppf NONLINEAR=halofit_ppf
mkdir -p ReleaseMPI
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -module ReleaseMPI -IReleaseMPI/ -c constants.f90 -o ReleaseMPI/constants.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -module ReleaseMPI -IReleaseMPI/ -c utils.F90 -o ReleaseMPI/utils.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -module ReleaseMPI -IReleaseMPI/ -c subroutines.f90 -o ReleaseMPI/subroutines.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -module ReleaseMPI -IReleaseMPI/ -c inifile.f90 -o ReleaseMPI/inifile.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -module ReleaseMPI -IReleaseMPI/ -c power_tilt.f90 -o ReleaseMPI/power_tilt.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -module ReleaseMPI -IReleaseMPI/ -c recfast.f90 -o ReleaseMPI/recfast.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -module ReleaseMPI -IReleaseMPI/ -c reionization.f90 -o ReleaseMPI/reionization.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -module ReleaseMPI -IReleaseMPI/ -c modules.f90 -o ReleaseMPI/modules.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -module ReleaseMPI -IReleaseMPI/ -c bessels.f90 -o ReleaseMPI/bessels.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -module ReleaseMPI -IReleaseMPI/ -c equations_ppf.f90 -o ReleaseMPI/equations_ppf.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -module ReleaseMPI -IReleaseMPI/ -c halofit_ppf.f90 -o ReleaseMPI/halofit_ppf.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -module ReleaseMPI -IReleaseMPI/ -c lensing.f90 -o ReleaseMPI/lensing.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -module ReleaseMPI -IReleaseMPI/ -c SeparableBispectrum.F90 -o ReleaseMPI/SeparableBispectrum.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -module ReleaseMPI -IReleaseMPI/ -c cmbmain.f90 -o ReleaseMPI/cmbmain.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -module ReleaseMPI -IReleaseMPI/ -c camb.f90 -o ReleaseMPI/camb.o
ar -r ReleaseMPI/libcamb_recfast.a ReleaseMPI/constants.o  ReleaseMPI/utils.o   ReleaseMPI/subroutines.o ReleaseMPI/inifile.o  ReleaseMPI/power_tilt.o  ReleaseMPI/recfast.o ReleaseMPI/reionization.o ReleaseMPI/modules.o ReleaseMPI/bessels.o ReleaseMPI/equations_ppf.o ReleaseMPI/halofit_ppf.o ReleaseMPI/lensing.o ReleaseMPI/SeparableBispectrum.o ReleaseMPI/cmbmain.o ReleaseMPI/camb.o
ar: creating archive ReleaseMPI/libcamb_recfast.a
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -I../camb/ReleaseMPI -I/Users/joe/Documents/Research/code/plc_3.0/plc-3.01/include -module ReleaseMPI -IReleaseMPI/ -c MiscUtils.f90 -o ReleaseMPI/MiscUtils.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -I../camb/ReleaseMPI -I/Users/joe/Documents/Research/code/plc_3.0/plc-3.01/include -module ReleaseMPI -IReleaseMPI/ -c ArrayUtils.f90 -o ReleaseMPI/ArrayUtils.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -I../camb/ReleaseMPI -I/Users/joe/Documents/Research/code/plc_3.0/plc-3.01/include -module ReleaseMPI -IReleaseMPI/ -c StringUtils.f90 -o ReleaseMPI/StringUtils.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -I../camb/ReleaseMPI -I/Users/joe/Documents/Research/code/plc_3.0/plc-3.01/include -module ReleaseMPI -IReleaseMPI/ -c MpiUtils.f90 -o ReleaseMPI/MpiUtils.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -I../camb/ReleaseMPI -I/Users/joe/Documents/Research/code/plc_3.0/plc-3.01/include -module ReleaseMPI -IReleaseMPI/ -c FileUtils.f90 -o ReleaseMPI/FileUtils.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -I../camb/ReleaseMPI -I/Users/joe/Documents/Research/code/plc_3.0/plc-3.01/include -module ReleaseMPI -IReleaseMPI/ -c RandUtils.f90 -o ReleaseMPI/RandUtils.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -I../camb/ReleaseMPI -I/Users/joe/Documents/Research/code/plc_3.0/plc-3.01/include -module ReleaseMPI -IReleaseMPI/ -c ObjectLists.f90 -o ReleaseMPI/ObjectLists.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -I../camb/ReleaseMPI -I/Users/joe/Documents/Research/code/plc_3.0/plc-3.01/include -module ReleaseMPI -IReleaseMPI/ -c Interpolation.f90 -o ReleaseMPI/Interpolation.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -I../camb/ReleaseMPI -I/Users/joe/Documents/Research/code/plc_3.0/plc-3.01/include -module ReleaseMPI -IReleaseMPI/ -c IniObjects.f90 -o ReleaseMPI/IniObjects.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -I../camb/ReleaseMPI -I/Users/joe/Documents/Research/code/plc_3.0/plc-3.01/include -module ReleaseMPI -IReleaseMPI/ -c ObjectParamNames.f90 -o ReleaseMPI/ObjectParamNames.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -I../camb/ReleaseMPI -I/Users/joe/Documents/Research/code/plc_3.0/plc-3.01/include -module ReleaseMPI -IReleaseMPI/ -c Matrix_utils_new.f90 -o ReleaseMPI/Matrix_utils_new.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -I../camb/ReleaseMPI -I/Users/joe/Documents/Research/code/plc_3.0/plc-3.01/include -module ReleaseMPI -IReleaseMPI/ -c settings.f90 -o ReleaseMPI/settings.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -I../camb/ReleaseMPI -I/Users/joe/Documents/Research/code/plc_3.0/plc-3.01/include -module ReleaseMPI -IReleaseMPI/ -c samples.f90 -o ReleaseMPI/samples.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -I../camb/ReleaseMPI -I/Users/joe/Documents/Research/code/plc_3.0/plc-3.01/include -module ReleaseMPI -IReleaseMPI/ -c IO.f90 -o ReleaseMPI/IO.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -I../camb/ReleaseMPI -I/Users/joe/Documents/Research/code/plc_3.0/plc-3.01/include -module ReleaseMPI -IReleaseMPI/ -c GeneralTypes.f90 -o ReleaseMPI/GeneralTypes.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -I../camb/ReleaseMPI -I/Users/joe/Documents/Research/code/plc_3.0/plc-3.01/include -module ReleaseMPI -IReleaseMPI/ -c likelihood.f90 -o ReleaseMPI/likelihood.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -I../camb/ReleaseMPI -I/Users/joe/Documents/Research/code/plc_3.0/plc-3.01/include -module ReleaseMPI -IReleaseMPI/ -c BaseParameters.f90 -o ReleaseMPI/BaseParameters.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -I../camb/ReleaseMPI -I/Users/joe/Documents/Research/code/plc_3.0/plc-3.01/include -module ReleaseMPI -IReleaseMPI/ -c propose.f90 -o ReleaseMPI/propose.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -I../camb/ReleaseMPI -I/Users/joe/Documents/Research/code/plc_3.0/plc-3.01/include -module ReleaseMPI -IReleaseMPI/ -c ParamSet.f90 -o ReleaseMPI/ParamSet.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -I../camb/ReleaseMPI -I/Users/joe/Documents/Research/code/plc_3.0/plc-3.01/include -module ReleaseMPI -IReleaseMPI/ -c PowellConstrainedMinimize.f90 -o ReleaseMPI/PowellConstrainedMinimize.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -I../camb/ReleaseMPI -I/Users/joe/Documents/Research/code/plc_3.0/plc-3.01/include -module ReleaseMPI -IReleaseMPI/ -c CosmologyTypes.f90 -o ReleaseMPI/CosmologyTypes.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -I../camb/ReleaseMPI -I/Users/joe/Documents/Research/code/plc_3.0/plc-3.01/include -module ReleaseMPI -IReleaseMPI/ -c CosmoTheory.f90 -o ReleaseMPI/CosmoTheory.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -I../camb/ReleaseMPI -I/Users/joe/Documents/Research/code/plc_3.0/plc-3.01/include -module ReleaseMPI -IReleaseMPI/ -c Calculator_Cosmology.f90 -o ReleaseMPI/Calculator_Cosmology.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -I../camb/ReleaseMPI -I/Users/joe/Documents/Research/code/plc_3.0/plc-3.01/include -module ReleaseMPI -IReleaseMPI/ -c Likelihood_Cosmology.f90 -o ReleaseMPI/Likelihood_Cosmology.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -I../camb/ReleaseMPI -I/Users/joe/Documents/Research/code/plc_3.0/plc-3.01/include -module ReleaseMPI -IReleaseMPI/ -c CMBlikes.f90 -o ReleaseMPI/CMBlikes.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -I../camb/ReleaseMPI -I/Users/joe/Documents/Research/code/plc_3.0/plc-3.01/include -module ReleaseMPI -IReleaseMPI/ -c CMB_BK_Planck.f90 -o ReleaseMPI/CMB_BK_Planck.o
ifort -mkl -O3 -no-prec-div -fpp -qopenmp -fopenmp -xHost -DMPI -DCLIK -I../camb/ReleaseMPI -I/Users/joe/Documents/Research/code/plc_3.0/plc-3.01/include -module ReleaseMPI -IReleaseMPI/ -c cliklike.f90 -o ReleaseMPI/cliklike.o
cliklike.f90(2): error #7013: This module file was not generated by any release of this compiler.   [CLIK]
    use clik
--------^
cliklike.f90(13): error #6457: This derived type name has not been declared.   [TCMBLIKELIHOOD]
    type, extends(TCMBLikelihood) :: ClikLikelihood
------------------^
cliklike.f90(14): error #6457: This derived type name has not been declared.   [CLIK_OBJECT]
        type(clik_object) :: clikid
-------------^
cliklike.f90(39): error #6457: This derived type name has not been declared.   [TLIKELIHOODLIST]
    class(TLikelihoodList) :: LikeList
----------^
cliklike.f90(40): error #6457: This derived type name has not been declared.   [TSETTINGINI]
    class(TSettingIni) Ini
----------^
cliklike.f90(129): error #6683: A kind type parameter must be a compile-time constant.   [MCP]
    real(mcp) function clik_lnlike(this, CMB, Theory, DataParams)
---------^
cliklike.f90(131): error #6457: This derived type name has not been declared.   [CMBPARAMS]
    Class (CMBParams) CMB
-----------^
cliklike.f90(132): error #6457: This derived type name has not been declared.   [TCOSMOTHEORYPREDICTIONS]
    Class(TCosmoTheoryPredictions), target :: Theory
----------^
cliklike.f90(133): error #6683: A kind type parameter must be a compile-time constant.   [MCP]
    real(mcp) DataParams(:)
---------^
cliklike.f90(218): error #6683: A kind type parameter must be a compile-time constant.   [MCP]
    real(mcp) function clik_lensing_lnlike(this, CMB, Theory, DataParams)
---------^
cliklike.f90(220): error #6457: This derived type name has not been declared.   [CMBPARAMS]
    Class (CMBParams) CMB
-----------^
cliklike.f90(221): error #6457: This derived type name has not been declared.   [TCOSMOTHEORYPREDICTIONS]
    Class(TCosmoTheoryPredictions), target :: Theory
----------^
cliklike.f90(222): error #6683: A kind type parameter must be a compile-time constant.   [MCP]
    real(mcp) DataParams(:)
---------^
cliklike.f90(218): error #6404: This name does not have a type, and must have an explicit type.   [CMB]
    real(mcp) function clik_lensing_lnlike(this, CMB, Theory, DataParams)
-------------------------------------------------^
cliklike.f90(129): error #6404: This name does not have a type, and must have an explicit type.   [CMB]
    real(mcp) function clik_lnlike(this, CMB, Theory, DataParams)
-----------------------------------------^
cliklike.f90(218): error #6404: This name does not have a type, and must have an explicit type.   [THEORY]
    real(mcp) function clik_lensing_lnlike(this, CMB, Theory, DataParams)
------------------------------------------------------^
cliklike.f90(129): error #6404: This name does not have a type, and must have an explicit type.   [THEORY]
    real(mcp) function clik_lnlike(this, CMB, Theory, DataParams)
----------------------------------------------^
cliklike.f90(47): error #6404: This name does not have a type, and must have an explicit type.   [INI]
    do i=1, Ini%Count
------------^
cliklike.f90(47): error #6460: This is not a field name that is defined in the encompassing structure.   [COUNT]
    do i=1, Ini%Count
----------------^
cliklike.f90(48): error #6460: This is not a field name that is defined in the encompassing structure.   [ITEMS]
        name = Ini%Items(i)%P%Name
-------------------^
cliklike.f90(48): error #6460: This is not a field name that is defined in the encompassing structure.   [NAME]
        name = Ini%Items(i)%P%Name
------------------------------^
cliklike.f90(48): error #6054: A CHARACTER data type is required in this context.   [NAME]
        name = Ini%Items(i)%P%Name
------------------------------^
cliklike.f90(49): error #6404: This name does not have a type, and must have an explicit type.   [STRINGSTARTS]
        if (StringStarts(name,'clik_data_')) then
------------^
cliklike.f90(49): error #6341: A logical data type is required in this context.   [STRINGSTARTS]
        if (StringStarts(name,'clik_data_')) then
------------^
cliklike.f90(50): error #6460: This is not a field name that is defined in the encompassing structure.   [READFILENAME]
            fname = Ini%ReadFileName(name, NotFoundFail = .false.)
------------------------^
cliklike.f90(50): error #6054: A CHARACTER data type is required in this context.   [INI]
            fname = Ini%ReadFileName(name, NotFoundFail = .false.)
--------------------^
cliklike.f90(52): error #6404: This name does not have a type, and must have an explicit type.   [MPIRANK]
            if (MpiRank==0 .and. feedback > 0) &
----------------^
cliklike.f90(52): error #6404: This name does not have a type, and must have an explicit type.   [FEEDBACK]
            if (MpiRank==0 .and. feedback > 0) &
---------------------------------^
cliklike.f90(61): error #6404: This name does not have a type, and must have an explicit type.   [LIKELIST]
            call LikeList%Add(Like)
-----------------^
cliklike.f90(61): error #6460: This is not a field name that is defined in the encompassing structure.   [ADD]
            call LikeList%Add(Like)
--------------------------^
/var/folders/m5/254dqgrn7398_c7c6g67tbcr0000gn/T/ifortY69YbZ.i90(269): catastrophic error: Too many errors, exiting
compilation aborted for cliklike.f90 (code 1)
make[1]: *** [ReleaseMPI/cliklike.o] Error 1
make: *** [cosmomc] Error 2


Post Reply