CESM1.2.2 build errors (shr_pcdf_mod.F90(32): error #7002)

Zcheng

Zcheng
New Member
Hello everyone, I encountered a problem while building CESM1.2.0. I was able to successfully compile mct, gtpl, and pio libraries, but I was unable to successfully compile csm_share. I searched for the corresponding log file and found that it was all about shr_pcdf_mod.F90. I'm not sure what caused this mistake. Please find the macros file at the end of this post. I have also uploaded a complete log as attachment.Thank you very much.

/data/zxie/cesm1_2_2/models/csm_share/shr/shr_pcdf_mod.F90(32): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [PIO]
use pio
------^
/data/zxie/cesm1_2_2/models/csm_share/shr/shr_pcdf_mod.F90(64): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [PIO]
use pio, only : iosystem_desc_t
------^
/data/zxie/cesm1_2_2/models/csm_share/shr/shr_pcdf_mod.F90(68): error #6406: Conflicting attributes or multiple declaration of name. [IOSYSTEM_DESC_T]
type(iosystem_desc_t) :: iosystem
-------^
/data/zxie/cesm1_2_2/models/csm_share/shr/shr_pcdf_mod.F90(157): error #6457: This derived type name has not been declared. [FILE_DESC_T]
type(file_desc_t) :: fid
-------^
/data/zxie/cesm1_2_2/models/csm_share/shr/shr_pcdf_mod.F90(158): error #6457: This derived type name has not been declared. [VAR_DESC_T]
type(var_desc_t) :: varid
-------^
/data/zxie/cesm1_2_2/models/csm_share/shr/shr_pcdf_mod.F90(159): error #6457: This derived type name has not been declared. [IO_DESC_T]
type(io_desc_t) :: iodescd
-------^
/data/zxie/cesm1_2_2/models/csm_share/shr/shr_pcdf_mod.F90(160): error #6457: This derived type name has not been declared. [IO_DESC_T]
type(io_desc_t) :: iodesci
-------^
/data/zxie/cesm1_2_2/models/csm_share/shr/shr_pcdf_mod.F90(544): error #6457: This derived type name has not been declared. [FILE_DESC_T]
type(file_desc_t),intent(in) :: fid
-------^
/data/zxie/cesm1_2_2/models/csm_share/shr/shr_pcdf_mod.F90(549): error #6457: This derived type name has not been declared. [VAR_DESC_T]
type(var_desc_t) :: varid
-------^
/data/zxie/cesm1_2_2/models/csm_share/shr/shr_pcdf_mod.F90(564): error #6457: This derived type name has not been declared. [FILE_DESC_T]
type(file_desc_t),intent(in) :: fid
-------^
/data/zxie/cesm1_2_2/models/csm_share/shr/shr_pcdf_mod.F90(570): error #6457: This derived type name has not been declared. [VAR_DESC_T]
type(var_desc_t) :: varid
-------^
/data/zxie/cesm1_2_2/models/csm_share/shr/shr_pcdf_mod.F90(585): error #6457: This derived type name has not been declared. [FILE_DESC_T]
type(file_desc_t),intent(inout) :: fid
-------^
/data/zxie/cesm1_2_2/models/csm_share/shr/shr_pcdf_mod.F90(587): error #6457: This derived type name has not been declared. [IO_DESC_T]
type(io_desc_t) ,intent(inout) :: iodesc
-------^
/data/zxie/cesm1_2_2/models/csm_share/shr/shr_pcdf_mod.F90(591): error #6457: This derived type name has not been declared. [VAR_DESC_T]
type(var_desc_t) :: varid
-------^
/data/zxie/cesm1_2_2/models/csm_share/shr/shr_pcdf_mod.F90(620): error #6457: This derived type name has not been declared. [FILE_DESC_T]
type(file_desc_t),intent(inout) :: fid

/tmp/ifort516Gga.i90(834): catastrophic error: Too many errors, exiting
compilation aborted for /data/zxie/cesm1_2_2/models/csm_share/shr/shr_pcdf_mod.F90 (code 1)
gmake: *** [shr_pcdf_mod.o] Error 1
gmake: *** Waiting for unfinished jobs....
gmake complib -j 24 MODEL=csm_share COMPLIB=libcsm_share.a USER_CPPDEFS=" -DNUM_COMP_INST_ATM=1 -DNUM_COMP_INST_LND=1 -DNUM_COMP_INST_OCN=1 -DNUM_COMP_INST_ICE=1 -DNUM_COMP_INST_GLC=1 -DNUM_COMP_INST_WAV=1 -DNUM_COMP_INST_ROF=1" -f /public/home/zxie/data/cesm1_2_2/cesm.run/test_01/Tools/Makefile returned non-zero exit status 2

====================MACROS========================## Makefile Macros generated from
CPPDEFS+= -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL

SLIBS+=-L${NETCDF}/lib -lnetcdff -lnetcdf -lnetcdff

CFLAGS:= -O2 -fp-model precise

CXX_LDFLAGS:= -cxxlib

CXX_LINKER:=FORTRAN

FC_AUTO_R8:= -r8

FFLAGS:= -fp-model source -convert big_endian -assume byterecl -ftz -traceback -assume realloc_lhs

FFLAGS_NOOPT:= -O0

FIXEDFLAGS:= -fixed -132

FREEFLAGS:= -free

MPICC:= mpiicc

MPICXX:= mpiicpc

MPIFC:= mpiifort

NETCDF_PATH:=${NETCDF}

SCC:= icc

SCXX:= icpc

SFC:= ifort

SUPPORTS_CXX:=TRUE
ifeq ($(DEBUG), TRUE)
FFLAGS += -O0 -g -check uninit -check bounds -check pointers -fpe0
endif

ifeq ($(DEBUG), FALSE)
FFLAGS += -O2
endif

ifeq ($(compile_threaded), true)
LDFLAGS += -openmp
CFLAGS += -openmp
FFLAGS += -openmp
endif

ifeq ($(MODEL), pop2)
CPPDEFS += -D_USE_FLOW_CONTROL
endif
 

Attachments

jedwards

CSEG and Liaisons
Staff member
You did not successfully build pio or you would not get this message:

/data/zxie/cesm1_2_2/models/csm_share/shr/shr_pcdf_mod.F90(32): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [PIO]
use pio
 

Zcheng

Zcheng
New Member
You did not successfully build pio or you would not get this message:

/data/zxie/cesm1_2_2/models/csm_share/shr/shr_pcdf_mod.F90(32): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [PIO]
use pio
When I downloaded the source code package for cesm1.2.2, I couldn't find the pio and mct folders in the cesm1_2_2/models folder. I downloaded these two files from Github. Can you tell me how to build Pio? Thank you.
 

Zcheng

Zcheng
New Member
You did not successfully build pio or you would not get this message:

/data/zxie/cesm1_2_2/models/csm_share/shr/shr_pcdf_mod.F90(32): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [PIO]
use pio
I have downloaded the complete source package again and there is no problem,thanks
 
Back
Top