This site is migrating to a new forum software on Tuesday, September 24th 2019, you may experience a short downtime during this transition

Main menu

Navigation

Problems in building cesm.exe

5 posts / 0 new
Last post
fkc000@...
Problems in building cesm.exe

Hi there,

     I encountered a problem in building cesm.exe recently, and here's cesm.bld.log

"mpiifort -o /disk6/fkc/CESM/cesm1_2_2/build/test_1x1/cesm.exe ccsm_comp_mod.o ccsm_driver.o mrg_mod.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_map_esmf.o seq_map_mod.o seq_mctext_mod.o seq_rest_mod.o  -L/disk6/fkc/CESM/cesm1_2_2/build/test_1x1/lib/ -latm  -L/disk6/fkc/CESM/cesm1_2_2/build/test_1x1/lib/ -lice  -L/disk6/fkc/CESM/cesm1_2_2/build/test_1x1/lib/ -llnd  -L/disk6/fkc/CESM/cesm1_2_2/build/test_1x1/lib/ -locn  -L/disk6/fkc/CESM/cesm1_2_2/build/test_1x1/lib/ -lrof  -L/disk6/fkc/CESM/cesm1_2_2/build/test_1x1/lib/ -lglc  -L/disk6/fkc/CESM/cesm1_2_2/build/test_1x1/lib/ -lwav -L/disk6/fkc/CESM/cesm1_2_2/build/test_1x1/intel/openmpi/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -lcsm_share -L/disk6/fkc/CESM/cesm1_2_2/build/test_1x1/intel/openmpi/nodebug/nothreads/lib -lpio -lgptl -lmct -lmpeu -L/disk6/fkc/packman/netcdf_c/4.3.2/1/lib -lnetcdf  -L/disk6/fkc/pnetcdf/lib -lpnetcdf -L/disk1/soft/intel/impi/3.2.0.011/lib64 -lmpi

/disk1/soft/intel/Compiler/11.0/069/lib/intel64/libimf.so: warning: warning: feupdateenv is not implemented and will always fail

/disk6/fkc/CESM/cesm1_2_2/build/test_1x1/lib//libatm.a(chem_surfvals.o): In function `chem_surfvals_mp_ghg_ramp_read_':

chem_surfvals.F90:(.text+0x1528): undefined reference to `netcdf_mp_nf90_get_var_1d_fourbyteint_'

chem_surfvals.F90:(.text+0x1652): undefined reference to `netcdf_mp_nf90_get_var_1d_eightbytereal_'

chem_surfvals.F90:(.text+0x1699): undefined reference to `netcdf_mp_nf90_get_var_1d_eightbytereal_'

chem_surfvals.F90:(.text+0x16e0): undefined reference to `netcdf_mp_nf90_get_var_1d_eightbytereal_'

chem_surfvals.F90:(.text+0x1727): undefined reference to `netcdf_mp_nf90_get_var_1d_eightbytereal_'

chem_surfvals.F90:(.text+0x176e): undefined reference to `netcdf_mp_nf90_get_var_1d_eightbytereal_'

......

pionfwrite_mod.F90:(.text+0x4d69): undefined reference to `netcdf_mp_nf90_inquire_variable_'

pionfwrite_mod.F90:(.text+0x56dc): undefined reference to `netcdf_mp_nf90_put_var_1d_eightbytereal_'

pionfwrite_mod.F90:(.text+0x5e91): undefined reference to `netcdf_mp_nf90_put_var_1d_eightbytereal_'

gmake: *** [/disk6/fkc/CESM/cesm1_2_2/build/test_1x1/cesm.exe] Error 1"

     It seems to be a problem with my NETCDF, but I've successfully built other components. So I've no clue how to solve it. My NETCDF version is 4.3.2 and CESM is 1.2.2.I've attached my Macro file and cesm.bld.log below.

     Thank you in advance! 

 

 

jedwards

NetCDF has a c library netcdf and a fortran library netcdff, it looks as if you are not linking the fortran library which is needed for CESM.

CESM Software Engineer

fkc000@...

Thank you for your reply. I've installed NETCDF_fortran, and I've copied the netcdf_fortran lib&include files into the netcdf_c lib&include path. But it's still the same. Do I need to add a NETCDF_Fortran PATH in the Macros File?

jedwards

Add to the Macros file:

 

SLIBS+= -L$(NETCDF_DIR) -lnetcdff -lnetcdf

CESM Software Engineer

fkc000@...

It worked! Thank you very much!

Log in or register to post comments

Who's new

  • jwolff
  • tinna.gunnarsdo...
  • sarthak2235@...
  • eolivares@...
  • shubham.gandhi@...