Package Details: hdf5110 1.10.7-1

Git Clone URL: https://aur.archlinux.org/hdf5110.git (read-only, click to copy)
Package Base: hdf5110
Description: General purpose library and file format for storing scientific data, legacy 1.10 branch w/java bindings
Upstream URL: https://www.hdfgroup.org/hdf5
Licenses: custom
Submitter: greyltc
Maintainer: greyltc
Last Packager: greyltc
Votes: 0
Popularity: 0.000000
First Submitted: 2020-11-21 10:58 (UTC)
Last Updated: 2020-12-27 11:14 (UTC)

Latest Comments

isovector commented on 2024-01-11 04:41 (UTC)

I had to make the following changes in order to get this package building:

diff --git a/PKGBUILD b/PKGBUILD
index ed24098..b116ccc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -34,15 +34,15 @@ prepare(){
   cd CMake-hdf5-${pkgver}

   # enable java
-  sed '/^set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_JAVA:BOOL=OFF")/s/^/#/g' -i HDF5options.cmake
-  sed '/^#set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_JAVA:BOOL=ON")/s/^#//g' -i HDF5options.cmake
+  # sed '/^set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_JAVA:BOOL=OFF")/s/^/#/g' -i HDF5options.cmake
+  # sed '/^#set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_JAVA:BOOL=ON")/s/^#//g' -i HDF5options.cmake

   # enable fortran
   sed '/^set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_FORTRAN:BOOL=OFF")/s/^/#/g' -i HDF5options.cmake
   sed '/^#set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_FORTRAN:BOOL=ON")/s/^#//g' -i HDF5options.cmake

   # I don't know why I wouldn't want thread safety...but this doesn't build. missing pthread dep?
-  #sed '/^#set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_THREADSAFE:BOOL=ON")/s/^#//g' -i HDF5options.cmake 
+  #sed '/^#set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_THREADSAFE:BOOL=ON")/s/^#//g' -i HDF5options.cmake

   # don't package external libs
   sed '/^set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_PACKAGE_EXTLIBS:BOOL=ON")/s/^/#/g' -i HDF5options.cmake
@@ -54,10 +54,15 @@ prepare(){

   # zlib and szlib are not "external"
   sed '/^set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ALLOW_EXTERNAL_SUPPORT:STRING=TGZ -DTGZPATH:PATH=${CTEST_SCRIPT_DIRECTORY}")/s/^/#/g' -i HDF5options.cmake
+
+  # workaround deprecated cmake commands
+  sed 's/exec_program (/execute_process (COMMAND /g' -i CTestScript.cmake
+  sed 's/ARGS //g' -i CTestScript.cmake
 }

 build(){
   cd CMake-hdf5-${pkgver}
+  cmake hdf5-1.10.7
   ctest -S HDF5config.cmake,BUILD_GENERATOR=Unix,INSTALLDIR=/opt/${pkgname} -C Release -V -O hdf5.log
   #./build-unix.sh
   cd build

mike_strom commented on 2022-05-09 10:22 (UTC)

It seem hdf5 must be not be installed or the tests fails like @jorenko experienced.

MadPhysicist commented on 2021-12-29 09:32 (UTC)

Same error as @jorenko as well. hdf5utils not installed in my case, so not sure how to proceed.

LuighiV commented on 2021-06-29 22:34 (UTC) (edited on 2021-06-29 22:34 (UTC) by LuighiV)

I had a similar problem as @jorenko, however, when I uninstalled the hdf5utils packages finally I could install this correctly. It appears that there is a problem with some libraries installed with the another package.

jorenko commented on 2020-12-02 18:41 (UTC)

Here's the relevant portion of the LastTest*.log from the first failure:

-- COMMAND: /space/yay/hdf5110/src/CMake-hdf5-1.10.7/build/bin/testhdf5_fortran CMake Error at /space/yay/hdf5110/src/CMake-hdf5-1.10.7/hdf5-1.10.7/config/cmake_ext_mod/runTest.cmake:81 (string): string sub-command REGEX, mode MATCH needs at least 5 arguments total to command.

jorenko commented on 2020-12-02 18:32 (UTC)

I'm failing to compile this, currently. All dependencies are up to date. This is the end of the output from makepkg:

99% tests passed, 8 tests failed out of 2420

Total Test time (real) = 137.47 sec

The following tests FAILED: 2173 - FORTRAN_testhdf5_fortran (Failed) 2174 - FORTRAN_testhdf5_fortran_1_8 (Failed) 2175 - FORTRAN_fortranlib_test_F03 (Failed) 2180 - HL_FORTRAN_f90_ex_exlite (Failed) 2183 - HL_FORTRAN_f90_tstds (Failed) 2184 - HL_FORTRAN_f90_tstlite (Failed) 2185 - HL_FORTRAN_f90_tstimage (Failed) 2186 - HL_FORTRAN_f90_tsttable (Failed) ==> ERROR: A failure occurred in build(). Aborting...