Opened 14 months ago

Last modified 14 months ago

#155 new task

Investigating Netcdf library issues on Adastra

Reported by: abierjon Owned by:
Priority: minor Milestone:
Component: MARS GCM Version:
Keywords: Cc:

Description

When compiling some util/ programs on Adastra using the following module set-up :

module purge
module load PrgEnv-intel/8.4.0
module load cray-hdf5-parallel/1.12.2.1
module load cray-netcdf-hdf5parallel/4.9.0.1

(but also the bigger module set-up from LMDZ.COMMON/arch/arch.ADASTRA-ifort.env)
the compilation works well, but then the execution fails with the error message :

lslin.e: symbol lookup error: lslin.e: undefined symbol: __libm_feature_flag

Adding the NetCDF library to the LD_LIBRARY_PATH environment variable (export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$NETCDF_DIR/lib) before running solves the issue.

However, this issue occurs only for the following programs :
concatnc ; extract ; hrecast ; lslin ; simu_MCS ; solzenangle ; zrecast.

Conversely, it does not occur for :
aeroptical ; localtime ; and the GCM.

One should investigate why the LD_LIBRARY_PATH update is necessary for some programs and not the others...

Change History (1)

comment:1 Changed 14 months ago by emillour

From what I know the error message

undefined symbol: __libm_feature_flag

can be gotten rid of by adding the math library at linking time with option -lm

At least this is how the issue was fixed for the GCM (see r3048)

Note: See TracTickets for help on using tickets.