error compiling cliklike
Posted: March 21 2014
Hi,
I have been having this problem for compiling cosmomc and don't know what to do.
After following all the instructions on the website and modifying the bashrc like this:
and putting the command
when I make the cosmomc I get the error:
Maybe it is relevant to say that when I configured the plc file i couldn't put like in the website:
./waf configure --lapack_mkl=${MKLROOT} --lapack_mkl_version=10.3 --install_all_deps
so I only put
and the lapack and blas installed automatically.
Thank you very much,
Elisa
*PS: I am compiling in a cluster and added "all"the necessary modules, including ifort 14.
I have been having this problem for compiling cosmomc and don't know what to do.
After following all the instructions on the website and modifying the bashrc like this:
Code: Select all
export PLANCKLIKE=cliklike
export CLIKPATH=/home/elisa/cosmomc_bicep2/PLC/plc-1.0/
source /home/elisa/cosmomc_bicep2/PLC/plc-1.0/bin/clik_profile.sh
export PYTHONPATH=/home/elisa/cosmomc_bicep2/cosmomc/python:$PYTHONPATH
Code: Select all
ln -s /home/elisa/cosmomc_bicep2/PLC/plc-1.0/ ./data/clik
Code: Select all
mpif90 -mkl -openmp -O3 -xHost -no-prec-div -fpp -DMPI -DCLIK -I../camb -I/home/elisa/cosmomc_bicep2/PLC/plc-1.0//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(128): error #6683: A kind type parameter must be a compile-time constant. [MCP]
real(mcp) function clik_lnlike(this, CMB, Theory, DataParams)
---------^
cliklike.f90(130): error #6457: This derived type name has not been declared. [CMBPARAMS]
Class (CMBParams) CMB
-----------^
cliklike.f90(131): error #6457: This derived type name has not been declared. [TCOSMOTHEORYPREDICTIONS]
Class(TCosmoTheoryPredictions), target :: Theory
----------^
cliklike.f90(132): 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(128): 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(128): 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(46): error #6404: This name does not have a type, and must have an explicit type. [INI]
do i=1, Ini%Count
------------^
cliklike.f90(46): error #6460: This is not a field name that is defined in the encompassing structure. [COUNT]
do i=1, Ini%Count
----------------^
cliklike.f90(47): error #6460: This is not a field name that is defined in the encompassing structure. [ITEMS]
name = Ini%Items(i)%P%Name
-------------------^
cliklike.f90(47): error #6460: This is not a field name that is defined in the encompassing structure. [NAME]
name = Ini%Items(i)%P%Name
------------------------------^
cliklike.f90(47): error #6054: A CHARACTER data type is required in this context. [NAME]
name = Ini%Items(i)%P%Name
------------------------------^
cliklike.f90(48): error #6404: This name does not have a type, and must have an explicit type. [STRINGSTARTS]
if (StringStarts(name,'clik_data_')) then
------------^
cliklike.f90(48): error #6341: A logical data type is required in this context. [STRINGSTARTS]
if (StringStarts(name,'clik_data_')) then
------------^
cliklike.f90(49): error #6460: This is not a field name that is defined in the encompassing structure. [READFILENAME]
fname = Ini%ReadFileName(name, NotFoundFail = .false.)
------------------------^
cliklike.f90(49): error #6054: A CHARACTER data type is required in this context. [INI]
fname = Ini%ReadFileName(name, NotFoundFail = .false.)
--------------------^
cliklike.f90(51): error #6404: This name does not have a type, and must have an explicit type. [MPIRANK]
if (MpiRank==0 .and. feedback > 0) &
----------------^
cliklike.f90(51): error #6404: This name does not have a type, and must have an explicit type. [FEEDBACK]
if (MpiRank==0 .and. feedback > 0) &
---------------------------------^
cliklike.f90(59): error #6404: This name does not have a type, and must have an explicit type. [LIKELIST]
call LikeList%Add(Like)
-----------------^
cliklike.f90(59): error #6460: This is not a field name that is defined in the encompassing structure. [ADD]
call LikeList%Add(Like)
--------------------------^
/tmp/ifortOf3ET2.i90(267): catastrophic error: Too many errors, exiting
compilation aborted for cliklike.f90 (code 1)
make[1]: *** [ReleaseMPI/cliklike.o] Error 1
make[1]: Leaving directory `/sb/home/elisa/cosmomc_bicep2/cosmomc/source'
make: *** [cosmomc] Error 2
./waf configure --lapack_mkl=${MKLROOT} --lapack_mkl_version=10.3 --install_all_deps
so I only put
Code: Select all
./waf configure --install_all_deps
Thank you very much,
Elisa
*PS: I am compiling in a cluster and added "all"the necessary modules, including ifort 14.