compiling error : make: *** [cmbdata.o] Error 1

Use of Healpix, camb, CLASS, cosmomc, compilers, etc.
Post Reply
avery kim
Posts: 1
Joined: July 22 2015
Affiliation: UC Berkeley

compiling error : make: *** [cmbdata.o] Error 1

Post by avery kim » July 22 2015

Hi, I have a compiling error I don't understand.
Here is my makefile in the source:

#Intel MPI (assuming mpif90 set to point to ifort)
#these settings for ifort 11.1 and higher; may need to add explicit link directory otherwise
F90C = ftn
#mpif90 -f90=ifort
#-DTWOFREQ -DNO220
#-DTWOFREQ -DNO150
#-DTWOFREQ -DNO90
#FFLAGS = -g -O0 -ip -W0 -WB -openmp -fpp -DMPI -vec_report0 -mkl=parallel
#FFLAGS = -g -check bounds -traceback
FFLAGS = -O2 -Vaxlib -ip -W0 -WB -openmp -fpp -mkl
#-O2 -ip -W0 -WB -openmp -fpp -DMPI -vec report0 -mkl=parallel
LAPACKL =
#-lmkl_lapack

------
I am using a cluster which support ifortan as ftn. That's why I set F90C=ftn.
And following is the part of error message:

ifort: command line remark #10148: option '-Vaxlib' not supported
ftn -DMATRIX_SINGLE -O2 -Vaxlib -ip -W0 -WB -openmp -fpp -mkl -I../camb -DNOWMAP -c cmbdata.F90
Warning:
libraries from PE_LIBSCI will be ignored because they conflict with -mkl.

ifort: command line remark #10148: option '-Vaxlib' not supported
Cannot disable Fortran error message 7002
cmbdata.F90(1140): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [PICO_LNL]
use pico_lnl, only : P_LNL, PICO_LNL_PARAM_SETS, &
-------^
Cannot disable Fortran error message 7002
cmbdata.F90(1142): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [PICO_CAMB_INTERFACE]
use pico_camb_interface, only : lnlike_set_from_pico, pico_lnl_index
-------^
Cannot disable Fortran error message 6404
cmbdata.F90(1230): error #6404: This name does not have a type, and must have an explicit type. [LNLIKE_SET_FROM_PICO]
if (lnlike_set_from_pico) then
------------^
Cannot disable Fortran error message 6341
cmbdata.F90(1230): error #6341: A logical data type is required in this context. [LNLIKE_SET_FROM_PICO]
if (lnlike_set_from_pico) then
------------^
Cannot disable Fortran error message 6404
cmbdata.F90(1238): error #6404: This name does not have a type, and must have an explicit type. [PICO_LNL_INDEX]
tot(i) = pico_lnlikes(pico_lnl_index)
---------------------------------^
Cannot disable Fortran error message 6341
cmbdata.F90(1261): error #6341: A logical data type is required in this context. [LNLIKE_SET_FROM_PICO]
if (lnlike_set_from_pico) call Pico_LNL_CleanResults
------^
Cannot disable Fortran error message 6580
cmbdata.F90(1140): error #6580: Name in only-list does not exist. [P_LNL]
use pico_lnl, only : P_LNL, PICO_LNL_PARAM_SETS, &
------------------------^
Cannot disable Fortran error message 6279
cmbdata.F90(1154): error #6279: A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association. [PICO_LNL_PARAM_SETS]
real(dl), dimension(1:PICO_LNL_PARAM_SETS) :: pico_lnlikes
-------------------------^
Cannot disable Fortran error message 6580
cmbdata.F90(1140): error #6580: Name in only-list does not exist. [PICO_LNL_PARAM_SETS]
use pico_lnl, only : P_LNL, PICO_LNL_PARAM_SETS, &
-------------------------------^
Cannot disable Fortran error message 6580
cmbdata.F90(1141): error #6580: Name in only-list does not exist. [PICO_LNL_SETLNLIKES]
Pico_LNL_SetLnLikes, Pico_LNL_CleanResults
--------^
Cannot disable Fortran error message 6580
cmbdata.F90(1141): error #6580: Name in only-list does not exist. [PICO_LNL_CLEANRESULTS]
Pico_LNL_SetLnLikes, Pico_LNL_CleanResults
-----------------------------^
Cannot disable Fortran error message 6580
cmbdata.F90(1142): error #6580: Name in only-list does not exist. [LNLIKE_SET_FROM_PICO]
use pico_camb_interface, only : lnlike_set_from_pico, pico_lnl_index
-----------------------------------^
Cannot disable Fortran error message 6580
cmbdata.F90(1142): error #6580: Name in only-list does not exist. [PICO_LNL_INDEX]
use pico_camb_interface, only : lnlike_set_from_pico, pico_lnl_index
---------------------------------------------------------^
Cannot disable Fortran error message 6404
cmbdata.F90(1154): error #6404: This name does not have a type, and must have an explicit type. [PICO_LNL_PARAM_SETS]
real(dl), dimension(1:PICO_LNL_PARAM_SETS) :: pico_lnlikes
-------------------------^
compilation aborted for cmbdata.F90 (code 1)
make: *** [cmbdata.o] Error 1

I tried changing FFLAGS = -O2 -ffree-form on the way, but still have same error. I will appreciate any help!

Thanks,
Avery

Antony Lewis
Posts: 1647
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: compiling error : make: *** [cmbdata.o] Error 1

Post by Antony Lewis » July 22 2015

cmbdata.f90 is not part of the latest CosmoMC, so I guess this is a custom module. The errors look like just a problem linking with pico.

Post Reply