CESM1.2.1 build errors (shr_pio_mod.F90(9): error #6580)

Dear all, I am porting CESM1.2.1 on a cluster that previously works well with CESM1.0.4Several errors poped up during building. At first, it was something like a previous post (https://bb.cgd.ucar.edu/shrspfnmodf90)cesm1_2_0/models/csm_share/shr/shr_spfn_mod.F90(304): error #6407: This symbolic name is not an intrinsic function name or an intrinsic subroutine name.   [ERFC_SCALED]
I commented out HAVE_GAMMA_INTRINSICS and HAVE_ERF_INTRINSICS in (shr_spfn_mod.F90) as suggested on that post. Then something else went wrong. Please find the macros file at the end of this post. I have also uploaded a complete log as attachment.Thank you very much.
Wade
===========================================================/lustre/wade/cesm1_2_1/models/csm_share/shr/shr_pio_mod.F90(9): error #7881: This module file was generated for a different platform or by an incompatible compiler or compiler release. It cannot be read.   [MPI]  use mpi, only : mpi_comm_null, mpi_comm_world------^/lustre/wade/cesm1_2_1/models/csm_share/shr/shr_pio_mod.F90(9): error #6580: Name in only-list does not exist.   [MPI_COMM_NULL]  use mpi, only : mpi_comm_null, mpi_comm_world------------------^/lustre/wade/cesm1_2_1/models/csm_share/shr/shr_pio_mod.F90(9): error #6580: Name in only-list does not exist.   [MPI_COMM_WORLD]  use mpi, only : mpi_comm_null, mpi_comm_world---------------------------------^/lustre/wade/cesm1_2_1/models/csm_share/shr/shr_pio_mod.F90(76): error #6406: Conflicting attributes or multiple declaration of name.   [MPI_COMM_NULL]    io_comm = MPI_COMM_NULL--------------^/lustre/wade/cesm1_2_1/models/csm_share/shr/shr_pio_mod.F90(162): error #6406: Conflicting attributes or multiple declaration of name.   [MPI_COMM_WORLD]       call pio_init(total_comps,mpi_comm_world, comp_comm, io_comm, iosystems)---------------------------------^/lustre/wade/cesm1_2_1/models/csm_share/shr/shr_pio_mod.F90(162): error #6285: There is no matching specific subroutine for this generic subroutine call.   [PIO_INIT]       call pio_init(total_comps,mpi_comm_world, comp_comm, io_comm, iosystems)------------^/lustre/wade/cesm1_2_1/models/csm_share/shr/shr_pio_mod.F90(192): error #6406: Conflicting attributes or multiple declaration of name.   [MPI_COMM_NULL]                if(iosystems(i)%comp_comm==MPI_COMM_NULL) then-------------------------------------------^/lustre/wade/cesm1_2_1/models/csm_share/shr/shr_pio_mod.F90(224): error #6406: Conflicting attributes or multiple declaration of name.   [MPI_COMM_NULL]       if(iosystems(i)%comp_comm /= MPI_COMM_NULL) then------------------------------------^compilation aborted for /lustre/wade/cesm1_2_1/models/csm_share/shr/shr_pio_mod.F90 (code 1)gmake: *** [shr_pio_mod.o] Error 1gmake: *** Waiting for unfinished jobs.... gmake complib -j 12 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 /lustre/wade/cesm1_2_1/scripts/biteme1/Tools/Makefile  returned non-zero exit status 2
====================MACROS========================## Makefile Macros generated from /lustre/wade/cesm1_2_1/scripts/ccsm_utils/Machines/config_compilers.xml using# COMPILER=intel# OS=LINUX# MACH=pku#CPPDEFS+= -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL 
SLIBS+=-L/opt/netcdf/4.1.3/icc/lib -lnetcdf -lnetcdff
CFLAGS:= -O2 -fp-model precise 
CXX_LDFLAGS:= -cxxlib 
CXX_LINKER:=FORTRAN
FC_AUTO_R8:= -r8 
FFLAGS:= -O2 -fp-model source -convert big_endian -assume byterecl -ftz -traceback 
FFLAGS_NOOPT:= -O0 
FIXEDFLAGS:= -fixed -132 
FREEFLAGS:= -free 
MPICC:= mpiicc  
MPICXX:= mpicxx 
MPIFC:= mpiifort 
NETCDF_PATH:=/opt/netcdf/4.1.3/icc
SCC:= icc 
SCXX:= icpc 
SFC:= ifort 
SUPPORTS_CXX:=TRUE
ifeq ($(DEBUG), TRUE)    FFLAGS += -g -CU -check pointers -fpe0 endif
ifeq ($(compile_threaded), true)    LDFLAGS += -openmp    CFLAGS += -openmp    FFLAGS += -openmp endif  
 
Back
Top