Project

General

Profile

cdo 1.9.5 installs but without support for netcdf-4

Added by Klaus Wyser over 5 years ago

I try installing cdo 1.9.5 on a CRAY XC40 with the GNU compiler suite. Everything on this CRAY is already a little bit old: NetCDF 4.3.2, and HDF 1.8.3 and gcc 4.9.1

./configure CC=gcc CXX=g++ F77=gfortran prefix=/afs/pdc.kth.se/home/w/wyser/Public/beskow --with-netcdf=/opt/cray/netcdf/4.3.2/GNU/49 --with-hdf5=/opt/cray/
hdf5/1.8.13/GNU/49 --disable-openmp

...works fine, then I do make which also works fine. But then I check the resulting cdo:

Climate Data Operators version 1.9.5 (http://mpimet.mpg.de/cdo)
System: x86_64-pc-linux-gnu
CXX Compiler: g++ -std=gnu++11 -g -O2  -pthread
CXX version : g++ (GCC) 4.9.1 20140716 (Cray Inc.)
C Compiler: gcc -std=gnu99 -g -O2  -pthread -pthread
C version : gcc (GCC) 4.9.1 20140716 (Cray Inc.)
F77 Compiler: gfortran -g -O2
F77 version : GNU Fortran (GCC) 4.9.1 20140716 (Cray Inc.)
Features: 31GB 16threads C++11 Fortran DATA PTHREADS HDF5 NC4/HDF5 SSE2
Libraries: HDF5/1.8.13
Filetypes: srv ext ieg grb1 nc1 
     CDI library version : 1.9.5
 CGRIBEX library version : 1.9.1
  NetCDF library version : 4.3.2 of Aug  7 2014 13:25:25 $
    EXSE library version : 1.4.0
    FILE library version : 1.8.3

There is no support for nc2 and nc4 files! And indeed, I cannot use cdo on a netCDF-4 file:

src/cdo sinfo tbk8_1m_19800101_19801231_grid_V.nc

cdo sinfo: Open failed on >tbk8_1m_19800101_19801231_grid_V.nc<
Unsupported file type (library support not compiled in)
CDO was build with a NetCDF version which doesn't support NetCDF4 data!

Now you may think that the netCDF library doesn't support nc4, but that's not true. Here is the output from nc-config --all:

This netCDF 4.3.2 has been built with the following features: 

  --cc        -> gcc
  --cflags    ->  -I/opt/cray/netcdf/4.3.2/GNU/49/include   -I/opt/cray/hdf5/1.8.13/GNU/49/include 
  --libs      -> -L/opt/cray/netcdf/4.3.2/GNU/49/lib -lnetcdf

  --has-c++   -> no
  --cxx       -> 
  --has-c++4  -> yes
  --cxx4      -> g++

  --fc        -> gfortran
  --fflags    -> -g -O2 -I/opt/cray/netcdf/4.3.2/GNU/49/include
  --flibs     -> -L/opt/cray/netcdf/4.3.2/GNU/49/lib -lnetcdff -L/opt/cray/hdf5/1.8.13/GNU/49/lib -lnetcdf
  --has-f90   -> yes

  --has-dap   -> no
  --has-nc2   -> yes
  --has-nc4   -> yes
  --has-hdf5  -> yes
  --has-hdf4  -> no
  --has-pnetcdf-> no

  --prefix    -> /opt/cray/netcdf/4.3.2/GNU/49
  --includedir-> /opt/cray/netcdf/4.3.2/GNU/49/include
  --version   -> netCDF 4.3.2

Any idea why don't I get the nc2 and nc4 support?


Replies (4)

RE: cdo 1.9.5 installs but without support for netcdf-4 - Added by Ralf Mueller over 5 years ago

hi!

please upload the config.log file for further investigation

RE: cdo 1.9.5 installs but without support for netcdf-4 - Added by Ralf Mueller over 5 years ago

hi!

this looks ok, only the hdf5 library could not be found during configure. please rerun your configure call with appended

LDFLAGS='-L/opt/cray/hdf5/1.8.13/GNU/49/lib'

btw: the prefix option of configure is missing the leading '--'

hth
ralf

RE: cdo 1.9.5 installs but without support for netcdf-4 - Added by Klaus Wyser over 5 years ago

Thanks a lot, the LDPATH=... helped.

Best wishes,
Klaus

    (1-4/4)