Problem in configuring CESM1_2_0 on linux platform.

rakeshtejak@gmail_com

Rakesh Teja Konduru
Member
Hi,I started using CESM1_2_0. Whie configuring i got following problem: Issuing command to the CICE configure utility:/shome/rakeshkcas1/cam/cam5/cam5/cesm1_2_0/models/ice/cice/bld/configure -hgrid 10x15 -cice_mode prescribed -ntr_aero 0 -nx 24 -ny 19 -bsizex 6 -bsizey 19 -maxblocks 4 -decomptype blkrobin -cache config_cache_cice.xml -cachedir /shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld
CICE configure done.
MCT configure is done.
creating /shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/Filepath
creating /shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/Makefile
creating /shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/config.h
creating /shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/config_cache.xml
Looking for a valid GNU make... using gmake
Testing for Fortran 90 compatible compiler... using ifort
Test linking to NetCDF library... **** FAILED ****
Issued the command:
gmake -f /shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/Makefile test_nc 2>&1The output was:
cat: Srcfiles: No such file or directory
/shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/Makefile:1052: /shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/configure-tests/Depends: No such file or directory
/shome/rakeshkcas1/cam/cam5/cam5/cesm1_2_0/models/atm/cam/bld/mkSrcfiles > /shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/configure-tests/Srcfiles
/shome/rakeshkcas1/cam/cam5/cam5/cesm1_2_0/models/atm/cam/bld/mkDepends Filepath Srcfiles > /shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/configure-tests/Depends
ifort -c -I. -I/shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/configure-tests -I/opt/NETCDF/intel_NETCDF/include -I/shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/mct/mct -I/shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/mct/mpeu -I/shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/mct/mpi-serial -I/opt/NETCDF/intel_NETCDF/include -DNO_SHR_VMATH -DSEQ_MCT -DNO_C_SIZEOF -DFORTRANUNDERSCORE -DCO2A -DMAXPATCH_PFT=numpft+1 -DLSMLAT=1 -DLSMLON=1 -DPLON=24 -DPLAT=19 -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_ROF=1 -DNUM_COMP_INST_WAV=1 -DPLEV=30 -DPCNST=25 -DPCOLS=16 -DPSUBCOLS=1 -DPTRM=1 -DPTRN=1 -DPTRK=1 -DSTAGGERED -DCCSMCOUPLED -Dcoupled -Dncdf -DNCAT=1 -DNXGLOB=24 -DNYGLOB=19 -DNTR_AERO=0 -DBLCKX=6 -DBLCKY=19 -DMXBLCKS=4 -DMODAL_AERO -DMODAL_AERO_3MODE -D_USEBOX -D_NETCDF -DLINUX -DCPRINTEL -ftz -convert big_endian -fp-model precise -check all -check noarg_temp_created -fpe0 -g -traceback -DHIDE_MPI -D_MPISERIAL -DNO_MPIMOD -DNO_MPI2 -DNO_SIZEOF test_nc.F90
ifort -o test_nc -I. -I/shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/configure-tests -I/opt/NETCDF/intel_NETCDF/include -I/shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/mct/mct -I/shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/mct/mpeu -I/shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/mct/mpi-serial -I/opt/NETCDF/intel_NETCDF/include -DNO_SHR_VMATH -DSEQ_MCT -DNO_C_SIZEOF -DFORTRANUNDERSCORE -DCO2A -DMAXPATCH_PFT=numpft+1 -DLSMLAT=1 -DLSMLON=1 -DPLON=24 -DPLAT=19 -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_ROF=1 -DNUM_COMP_INST_WAV=1 -DPLEV=30 -DPCNST=25 -DPCOLS=16 -DPSUBCOLS=1 -DPTRM=1 -DPTRN=1 -DPTRK=1 -DSTAGGERED -DCCSMCOUPLED -Dcoupled -Dncdf -DNCAT=1 -DNXGLOB=24 -DNYGLOB=19 -DNTR_AERO=0 -DBLCKX=6 -DBLCKY=19 -DMXBLCKS=4 -DMODAL_AERO -DMODAL_AERO_3MODE -D_USEBOX -D_NETCDF -DLINUX -DCPRINTEL -ftz -convert big_endian -fp-model precise -check all -check noarg_temp_created -fpe0 -g -traceback -DHIDE_MPI -D_MPISERIAL -DNO_MPIMOD -DNO_MPI2 -DNO_SIZEOF test_nc.o -L/opt/NETCDF/intel_NETCDF/lib -lnetcdf -lnetcdff -Wl,-rpath=/opt/NETCDF/intel_NETCDF/lib
ld: cannot find -lnetcdff
gmake: *** [test_nc] Error 1 Please help me in this regard. Thank you
 

jedwards

CSEG and Liaisons
Staff member
In more recent versions of netcdf the c and fortran libraries are distributed seperatly.   Make sure that your site has installed the fortran library, it should be in/opt/NETCDF/intel_NETCDF/lib/libnetcdff.a 
 

rakeshtejak@gmail_com

Rakesh Teja Konduru
Member
Hi,Thank you for your reply. After installing fortran netcdf library..i got following error. Issuing command to the CICE configure utility:  /shome/rakeshkcas1/cam/cam5/cam5/cesm1_2_0/models/ice/cice/bld/configure -hgrid 10x15 -cice_mode prescribed -ntr_aero 0 -nx 24 -ny 19 -bsizex 6 -bsizey 19 -maxblocks 4 -decomptype blkrobin -cache config_cache_cice.xml -cachedir /shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bldCICE configure done.MCT configure is done.creating /shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/Filepathcreating /shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/Makefilecreating /shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/config.hcreating /shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/config_cache.xmlLooking for a valid GNU make... using gmakeTesting for Fortran 90 compatible compiler... using ifortTest linking to NetCDF library... **** FAILED ****Issued the command:gmake -f /shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/Makefile test_nc 2>&1 The output was:cat: Srcfiles: No such file or directory/shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/Makefile:1052: /shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/configure-tests/Depends: No such file or directory/shome/rakeshkcas1/cam/cam5/cam5/cesm1_2_0/models/atm/cam/bld/mkSrcfiles > /shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/configure-tests/Srcfiles/shome/rakeshkcas1/cam/cam5/cam5/cesm1_2_0/models/atm/cam/bld/mkDepends Filepath Srcfiles > /shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/configure-tests/Dependsifort -c  -I. -I/shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/configure-tests -I/shome/rakeshkcas1/netcdf4.2.1.1/include  -I/shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/mct/mct -I/shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/mct/mpeu -I/shome/rakeshkcas1/cam/raki/cam_test/cesm_1_2_0/sim2/p_bld/mct/mpi-serial -I/shome/rakeshkcas1/netcdf4.2.1.1/include  -DNO_SHR_VMATH -DSEQ_MCT -DNO_C_SIZEOF -DFORTRANUNDERSCORE -DCO2A -DMAXPATCH_PFT=numpft+1 -DLSMLAT=1 -DLSMLON=1 -DPLON=24 -DPLAT=19 -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_ROF=1 -DNUM_COMP_INST_WAV=1 -DPLEV=30 -DPCNST=25 -DPCOLS=16 -DPSUBCOLS=1 -DPTRM=1 -DPTRN=1 -DPTRK=1 -DSTAGGERED  -DCCSMCOUPLED -Dcoupled -Dncdf -DNCAT=1 -DNXGLOB=24 -DNYGLOB=19 -DNTR_AERO=0 -DBLCKX=6 -DBLCKY=19 -DMXBLCKS=4  -DMODAL_AERO -DMODAL_AERO_3MODE  -D_USEBOX -D_NETCDF   -DLINUX -DCPRINTEL -ftz -convert big_endian -fp-model precise  -check all -check noarg_temp_created -fpe0 -g -traceback -DHIDE_MPI -D_MPISERIAL -DNO_MPIMOD -DNO_MPI2 -DNO_SIZEOF  test_nc.F90fortcom: Error: test_nc.F90, line 2: This module file was not generated by any release of this compiler.   [NETCDF]   use netcdf-------^fortcom: Error: test_nc.F90, line 5: This name does not have a type, and must have an explicit type.   [NF90_CREATE]   ret = nf90_create('foo.nc', NF90_CLOBBER, ncid)---------^fortcom: Error: test_nc.F90, line 6: This name does not have a type, and must have an explicit type.   [NF90_NOERR]   if ( ret == NF90_NOERR ) then---------------^fortcom: Error: test_nc.F90, line 9: This name does not have a type, and must have an explicit type.   [NF90_STRERROR]      print *, nf90_strerror( ret )---------------^compilation aborted for test_nc.F90 (code 1)gmake: *** [test_nc.o] Error 1 Please help me in this regard. 
 
Back
Top