CESM 1.2.2 build failed using mpiifort

I am using the intel compiler to compile CESM 1.2.2. I get the following error while building. Please help me fix it.Is the SLIBS environment variable set correctly?My Macros file[nitin@master case_B_f19_g16_userdefined_2]$ cat ./Macros
#
# Makefile Macros generated from /storage/home/nitin/CESM/cesm1_2_2/scripts/ccsm_utils/Machines/config_compilers.xml using
# COMPILER=intel
# OS=LINUX
# MACH=userdefined
#
CPPDEFS+= -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL

SLIBS+=# USERDEFINED $(shell $(NETCDF_PATH)/bin/nc-config --flibs)

CFLAGS:= -O2 -fp-model precise

CONFIG_ARGS:=

CXX_LDFLAGS:= -cxxlib

CXX_LINKER:=FORTRAN

ESMF_LIBDIR:=

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:= mpiicc

MPIFC:= mpiifort

MPI_LIB_NAME:=

MPI_PATH:= /opt/intel/impi/4.1.3.048/intel64

NETCDF_PATH:= /usr/local/lib64/netcdfF-install

PNETCDF_PATH:=

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  Most of my modules build fine. But I get the following error.-------------------------------------------------------------------------
 CESM BUILDEXE SCRIPT STARTING
rm: No match.
 COMPILER is intel
 - Build Libraries: mct gptl pio csm_share
Tue Dec 2 16:42:12 IST 2014 /home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/intel/impi/nodebug/nothreads/mct.bldlog.141202-164205
Tue Dec 2 16:42:13 IST 2014 /home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/intel/impi/nodebug/nothreads/gptl.bldlog.141202-164205
Tue Dec 2 16:42:13 IST 2014 /home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/intel/impi/nodebug/nothreads/pio.bldlog.141202-164205
Tue Dec 2 16:42:14 IST 2014 /home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/intel/impi/nodebug/nothreads/csm_share.bldlog.141202-164205
Tue Dec 2 16:42:14 IST 2014 /home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/atm.bldlog.141202-164205
Tue Dec 2 16:42:14 IST 2014 /home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/lnd.bldlog.141202-164205
Tue Dec 2 16:42:14 IST 2014 /home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/ice.bldlog.141202-164205
Tue Dec 2 16:42:14 IST 2014 /home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/ocn.bldlog.141202-164205
Tue Dec 2 16:42:16 IST 2014 /home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/glc.bldlog.141202-164205
Tue Dec 2 16:42:16 IST 2014 /home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/wav.bldlog.141202-164205
Tue Dec 2 16:42:16 IST 2014 /home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/rof.bldlog.141202-164205
Tue Dec 2 16:42:16 IST 2014 /home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/cesm.bldlog.141202-164205
ERROR: cesm.buildexe.csh failed, see /home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/cesm.bldlog.141202-164205
ERROR: cat /home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/cesm.bldlog.141202-164205      
 

jedwards

CSEG and Liaisons
Staff member
SLIBS is not correct and the netcdff library is missing on your link line.   TrySLIBS += -L/usr/local/lib64/netcdfF-install -lnetcdff -lnetcdf
 
When I tried giving the same path as the above. I got an error saying "-lnetcdff is not recognized". SLIBS should point to the netcdf library. -lnetcdf is an option for Cand -lnetcdff is an option for FortranI changed the SLIBS to point to SLIBS+= -L/usr/local/lib64/netcdfF-install/lib -lnetcdff. And it built successfully. Thanks a lot for the help.      
 
I recently changed the NetCDF install path. I changed the macros file and the set a couple of environment variables. The macros file is:[nitin@master case_B_f19_g16_userdefined_2]$ cat ./Macros## Makefile Macros generated from /storage/home/nitin/CESM/cesm1_2_2/scripts/ccsm_utils/Machines/config_compilers.xml using# COMPILER=intel# OS=LINUX# MACH=userdefined#CPPDEFS+= -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL SLIBS+= -L/storage/softwares/installedsoftware/netcdfF-install/lib -L/storage/softwares/installedsoftware/netcdfF-install/ -L/storage/softwares/installedsoftware/netcdfF-install/include  -lnetcdff CFLAGS:= -O2 -fp-model precise CONFIG_ARGS:= CXX_LDFLAGS:= -cxxlib CXX_LINKER:=FORTRAN ESMF_LIBDIR:= 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:= mpiicc MPIFC:= mpiifort MPI_LIB_NAME:= MPI_PATH:= /opt/intel/impi/4.1.3.048/intel64 NETCDF_PATH:= /storage/softwares/installedsoftware/netcdfF-install/ PNETCDF_PATH:= SCC:= icc SCXX:= icpc SFC:= ifort SUPPORTS_CXX:=TRUE ifeq ($(DEBUG), TRUE)   FFLAGS += -O0 -g -check uninit -check bounds -check pointers -fpe0endif ifeq ($(DEBUG), FALSE)   FFLAGS += -O2endif ifeq ($(compile_threaded), true)   LDFLAGS += -openmp   CFLAGS += -openmp   FFLAGS += -openmpendif ifeq ($(MODEL), pop2)   CPPDEFS += -D_USE_FLOW_CONTROLendif The environement variables used are as follows:export PERL_LOCAL_LIB_ROOT=/usr/lib64/perl5/XMLexport PATH=/usr/lib64/perl5/XML:/usr/lib64:$PATHexport PERL5LIB=/usr/lib64/perl5/XML:/usr/lib64:$PERL5LIBexport NETCDF_PATH=/storage/softwares/installedsoftware/netcdfF-install:/storage/softwares/installedsoftware/netcdfC-install:$NETCDF_PATHexport LD_LIBRARY_PATH=/storage/softwares/installedsoftware/netcdfC-install/lib:/storage/softwares/installedsoftware/netcdfF-install/lib:$LD_LIBRARY_PATHexport LD_INCLUDE_PATH=/storage/softwares/installedsoftware/netcdfC-install/include:/storage/softwares/installedsoftware/netcdfF-install/include:/usr/lib64/perl5/XML/:$LD_INCLUDE_PATHexport CPPFLAGS=-I/storage/softwares/installedsoftware/netcdfC-install/includeexport LDFLAGS=-L/storage/softwares/installedsoftware/netcdfC-install/lib:-L/storage/softwares/installedsoftware/netcdfC-install:-L/storage/softwares/installedsoftware/netcdfF-install:-L/storage/softwares/installedsoftware/netcdfF-install/lib                            The macros file is as follows[nitin@master case_B_f19_g16_userdefined_2]$ cat Macros## Makefile Macros generated from /storage/home/nitin/CESM/cesm1_2_2/scripts/ccsm_utils/Machines/config_compilers.xml using# COMPILER=intel# OS=LINUX# MACH=userdefined#CPPDEFS+= -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL SLIBS+= -L/storage/softwares/installedsoftware/netcdfF-install/lib -L/storage/softwares/installedsoftware/netcdfF-install/ -L/storage/softwares/installedsoftware/netcdfF-install/include  -lnetcdff CFLAGS:= -O2 -fp-model precise CONFIG_ARGS:= CXX_LDFLAGS:= -cxxlib CXX_LINKER:=FORTRAN ESMF_LIBDIR:= 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:= mpiicc MPIFC:= mpiifort MPI_LIB_NAME:= MPI_PATH:= /opt/intel/impi/4.1.3.048/intel64 NETCDF_PATH:= /storage/softwares/installedsoftware/netcdfF-install/lib/ PNETCDF_PATH:= SCC:= icc SCXX:= icpc SFC:= ifort SUPPORTS_CXX:=TRUE ifeq ($(DEBUG), TRUE)   FFLAGS += -O0 -g -check uninit -check bounds -check pointers -fpe0endif ifeq ($(DEBUG), FALSE)   FFLAGS += -O2endif ifeq ($(compile_threaded), true)   LDFLAGS += -openmp   CFLAGS += -openmp   FFLAGS += -openmpendif ifeq ($(MODEL), pop2)   CPPDEFS += -D_USE_FLOW_CONTROLendif  The error shown when I build the case is as follows:[nitin@master case_B_f19_g16_userdefined_2]$ ./case_B_f19_g16_userdefined_2.build------------------------------------------------------------------------- CESM BUILDNML SCRIPT STARTING - To prestage restarts, untar a restart.tar file into /home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/Run/ infile is /storage/home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/Buildconf/cplconf/cesm_namelistCAM writing dry deposition namelist to drv_flds_inCAM writing namelist to atm_inCLM configure done.CLM adding use_case 2000_control defaults for var sim_year with val 2000CLM adding use_case 2000_control defaults for var sim_year_range with val constantCLM adding use_case 2000_control defaults for var use_case_desc with val Conditions to simulate 2000 land-useCICE configure done.POP2 build-namelist: ocn_grid is gx1v6POP2 build-namelist: ocn_tracer_modules are  iage CESM BUILDNML SCRIPT HAS FINISHED SUCCESSFULLY-------------------------------------------------------------------------------------------------------------------------------------------------- CESM PRESTAGE SCRIPT STARTING - Case input data directory, DIN_LOC_ROOT, is /home/nitin/CESM/cesm1_2_2/input_data - Checking the existence of input datasets in DIN_LOC_ROOT CESM PRESTAGE SCRIPT HAS FINISHED SUCCESSFULLY-------------------------------------------------------------------------------------------------------------------------------------------------- CESM BUILDEXE SCRIPT STARTINGrm: No match. COMPILER is intel - Build Libraries: mct gptl pio csm_shareTue Dec 16 20:41:50 IST 2014 /home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/intel/impi/nodebug/nothreads/mct.bldlog.141216-204143Tue Dec 16 20:41:51 IST 2014 /home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/intel/impi/nodebug/nothreads/gptl.bldlog.141216-204143Tue Dec 16 20:41:51 IST 2014 /home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/intel/impi/nodebug/nothreads/pio.bldlog.141216-204143Tue Dec 16 20:41:52 IST 2014 /home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/intel/impi/nodebug/nothreads/csm_share.bldlog.141216-204143Tue Dec 16 20:41:52 IST 2014 /home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/atm.bldlog.141216-204143ERROR: cam.buildexe.csh failed, see /home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/atm.bldlog.141216-204143ERROR: cat /home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/atm.bldlog.141216-204143      The log file shows the following error   [nitin@master case_B_f19_g16_userdefined_2]$ cat /home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/atm.bldlog.141216-204143Tue Dec 16 20:41:52 IST 2014 /home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/atm.bldlog.141216-204143mpiifort  -c -I.  -I/home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/intel/impi/nodebug/nothreads/include -I/home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/intel/impi/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/storage/softwares/installedsoftware/netcdfF-install/lib/ /include -I/opt/intel/impi/4.1.3.048/intel64/include -I/home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/intel/impi/nodebug/nothreads/include -I/storage/home/nitin/CESM/cesm1_2_2/models/csm_share/shr -I. -I/storage/home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/SourceMods/src.cam -I/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/chemistry/pp_none -I/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/chemistry/mozart -I/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/chemistry/bulk_aero -I/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/chemistry/utils -I/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/physics/cam -I/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/dynamics/fv -I/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/utils/pilgrim -I/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/cpl_mct -I/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/cpl_share -I/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control -I/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/utils -I/home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/lib/include  -fp-model source -convert big_endian -assume byterecl -ftz -traceback -assume realloc_lhs  -O2  -DCO2A -DMAXPATCH_PFT=numpft+1 -DLSMLAT=1 -DLSMLON=1 -DPLON=144 -DPLAT=96 -DPLEV=26 -DPCNST=3 -DPCOLS=16 -DPSUBCOLS=1 -DPTRM=1 -DPTRN=1 -DPTRK=1 -DSTAGGERED  -DSPMD -DLINUX  -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL  -DHAVE_SLASHPROC -free   /storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/utils/pilgrim/decompmodule.F90mpiifort  -c -I.  -I/home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/intel/impi/nodebug/nothreads/include -I/home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/intel/impi/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/storage/softwares/installedsoftware/netcdfF-install/lib/ /include -I/opt/intel/impi/4.1.3.048/intel64/include -I/home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/intel/impi/nodebug/nothreads/include -I/storage/home/nitin/CESM/cesm1_2_2/models/csm_share/shr -I. -I/storage/home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/SourceMods/src.cam -I/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/chemistry/pp_none -I/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/chemistry/mozart -I/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/chemistry/bulk_aero -I/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/chemistry/utils -I/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/physics/cam -I/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/dynamics/fv -I/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/utils/pilgrim -I/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/cpl_mct -I/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/cpl_share -I/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control -I/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/utils -I/home/nitin/CESM/cesm1_2_2/nitin_cases/case_B_f19_g16_userdefined_2/lib/include  -fp-model source -convert big_endian -assume byterecl -ftz -traceback -assume realloc_lhs  -O2  -DCO2A -DMAXPATCH_PFT=numpft+1 -DLSMLAT=1 -DLSMLON=1 -DPLON=144 -DPLAT=96 -DPLEV=26 -DPCNST=3 -DPCOLS=16 -DPSUBCOLS=1 -DPTRM=1 -DPTRN=1 -DPTRK=1 -DSTAGGERED  -DSPMD -DLINUX  -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL  -DHAVE_SLASHPROC -free   /storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/chemistry/pp_none/mo_rxt_rates_conv.F90ifort: error #10236: File not found:  '/include'/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/error_messages.F90(96): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [NETCDF]     use netcdf---------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/error_messages.F90(106): error #6404: This name does not have a type, and must have an explicit type.   [NF90_NOERR]      if ( ret .ne. NF90_NOERR ) then--------------------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/error_messages.F90(112): error #6404: This name does not have a type, and must have an explicit type.   [NF90_STRERROR]         write(iulog,*) nf90_strerror( ret )------------------------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(16): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [NETCDF]  use netcdf------^compilation aborted for /storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/error_messages.F90 (code 1)/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(43): error #6404: This name does not have a type, and must have an explicit type.   [NF90_REDEF]   ret = nf90_redef (nfid)---------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(44): error #6404: This name does not have a type, and must have an explicit type.   [NF90_NOERR]   if (ret/=NF90_NOERR) call handle_error (ret)------------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(57): error #6404: This name does not have a type, and must have an explicit type.   [NF90_ENDDEF]   ret = nf90_enddef (nfid)---------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(78): error #6404: This name does not have a type, and must have an explicit type.   [NF90_CREATE]   ret = nf90_create (path, cmode, ncid)---------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(99): error #6632: Keyword arguments are invalid without an explicit interface.   [UNLIMITEDDIMID]    ret = nf90_inquire(nfid, unlimitedDimId=dimid)-----------------------------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(99): error #6404: This name does not have a type, and must have an explicit type.   [NF90_INQUIRE]    ret = nf90_inquire(nfid, unlimitedDimId=dimid)----------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(119): error #6404: This name does not have a type, and must have an explicit type.   [NF90_INQUIRE_DIMENSION]   ret = nf90_inquire_dimension (nfid, dimid, dimname, dimlen)---------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(139): error #6404: This name does not have a type, and must have an explicit type.   [NF90_INQUIRE]   ret = nf90_inquire (nfid, nvars)---------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(158): error #6404: This name does not have a type, and must have an explicit type.   [NF90_INQUIRE]   ret = nf90_inquire(nfid, ndims)---------^gmake: *** [error_messages.o] Error 1/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(181): error #6404: This name does not have a type, and must have an explicit type.   [NF90_INQ_DIMID]    ret = nf90_inq_dimid (nfid, dimname, dimid)---------^gmake: *** Waiting for unfinished jobs..../storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(183): error #6404: This name does not have a type, and must have an explicit type.   [NF90_EBADDIM]   if (ret/=NF90_EBADDIM) call handle_error (ret)------------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(206): error #6632: Keyword arguments are invalid without an explicit interface.   [LEN]   ret = nf90_inquire_dimension (nfid, dimid, len=dimlen)----------------------------------------------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(206): error #6404: This name does not have a type, and must have an explicit type.   [NF90_INQUIRE_DIMENSION]   ret = nf90_inquire_dimension (nfid, dimid, len=dimlen)---------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(228): error #6632: Keyword arguments are invalid without an explicit interface.   [DIMIDS]   ret = nf90_inquire_variable (nfid, varid, dimids=dimids)---------------------------------------------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(228): error #6404: This name does not have a type, and must have an explicit type.   [NF90_INQUIRE_VARIABLE]   ret = nf90_inquire_variable (nfid, varid, dimids=dimids)---------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(250): error #6632: Keyword arguments are invalid without an explicit interface.   [NDIMS]   ret = nf90_inquire_variable (nfid, varid, ndims=ndims)---------------------------------------------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(250): error #6404: This name does not have a type, and must have an explicit type.   [NF90_INQUIRE_VARIABLE]   ret = nf90_inquire_variable (nfid, varid, ndims=ndims)---------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(274): error #6404: This name does not have a type, and must have an explicit type.   [NF90_INQ_VARID]   ret = nf90_inq_varid (nfid, varname, varid)---------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(313): error #6404: This name does not have a type, and must have an explicit type.   [NF90_INQUIRE_VARIABLE]   ret = nf90_inquire_variable (nfid, varid, varname, xtype, ndims, dimids, &---------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(336): error #6404: This name does not have a type, and must have an explicit type.   [NF90_INQUIRE_VARIABLE]   ret = nf90_inquire_variable(nfid, varid, varname)---------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(359): error #6404: This name does not have a type, and must have an explicit type.   [NF90_GET_ATT]   ret = nf90_get_att(nfid, varid, attname, atttext)---------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(390): error #6404: This name does not have a type, and must have an explicit type.   [NF90_PUT_ATT]   ret = nf90_put_att(nfid, varid, attname, atttext)---------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(416): error #6404: This name does not have a type, and must have an explicit type.   [NF90_PUT_ATT]   ret = nf90_put_att(nfid, varid, attname, attval)---------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(437): error #6404: This name does not have a type, and must have an explicit type.   [NF90_DEF_DIM]   ret = nf90_def_dim (nfid, dimname, len, dimid)---------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(462): error #6404: This name does not have a type, and must have an explicit type.   [NF90_DEF_VAR]   ret = nf90_def_var(nfid, name, xtype, vdims, varid)---------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(484): error #6404: This name does not have a type, and must have an explicit type.   [NF90_GET_VAR]   ret = nf90_get_var (nfid, varid, arr)---------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(509): error #6404: This name does not have a type, and must have an explicit type.   [NF90_GET_VAR]   ret = nf90_get_var (nfid, varid, arr)---------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(534): error #6404: This name does not have a type, and must have an explicit type.   [NF90_GET_VAR]   ret = nf90_get_var (nfid, varid, x)---------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90(559): error #6404: This name does not have a type, and must have an explicit type.   [NF90_GET_VAR]   ret = nf90_get_var (nfid, varid, arr)---------^/tmp/ifortXzNGI9.i90(923): catastrophic error: Too many errors, exitingcompilation aborted for /storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/control/wrap_nf.F90 (code 1)gmake: *** [wrap_nf.o] Error 1/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/dynamics/fv/interp_mod.F90(16): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [NETCDF]    use pio, only : file_desc_t--------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/dynamics/fv/interp_mod.F90(17): error #6406: Conflicting attributes or multiple declaration of name.   [FILE_DESC_T]    type(file_desc_t) :: file---------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/dynamics/fv/interp_mod.F90(40): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [NETCDF]    use pio, only : file_desc_t, var_desc_t--------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/dynamics/fv/interp_mod.F90(43): error #6406: Conflicting attributes or multiple declaration of name.   [FILE_DESC_T]    type(file_desc_t), intent(inout) :: File---------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/dynamics/fv/interp_mod.F90(44): error #6406: Conflicting attributes or multiple declaration of name.   [VAR_DESC_T]    type(var_desc_t), intent(inout) :: varid---------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/dynamics/fv/interp_mod.F90(45): error #6683: A kind type parameter must be a compile-time constant.   [R8]    real(r8), intent(in) :: fld(:,:,:)---------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/dynamics/fv/interp_mod.F90(55): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [NETCDF]    use pio, only : file_desc_t, var_desc_t--------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/dynamics/fv/interp_mod.F90(57): error #6406: Conflicting attributes or multiple declaration of name.   [FILE_DESC_T]    type(file_desc_t), intent(inout) :: File---------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/dynamics/fv/interp_mod.F90(58): error #6406: Conflicting attributes or multiple declaration of name.   [VAR_DESC_T]    type(var_desc_t), intent(inout) :: varidu, varidv---------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/dynamics/fv/interp_mod.F90(15): error #6404: This name does not have a type, and must have an explicit type.   [FILE]  subroutine add_interp_attributes(file)-----------------------------------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/dynamics/fv/interp_mod.F90(16): error #6580: Name in only-list does not exist.   [FILE_DESC_T]    use pio, only : file_desc_t--------------------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/dynamics/fv/interp_mod.F90(39): error #6404: This name does not have a type, and must have an explicit type.   [FILE]  subroutine write_interpolated_scalar(File, varid, fld, numlev, data_type, decomp_type)---------------------------------------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/dynamics/fv/interp_mod.F90(41): error #6581: Unresolved rename.   [R8]    use shr_kind_mod, only : r8=>shr_kind_r8-----------------------------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/dynamics/fv/interp_mod.F90(39): error #6404: This name does not have a type, and must have an explicit type.   [VARID]  subroutine write_interpolated_scalar(File, varid, fld, numlev, data_type, decomp_type)---------------------------------------------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/dynamics/fv/interp_mod.F90(40): error #6580: Name in only-list does not exist.   [FILE_DESC_T]    use pio, only : file_desc_t, var_desc_t--------------------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/dynamics/fv/interp_mod.F90(40): error #6580: Name in only-list does not exist.   [VAR_DESC_T]    use pio, only : file_desc_t, var_desc_t---------------------------------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/dynamics/fv/interp_mod.F90(54): error #6404: This name does not have a type, and must have an explicit type.   [FILE]  subroutine write_interpolated_vector(File, varidu, varidv, fldu, fldv, numlev, data_type, decomp_type)---------------------------------------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/dynamics/fv/interp_mod.F90(54): error #6404: This name does not have a type, and must have an explicit type.   [VARIDU]  subroutine write_interpolated_vector(File, varidu, varidv, fldu, fldv, numlev, data_type, decomp_type)---------------------------------------------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/dynamics/fv/interp_mod.F90(54): error #6404: This name does not have a type, and must have an explicit type.   [VARIDV]  subroutine write_interpolated_vector(File, varidu, varidv, fldu, fldv, numlev, data_type, decomp_type)-----------------------------------------------------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/dynamics/fv/interp_mod.F90(55): error #6580: Name in only-list does not exist.   [FILE_DESC_T]    use pio, only : file_desc_t, var_desc_t--------------------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/dynamics/fv/interp_mod.F90(55): error #6580: Name in only-list does not exist.   [VAR_DESC_T]    use pio, only : file_desc_t, var_desc_t---------------------------------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/dynamics/fv/interp_mod.F90(76): warning #6178: The return value of this FUNCTION has not been defined.   [THISLAT]  function get_interp_lat() result(thislat)-----------------------------------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/dynamics/fv/interp_mod.F90(82): warning #6178: The return value of this FUNCTION has not been defined.   [THISLON]  function get_interp_lon() result(thislon)-----------------------------------^compilation aborted for /storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/dynamics/fv/interp_mod.F90 (code 1)gmake: *** [interp_mod.o] Error 1ifort: error #10236: File not found:  '/include'ifort: error #10236: File not found:  '/include'ifort: error #10236: File not found:  '/include'ifort: error #10236: File not found:  '/include'ifort: error #10236: File not found:  '/include'ifort: error #10236: File not found:  '/include'ifort: error #10236: File not found:  '/include'ifort: error #10236: File not found:  '/include'ifort: error #10236: File not found:  '/include'ifort: error #10236: File not found:  '/include'ifort: error #10236: File not found:  '/include'gmake: *** [pbl_utils.o] Error 1gmake: *** [quicksort.o] Error 1gmake: *** [m_sad_data.o] Error 1/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/chemistry/pp_none/mo_prod_loss.F90(37): warning #6843: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value.   [PROD]      subroutine imp_prod_loss( prod, loss, y, rxt, het_rates )--------------------------------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/chemistry/pp_none/mo_prod_loss.F90(18): warning #6843: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value.   [PROD]      subroutine exp_prod_loss( prod, loss, y, rxt, het_rates )--------------------------------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/chemistry/pp_none/mo_prod_loss.F90(37): warning #6843: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value.   [LOSS]      subroutine imp_prod_loss( prod, loss, y, rxt, het_rates )--------------------------------------^/storage/home/nitin/CESM/cesm1_2_2/models/atm/cam/src/chemistry/pp_none/mo_prod_loss.F90(18): warning #6843: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value.   [LOSS]      subroutine exp_prod_loss( prod, loss, y, rxt, het_rates )--------------------------------------^gmake: *** [mo_adjrxt.o] Error 1gmake: *** [m_spc_id.o] Error 1gmake: *** [mo_indprd.o] Error 1gmake: *** [mo_prod_loss.o] Error 1gmake: *** [trb_mtn_stress.o] Error 1gmake: *** [spehox.o] Error 1gmake: *** [spmd_utils.o] Error 1gmake: *** [sv_decomp.o] Error 1gmake: *** [decompmodule.o] Error 1gmake: *** [mo_rxt_rates_conv.o] Error 1
  -I/storage/softwares/installedsoftware/netcdfF-install/lib/ /include MPIFORT uses the following path and is unable to find /include directory. Where exactly do I need to specify the path for /include?
Thanks,Nitin   
 

jedwards

CSEG and Liaisons
Staff member
NETCDF_PATH should be one single path, not a list of paths - the fortran and c libraries and include files need to be installed in the same location.
 
Each of the installations (netcdf c and netcdf fortran) will give four folders: bin include lib and share. So, should these folders be merged for C and fortran? And should the parent folder be given as the NETCDF_PATH? And what exactly is /include? It is referring to the $NETCDF_PATH/include? Thanks,Nitin
 
I included the NETCDF_PATH correctly and I have merged the two libraries.I get the following error in the error file:[nitin@master case_B_f19_g16_userdefined_3]$ cat case_B_f19_g16_userdefined_3.run.e473
ls: No match.

How do we fix this error? And what is the problem related to?   Thanks,Nitin  
 
Macros File [nitin@master case_B_f19_g16_userdefined_3]$ cat ./Macros## Makefile Macros generated from /storage/home/nitin/CESM/cesm1_2_2/scripts/ccsm_utils/Machines/config_compilers.xml using# COMPILER=intel# OS=LINUX# MACH=userdefined#CPPDEFS+= -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL SLIBS+= -L/storage/softwares/installedsoftware/netcdf/lib/ -lnetcdff CFLAGS:= -O2 -fp-model precise CONFIG_ARGS:= CXX_LDFLAGS:= -cxxlib CXX_LINKER:=FORTRAN ESMF_LIBDIR:= 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:= mpiicxx MPIFC:= mpiifort MPI_LIB_NAME:= MPI_PATH:=/opt/intel/impi/4.1.3.048/intel64 NETCDF_PATH:= /storage/softwares/installedsoftware/netcdf PNETCDF_PATH:= SCC:= icc SCXX:= icpc SFC:= ifort SUPPORTS_CXX:=TRUE ifeq ($(DEBUG), TRUE)   FFLAGS += -O0 -g -check uninit -check bounds -check pointers -fpe0endif ifeq ($(DEBUG), FALSE)   FFLAGS += -O2endif ifeq ($(compile_threaded), true)   LDFLAGS += -openmp   CFLAGS += -openmp   FFLAGS += -openmpendif ifeq ($(MODEL), pop2)   CPPDEFS += -D_USE_FLOW_CONTROLendif 
 
the environmental variables used by me are : export NAS_PATH=/home/nitin/NAS/NPB3.3.1/NPB3.3-MPIexport CASE_PATH=/home/nitin/CESM/cesm1_2_2/nitin_casesexport PERL_LOCAL_LIB_ROOT=/usr/lib64/perl5/XMLexport PATH=/usr/lib64/perl5/XML:/usr/lib64:/opt/intel/impi/4.1.3.048/intel64/bin/mpiicc:/storage/softwares/installedsoftware/netcdf:/storage/softwares/installedsoftware/netcdf/lib:/storage/softwares/installedsoftware/netcdf/include:$PATHexport PERL5LIB=/usr/lib64/perl5/XML:/usr/lib64:$PERL5LIBexport NETCDF_PATH=/storage/softwares/installedsoftware/netcdf:$NETCDF_PATHexport LD_LIBRARY_PATH=/storage/softwares/installedsoftware/netcdf/lib:$LD_LIBRARY_PATH    Are these fine? What about $LDFLAGS and $CPPFLAGS?  Thanks,Nitin
 
Back
Top