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

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

CSEG and Liaisons
Staff member
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.
 
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?
 
Top