CESM2: Several undefined references to -mkl related libraries (-llapack, -lblas etc)

Hi-
I've ben wrestling with this problem for a while - I think the soultion may be obvious to some but not to me.
I've attached all build logs in zipped folder, but in summary I am getting these complaints when trying to build cesm.exe:
We use the Iintel 2017 compiler on our machine. The machine is unsupported.

/home/osw_w17024285/CESM2/my_cesm_sandbox/components/cism/source_cism/libglimmer-solve/SLAP/dgmres.f:1618: undefined reference to `dnrm2_'
/home/osw_w17024285/CESM2/my_cesm_sandbox/components/cism/source_cism/libglimmer-solve/SLAP/dgmres.f:1626: undefined reference to `ddot_'
/home/osw_w17024285/CESM2/my_cesm_sandbox/components/cism/source_cism/libglimmer-solve/SLAP/dgmres.f:1628: undefined reference to `daxpy_'
/home/osw_w17024285/CESM2/my_cesm_sandbox/components/cism/source_cism/libglimmer-solve/SLAP/dgmres.f:1637: undefined reference to `dnrm2_'
/home/osw_w17024285/CESM2/my_cesm_sandbox/components/cism/source_cism/libglimmer-solve/SLAP/dgmres.f:1641: undefined reference to `ddot_'
/home/osw_w17024285/CESM2/my_cesm_sandbox/components/cism/source_cism/libglimmer-solve/SLAP/dgmres.f:1644: undefined reference to `daxpy_'


and later:

/home/osw_w17024285/CESM2/my_cesm_sandbox/cime/src/share/timing/gptl.c:3497: undefined reference to `ompi_mpi_integer'
/home/osw_w17024285/CESM2/my_cesm_sandbox/cime/src/share/timing/gptl.c:3501: undefined reference to `ompi_mpi_integer'
/home/osw_w17024285/CESM2/my_cesm_sandbox/cime/src/share/timing/gptl.c:3521: undefined reference to `ompi_mpi_char'
/home/osw_w17024285/CESM2/my_cesm_sandbox/cime/src/share/timing/gptl.c:3523: undefined reference to `ompi_mpi_byte'
/home/osw_w17024285/CESM2/my_cesm_sandbox/cime/src/share/timing/gptl.c:3525: undefined reference to `ompi_mpi_int'
/home/osw_w17024285/CESM2/my_cesm_sandbox/cime/src/share/timing/gptl.c:3622: undefined reference to `ompi_mpi_integer'
/home/osw_w17024285/CESM2/my_cesm_sandbox/cime/src/share/timing/gptl.c:3625: undefined reference to `ompi_mpi_integer'
/home/osw_w17024285/CESM2/my_cesm_sandbox/cime/src/share/timing/gptl.c:3629: undefined reference to `ompi_mpi_integer'
/home/osw_w17024285/CESM2/my_cesm_sandbox/cime/src/share/timing/gptl.c:3631: undefined reference to `ompi_mpi_char'
/home/osw_w17024285/CESM2/my_cesm_sandbox/cime/src/share/timing/gptl.c:3633: undefined reference to `ompi_mpi_byte'

..
.
 

Attachments

acgvar

Alvin C.G. Varquez
Member
This error can be traced from how you set the ./config_compilers.xml file suitable to your machine. Also, from the instructions netcdf, PIO, etc. should also be built in the same compiler settings. Setting the CFLAGS, CPPDEFS, FFLAGS, LDFLAGS, SLIBS properly will solve your problem.
 
Back
Top