Open awikner opened 5 days ago
Could you try this mod to nc_complex.c? If it works, I'll create a PR
--- external/nc_complex/src/nc_complex.c
+++ external/nc_complex/src/nc_complex.c
@@ -9,6 +9,11 @@
#include "nc_complex_version.h"
+// to enable compilation with older versions of netcdf-c
+#ifndef NC_FORMATX_NCZARR
+#define NC_FORMATX_NCZARR (10)
+#endif
+
// NOLINTBEGIN(bugprone-assignment-in-if-condition)
#define CHECK(func) \
do {
I am trying to install the developer version of netcdf4-python version 1.7.1 with parallel hdf5 and parallel netcdf enabled.
I am using the following software versions:
OS: Red Hat Enterprise Linux version 8.4 C Compiler:
impi/2019.7.217/intel64/bin/mpicc
HDF5:hdf5-1.12.0-el8-x86_64+intelmpi-2019.up7+intel-19.1.1
Netcdf-c:netcdf-4.7-el8-x86_64+intelmpi-2019.up7+intel-19.1.1
Anaconda: 33.16.6.7I have built
mpi4py
andh5py
in a conda environment with MPI enabled via the following commands:I additionally had to install a newer version of
openssl
withconda install --channel=conda-forge openssl
.My final environment has the following packages installed:
When I attempt to install netcdf4-python from source with
pip install --no-build-isolation -v .
, I receive the following output with an error:Looking at the
netcdf4.h
file in the netcdf-c 4.7.4 source code, it indeed does not have a reference toNC_FORMATX_NCZARR
. I assume this was added in a more recent version of netcdf-c.Is there a way to build this version of netcdf4-python to be compatible with this version of netcdf-c? And if not, what was the most recent version that would support this version of netcdf-c?