hi,everyone. i am a beginner in CICE and currently tring to compile CICE in serial and have some problem. I am using gcc and gfortran to compile CICE.I am gonna put some brief error message below. Any suggestion may help a lot. Thanks.
ERROR MESSAGE:
gfortran -o /home/wangxiong/mycase2/run/cice CICE.o CICE_FinalMod.o CICE_InitMod.o CICE_RunMod.o ice_arrays_column.o ice_blocks.o ice_boundary.o ice_broadcast.o ice_calendar.o ice_communicate.o ice_constants.o ice_diagnostics.o ice_diagnostics_bgc.o ice_distribution.o ice_domain.o ice_domain_size.o ice_dyn_eap.o ice_dyn_evp.o ice_dyn_evp_1d.o ice_dyn_shared.o ice_exit.o ice_fileunits.o ice_flux.o ice_flux_bgc.o ice_forcing.o ice_forcing_bgc.o ice_gather_scatter.o ice_global_reductions.o ice_grid.o ice_history.o ice_history_bgc.o ice_history_drag.o ice_history_mechred.o ice_history_pond.o ice_history_shared.o ice_history_write.o ice_init.o ice_init_column.o ice_kinds_mod.o ice_read_write.o ice_reprosum.o ice_restart.o ice_restart_column.o ice_restart_driver.o ice_restart_shared.o ice_restoring.o ice_shr_reprosum86.o ice_spacecurve.o ice_state.o ice_step_mod.o ice_timers.o ice_transport_driver.o ice_transport_remap.o icepack_aerosol.o icepack_age.o icepack_algae.o icepack_atmo.o icepack_brine.o icepack_firstyear.o icepack_flux.o icepack_intfc.o icepack_itd.o icepack_kinds.o icepack_mechred.o icepack_meltpond_cesm.o icepack_meltpond_lvl.o icepack_meltpond_topo.o icepack_mushy_physics.o icepack_ocean.o icepack_orbital.o icepack_parameters.o icepack_shortwave.o icepack_therm_0layer.o icepack_therm_bl99.o icepack_therm_itd.o icepack_therm_mushy.o icepack_therm_shared.o icepack_therm_vertical.o icepack_tracers.o icepack_warnings.o icepack_zbgc.o icepack_zbgc_shared.o icepack_zsalinity.o -L/usr/lib64 -lnetcdf
ice_domain.o:in function ‘__ice_domain_MOD_init_domain_distribution’:
ice_domain.F90: (.text+0x2772):‘__netcdf_MOD_nf90_open’ undefined but referenced
ice_domain.F90: (.text+0x27a1):‘__netcdf_MOD_nf90_inq_varid’ undefined but referenced
ice_domain.F90: (.text+0x27c9):‘__netcdf_MOD_nf90_get_var_2d_eightbytereal’ undefined but referenced
ice_domain.F90: (.text+0x27d6):‘__netcdf_MOD_nf90_close’ undefined but referenced
collect2: error:ld returned 1
gmake: *** [/home/wangxiong/mycase2/run/cice] error 1
ERROR MESSAGE:
gfortran -o /home/wangxiong/mycase2/run/cice CICE.o CICE_FinalMod.o CICE_InitMod.o CICE_RunMod.o ice_arrays_column.o ice_blocks.o ice_boundary.o ice_broadcast.o ice_calendar.o ice_communicate.o ice_constants.o ice_diagnostics.o ice_diagnostics_bgc.o ice_distribution.o ice_domain.o ice_domain_size.o ice_dyn_eap.o ice_dyn_evp.o ice_dyn_evp_1d.o ice_dyn_shared.o ice_exit.o ice_fileunits.o ice_flux.o ice_flux_bgc.o ice_forcing.o ice_forcing_bgc.o ice_gather_scatter.o ice_global_reductions.o ice_grid.o ice_history.o ice_history_bgc.o ice_history_drag.o ice_history_mechred.o ice_history_pond.o ice_history_shared.o ice_history_write.o ice_init.o ice_init_column.o ice_kinds_mod.o ice_read_write.o ice_reprosum.o ice_restart.o ice_restart_column.o ice_restart_driver.o ice_restart_shared.o ice_restoring.o ice_shr_reprosum86.o ice_spacecurve.o ice_state.o ice_step_mod.o ice_timers.o ice_transport_driver.o ice_transport_remap.o icepack_aerosol.o icepack_age.o icepack_algae.o icepack_atmo.o icepack_brine.o icepack_firstyear.o icepack_flux.o icepack_intfc.o icepack_itd.o icepack_kinds.o icepack_mechred.o icepack_meltpond_cesm.o icepack_meltpond_lvl.o icepack_meltpond_topo.o icepack_mushy_physics.o icepack_ocean.o icepack_orbital.o icepack_parameters.o icepack_shortwave.o icepack_therm_0layer.o icepack_therm_bl99.o icepack_therm_itd.o icepack_therm_mushy.o icepack_therm_shared.o icepack_therm_vertical.o icepack_tracers.o icepack_warnings.o icepack_zbgc.o icepack_zbgc_shared.o icepack_zsalinity.o -L/usr/lib64 -lnetcdf
ice_domain.o:in function ‘__ice_domain_MOD_init_domain_distribution’:
ice_domain.F90: (.text+0x2772):‘__netcdf_MOD_nf90_open’ undefined but referenced
ice_domain.F90: (.text+0x27a1):‘__netcdf_MOD_nf90_inq_varid’ undefined but referenced
ice_domain.F90: (.text+0x27c9):‘__netcdf_MOD_nf90_get_var_2d_eightbytereal’ undefined but referenced
ice_domain.F90: (.text+0x27d6):‘__netcdf_MOD_nf90_close’ undefined but referenced
collect2: error:ld returned 1
gmake: *** [/home/wangxiong/mycase2/run/cice] error 1