Project

General

Profile

CDO with NetCDF4 and HDF5 1.8.16

Added by Ben Menadue about 8 years ago

Hi,

It appears that you can't build the thread-safe HDF5/NetCDF stack needed by CDO anymore without using an unsupported configuration. In fact, it looks as though this has always been the case, just the configure scripts for HDF5 didn't warn you of such until version 1.8.16.

When building NetCDF, to enable NetCDF4 you need the HDF5 high-level API library:

configure: error: Can't find or link to the hdf5 high-level. Use --disable-netcdf-4, or see config.log for errors.

However, building the high-level API library together with --enable-threadsafe is not a supported configuration:

checking for thread safe support... configure: error: The thread-safe library is incompatible with the high-level library. --disable-hl can be used to prevent building the high-level library (recommended). Alternatively, --enable-unsupported will allow building the high-level library, though this configuration is not supported by The HDF Group.

If you look at the changelog for HDF5 v1.8.16, you can see that they've now made configure explicitly report this configuration as unsupported, even though it was technically unsupported in earlier versions as well.

Cheers,
Ben


Replies (1)

RE: CDO with NetCDF4 and HDF5 1.8.16 - Added by Ralf Mueller about 8 years ago

Hi Ben!
We've recognized this, too. You can install hdf5 non-threadsafe and use the CDO option -L to serialize IO when working with nc4.

hth
ralf

    (1-1/1)