Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

CESM 1.0.5 with intel build error

ruk15@psu_edu

New Member
Hello,I am trying to build a test case with CESM 1_0_5  generic_machine and things seem to be ok, until I get the following error. I have already installed both NetCDF 'C' and 'Fortran' successfully (at least the message says I have installed successfully).  My  'include'  and 'lib'  directories are in '~/work/local'   (and 'libnetcf.a' and 'libnetcdff.a' are in '~/work/local/lib'). I thought I gave  the correct path in both 'env_mach_specific' and 'Macros.generic....".    I am not sure what's causing this error.  Thanks in advance for any helpRavi*****************mpif90 -o /gpfs/home/ruk15/work/OUTPUT//test1/run/ccsm.exe ccsm_comp_mod.o ccsm_driver.o map_atmatm_mct.o map_atmice_mct.o map_atmlnd_mct.o map_atmocn_mct.o map_glcglc_mct.o map_iceice_mct.o map_iceocn_mct.o map_lndlnd_mct.o map_ocnocn_mct.o map_rofocn_mct.o map_rofrof_mct.o map_snoglc_mct.o map_snosno_mct.o mrg_x2a_mct.o mrg_x2g_mct.o mrg_x2i_mct.o mrg_x2l_mct.o mrg_x2o_mct.o mrg_x2s_mct.o seq_avdata_mod.o seq_diag_mct.o seq_domain_mct.o seq_flux_mct.o seq_frac_mct.o seq_hist_mod.o seq_rearr_mod.o seq_rest_mod.o -L/gpfs/home/ruk15/work/OUTPUT//test1/lib -latm -llnd -lice -locn -lglc -L/gpfs/home/ruk15/work/OUTPUT//test1/lib -lcsm_share -lmct -lmpeu -lpio  -L/gpfs/home/ruk15/work/local/lib -lnetcdf  -L/lib -lmpi  -lcurl
/gpfs/home/ruk15/work/OUTPUT//test1/lib/libcsm_share.a(shr_mct_mod.o): In function `shr_mct_smatreadnc':
/gpfs/work/r/ruk15/CESM/cesm1_0_5/models/csm_share/shr/shr_mct_mod.F90:105: undefined reference to `nf_open_'
/gpfs/work/r/ruk15/CESM/cesm1_0_5/models/csm_share/shr/shr_mct_mod.F90:112: undefined reference to `nf_inq_dimid_'
/gpfs/work/r/ruk15/CESM/cesm1_0_5/models/csm_share/shr/shr_mct_mod.F90:113: undefined reference to `nf_inq_dimlen_'
/gpfs/work/r/ruk15/CESM/cesm1_0_5/models/csm_share/shr/shr_mct_mod.F90:114: undefined reference to `nf_inq_dimid_'
/gpfs/work/r/ruk15/CESM/cesm1_0_5/models/csm_share/shr/shr_mct_mod.F90:115: undefined reference to `nf_inq_dimlen_'
/gpfs/work/r/ruk15/CESM/cesm1_0_5/models/csm_share/shr/shr_mct_mod.F90:116: undefined reference to `nf_inq_dimid_'
/gpfs/work/r/ruk15/CESM/cesm1_0_5/models/csm_share/shr/shr_mct_mod.F90:117: undefined reference to `nf_inq_dimlen_'
/gpfs/work/r/ruk15/CESM/cesm1_0_5/models/csm_share/shr/shr_mct_mod.F90:140: undefined reference to `nf_inq_varid_'
/gpfs/work/r/ruk15/CESM/cesm1_0_5/models/csm_share/shr/shr_mct_mod.F90:141: undefined reference to `nf_get_var_double_'
/gpfs/work/r/ruk15/CESM/cesm1_0_5/models/csm_share/shr/shr_mct_mod.F90:142: undefined reference to `nf_strerror_'
/gpfs/work/r/ruk15/CESM/cesm1_0_5/models/csm_share/shr/shr_mct_mod.F90:154: undefined reference to `nf_inq_varid_'
/gpfs/work/r/ruk15/CESM/cesm1_0_5/models/csm_share/shr/shr_mct_mod.F90:155: undefined reference to `nf_get_var_int_'
/gpfs/work/r/ruk15/CESM/cesm1_0_5/models/csm_share/shr/shr_mct_mod.F90:156: undefined reference to `nf_strerror_'
/gpfs/work/r/ruk15/CESM/cesm1_0_5/models/csm_share/shr/shr_mct_mod.F90:165: undefined reference to `nf_inq_varid_'
/gpfs/work/r/ruk15/CESM/cesm1_0_5/models/csm_share/shr/shr_mct_mod.F90:166: undefined reference to `nf_get_var_int_'
/gpfs/work/r/ruk15/CESM/cesm1_0_5/models/csm_share/shr/shr_mct_mod.F90:167: undefined reference to `nf_strerror_'
/gpfs/work/r/ruk15/CESM/cesm1_0_5/models/csm_share/shr/shr_mct_mod.F90:174: undefined reference to `nf_close_'
/gpfs/work/r/ruk15/CESM/cesm1_0_5/models/csm_share/shr/shr_mct_mod.F90:107: undefined reference to `nf_strerror_'
/gpfs/home/ruk15/work/OUTPUT//test1/lib/libcsm_share.a(shr_mct_mod.o): In function `shr_mct_smatreaddnc':

 

jedwards

CSEG and Liaisons
Staff member
You need to add -lnetcdff to your link command.   In cesm1_0_5 add a lineSLIBS += -L$(LIB_NETCDF) -lnetcdff
to your Macros file.
 
Top