-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HDF5 was not built with zlib while configuring netCDF-C #1844
Comments
When configure runs it produces an output file called config.log. Can you attach that output file to this issue? Or look in it for the relevant section where this failure occurs and post that? |
Here is the config.log produced by netcdf-c: config.log |
OK, this is a bug that has been fixed for the next release. Go into the directory where the HDF5 header files are, and create an empty file with the name H5pubconf.h. Then try to run configure again and see if it works. |
Unfortunately, in the
(I compiled all libraries with |
Then WTF can't if compile it? Stand by... |
You are setting CPPFLAGS like this: ac_cv_env_CPPFLAGS_value='-I${H5DIR}/include -I${ZDIR}/include' Do you have H5DIR and ZDIR defined? |
I am running the script above, and // Edit: Also chancing the compilers to those of Intel's parallelstudio caused the same error. // Edit2: Building netcdf-c-4.6.3 seems to work without any issues. |
I had the same issue. Thank you, |
Hello Gus, I solved this problem at first by using an older netCDF-C-version, after that by switching to MPI and some further parameter adjustments. My last working standing should be the following, however, I haven't looked for it quite a while: install_netcdf_gnu.sh.txt, install_netcdf_intel.sh.txt An easier way could be directly the usage of the spack package manager https://spack.io/, which enables you to build the most common packages with the compiler of your choice. But here you have to invest time in understanding the setup process. Best regards, |
Thank you Gabriel.
Somehow netCDF-C 4.8.0 builds without a problem (but using it to build
netCDF-fortran 4.5.3 still didn't work, trying more ...)
It is the Fortran-90 API that I am trying to get working.
The one from the Linux package is throwing an error in nf90_def_var_fill
during compilation that
sounds very much as a bug (mindset that the last parameter, the actual
_FillValue must be a 4-byte integer).
But netCDF-C 4.7.4 doesn't build.
I am surprised because the autotools should work smoothly, since
everything is built with Gnu compilers (including hdf5, etc which are
native Linux packages).
Not so long ago netCDF would bundle the C, Fortran and C++ APIs in a single
and self-consistent tarball,
with a release number, and everything would build smoothly, user-friendly.
I miss that.
Gus Correa
…On Thu, Jul 8, 2021 at 6:17 PM gabriel2029 ***@***.***> wrote:
Hello Gus,
I solved this problem at first by using an older netCDF-C-version, after
that by switching to MPI and some further parameter adjustments. My last
working standing should be the following, however, I haven't looked for it
quite a while: install_netcdf_gnu.sh.txt
<https://github.com/Unidata/netcdf-c/files/6787513/install_netcdf_gnu.sh.txt>,
install_netcdf_intel.sh.txt
<https://github.com/Unidata/netcdf-c/files/6787514/install_netcdf_intel.sh.txt>
Especially the links used in the script could be outdated.
An easier way could be directly the usage of the spack package manager
https://spack.io/, which enables you to build the most common packages
with the compiler of your choice. But here you have to invest time in
understanding the setup process.
Best regards,
Gabriel
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1844 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHIZALWO2EOLUMZL233TPLLTWYPWJANCNFSM4RTXOWFQ>
.
|
For those of you using cmake, I had the same issue building netcdf-c-4.8.1 with hdf5-1.12.1. Changing |
I believe this issue can be closed. |
Hello,
I wanted to build the netCDF-C library from source and followed the tutorial from the official site, more precisely the sections "Building zlib from source", "Building hdf5 from source" and "Building netCDF-4 and the Remote Data Client from source". Based on these steps I created the following bash script:
The building of zlib and HDF5 works fine, but the
./configure
-command in the installation of netCDF-C fails due to the following error:I cannot explain this, because hdf5 seems to be explicitly compiled with zlib. What did I miss in my script?
Operating system is CentOS 8 with GNU GCC 8.3.1 and GNU Make 4.2.1.
Best regards,
Gabriel
The text was updated successfully, but these errors were encountered: