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

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

  • All_BuildLogs.zip
    17.6 KB · Views: 2

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.
 
Top