Skip to content
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 Build Fails to Incorporate Zlib and and SZIP #18326

Closed
7 tasks done
mkitti opened this issue Sep 6, 2023 · 1 comment · Fixed by #18328
Closed
7 tasks done

HDF5 Build Fails to Incorporate Zlib and and SZIP #18326

mkitti opened this issue Sep 6, 2023 · 1 comment · Fixed by #18328
Labels

Comments

@mkitti
Copy link
Contributor

mkitti commented Sep 6, 2023

Description / Steps to reproduce the issue

Here is a test program test_filters.c:

#include "hdf5.h"
#include <stdio.h>

int main() {
        H5open();
        printf("H5Z DEFLATE filter: %d\n", H5Zfilter_avail(1));
        printf("H5Z SZIP filter: %d\n", H5Zfilter_avail(4));
        return 0;
}

Compiling this with gcc test_filters.c -lhdf5 -o test_filters and running test_filters results in the following output:

$ ./test_filters
H5Z DEFLATE filter: 1
H5Z SZIP filter: 0

Running make-pkg gives the following output:

==> Starting build()...
loading initial cache file ../hdf5-{1.14.2}/config/cmake
CMake Error: Error processing file: D:/repos/MINGW-packages/mingw-w64-hdf5/src/hdf5-{1.14.2}/config/cmake
-- Final: share/doc/hdf5
-- Testing maximum decimal precision for C - 21;33
-- maximum decimal precision for C var - 33
-- ... disable color and URL extended diagnostic messages
-- ....All Warnings are enabled
-- Could NOT find ZLIB (missing: ZLIB_DIR)
-- Could NOT find libaec (missing: libaec_DIR)
-- Could NOT find SZIP (missing: SZIP_DIR)
CMake Warning at CMakeFilters.cmake:147 (find_package):
  By not providing "FindSZIP.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "SZIP", but
  CMake did not find one.

  Could not find a package configuration file provided by "SZIP" with any of
  the following names:

    SZIPConfig.cmake
    szip-config.cmake

  Add the installation prefix of "SZIP" to CMAKE_PREFIX_PATH or set
  "SZIP_DIR" to a directory containing one of the above files.  If "SZIP"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  CMakeLists.txt:835 (include)


CMake Warning at CMakeFilters.cmake:183 (message):
  SZIP support in HDF5 was enabled but not found
Call Stack (most recent call first):
  CMakeLists.txt:835 (include)

Expected behavior

$ ./test_filters
H5Z DEFLATE filter: 1
H5Z SZIP filter: 1

Actual behavior

$ ./test_filters
H5Z DEFLATE filter: 1
H5Z SZIP filter: 0

Verification

Windows Version

MINGW64_NT-10.0-19044

MINGW environments affected

  • MINGW64
  • MINGW32
  • UCRT64
  • CLANG64
  • CLANG32
  • CLANGARM64

Are you willing to submit a PR?

Yes, but I need help.

@mkitti mkitti added the bug label Sep 6, 2023
@mkitti
Copy link
Contributor Author

mkitti commented Sep 6, 2023

My guess is that we have to either define ZLIB_DIR and libaec_DIR. Alternatively, we could create a FindSZIP.cmake and Findlibaec.cmake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant