Problem "ld: cannot find -lopenmpi"

Hi everyone,I'm trying to port CESM1.2.2.1 to Harvard's Odyssey. I chose intel as the compiler and openmpi as the MPI library. The create_new_case and cesm_setup worked fine without errors, but it stopped at the last step of building, and the building log displays the error as follows:mpif90  -o /n/home11/yluo/CASES_cesm1.2.2.1/testz3/bld/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/n/home11/yluo/CASES_cesm1.2.2.1/testz3/bld/lib/ -latm  -L/n/home11/yluo/CASES_cesm1.2.2.1/testz3/bld/lib/ -lice  -L/n/home11/yluo/CASES_cesm1.2.2.1/testz3/bld/lib/ -llnd  -L/n/home11/yluo/CASES_cesm1.2.2.1/testz3/bld/lib/ -locn  -L/n/home11/yluo/CASES_cesm1.2.2.1/testz3/bld/lib/ -lrof  -L/n/home11/yluo/CASES_cesm1.2.2.1/testz3/bld/lib/ -lglc  -L/n/home11/yluo/CASES_cesm1.2.2.1/testz3/bld/lib/ -lwav -L/n/home11/yluo/CASES_cesm1.2.2.1/testz3/bld/intel/openmpi/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -lcsm_share -L/n/home11/yluo/CASES_cesm1.2.2.1/testz3/bld/intel/openmpi/nodebug/nothreads/lib -lpio -lgptl -lmct -lmpeu -L/n/sw/centos6/netcdf-4.3.2_intel-13.0.079/lib -lnetcdf  -L/n/sw/centos6/openmpi-1.8.1_intel-13.0.079/lib -lopenmpi 
ld: cannot find -lopenmpi
gmake: *** [/n/home11/yluo/CASES_cesm1.2.2.1/testz3/bld/cesm.exe] Error 1

It seems like a problem associated with the openmpi library. However I have set the MPI_PATH in config_compilers.xml as follows:
  /n/sw/centos6/netcdf-4.3.2_intel-13.0.079/
  /n/sw/centos6/esmf-6.3.0/lib
  openmpi
  /n/sw/centos6/openmpi-1.8.1_intel-13.0.079
Can anyone help me identify what this error means and how to fix it?Any suggestions may help.Thank youYangcheng
 
Back
Top