testhdf5 fails in 1.8.14 32 bit Windows 7, Visual Studio Express 2013

Following the instructions:

http://www.hdfgroup.org/HDF5/release/cmakebuild.html

I'm able to build the HDF5 1.8.14 libraries on my target machine. The
release and debug versions of the libraries are both successfully built.
I then build the testhdf5 with the RUN_TESTS.vcxproj project. Here are
the results, truncated at the first error. Similar errors are reported an
additional 33 times:

···

***************************************************************************
Testing -- Configure definitions (config)
Testing -- Encoding/decoding metadata (metadata)
Testing -- Checksum algorithm (checksum)
Testing -- Ternary Search Trees (tst)
Testing -- Memory Heaps (heap)
Testing -- Skip Lists (skiplist)
Testing -- Reference Counted Strings (refstr)
Testing -- Low-Level File I/O (file)
Testing -- Generic Object Functions (objects)
Testing -- Dataspaces (h5s)
*** UNEXPECTED RETURN from H5Fopen is -1 line 188 in
C:\hdf\CMake\hdf5-1.8.14\test\th5s.c
HDF5-DIAG: Error detected in HDF5 (1.8.14) thread 0:
  #000: C:\hdf\CMake\hdf5-1.8.14\src\H5F.c line 604 in H5Fopen(): unable
to open file
    major: File accessibilty
    minor: Unable to open file
  #001: C:\hdf\CMake\hdf5-1.8.14\src\H5Fint.c line 992 in H5F_open():
unable to open file: name = 'th5s.h5', tent_flags = 0
    major: File accessibilty
    minor: Unable to open file
  #002: C:\hdf\CMake\hdf5-1.8.14\src\H5FD.c line 992 in H5FD_open(): open
failed
    major: Virtual File Layer
    minor: Unable to initialize object
  #003: C:\hdf\CMake\hdf5-1.8.14\src\H5FDsec2.c line 343 in
H5FD_sec2_open(): unable to open file: name = 'th5s.h5', errno = 2,
error message = 'No such file or directory', flags = 0, o_flags = 0
    major: File accessibilty
    minor: Unable to open file
***cannot open the pre-created H5S_MAX_RANK test file (th5s.h5)

***************************************************************************

A similar error occurs in my application, in release mode, debug mode
libraries appear to work fine.

I see exactly the same "UNEXEXPECTED RETURN from H5Fopen" error on a
coreI7 64 bit Windows 7 machine, in both 32 bit and 64 bit builds. Again,
the failure is in testhd5.exe or testhdf5dll.exe The built-in test scripts
built into the cmake are also reporting errors, seemingly unrelated.

The 64 bit build reports:
99% tests passed, 1 tests failed out of 1975
Total Test time (real) = 523.72 sec
The following tests FAILED:
        1461 - H5DUMP-N-thlink-5 (Failed)

on 32 bit Windows 7
99% tests passed, 1 tests failed out of 1975
Total Test time (real) = 558.62 sec
The following tests FAILED:
         13 - H5TEST-dt_arith (Failed)

On my 64 bit (AMDFX9550) Debian 8 box, the build and test succeed without
error. So at least I know I'm able to download the code and read English
instructions.

I did find reference in this forum to an analogous problem (UNEXPECTED
RETURN) on Scientific Linux with the Intel C++ compiler, which was
worked-around by turning off optimization. I would like to try to turn off
optimization for my Visual Studio / Windows 7 build
HOWEVER, I found that the options in the "build-VS201X-YZ.bat" scripts
don't necessarily over-ride the options in "HDF518CMake.cmake" Could
somebody please explain how to turn off optimization for MSVC 2013 c++ in
an HDF5 cmake/ctest build?

My product is 'pure' C++ based on Qt GUI and boost multi-dimensional array
libraries, so, in principle, the project is compiler-agnostic. Is it
possible I would have better luck with the gcc compiler?

My application is crashing in HD5open, but only in release mode, I suspect
that problem could be related to this test failure.

I have reasonably extensive experience with HDF5, as this is the second
product in which I've used it as the numerical data store.

Best regards (and thanks in advance...)
Karl Hoover
Senior Software Engineer
Geometrics, Inc.

Karl,

I was not able to reproduce the issue, could you please let me know which version of Visual Studio Express 2013 you are using? I don’t think that it is necessary that you turn optimization off. Compiling in RelWithDebInfo should be enough, then when/if one the test crashes, visual studio should be able to tell you where it failed.

You don’t need to use the scripts for that, just open the HDF5 solution with visual studio, choose one of the modes (e.g., RelWithDebInfo), then hit F7, then open a terminal and from the build directory, do:
ctest -C RelWithDebInfo

This will run the test suite.

Thanks

Jerome

···

On Mar 30, 2015, at 6:58 PM, karl hoover <karl@hooovver.com> wrote:

I see exactly the same "UNEXEXPECTED RETURN from H5Fopen" error on a
coreI7 64 bit Windows 7 machine, in both 32 bit and 64 bit builds. Again,
the failure is in testhd5.exe or testhdf5dll.exe The built-in test scripts
built into the cmake are also reporting errors, seemingly unrelated.

The 64 bit build reports:
99% tests passed, 1 tests failed out of 1975
Total Test time (real) = 523.72 sec
The following tests FAILED:
       1461 - H5DUMP-N-thlink-5 (Failed)

on 32 bit Windows 7
99% tests passed, 1 tests failed out of 1975
Total Test time (real) = 558.62 sec
The following tests FAILED:
        13 - H5TEST-dt_arith (Failed)

On my 64 bit (AMDFX9550) Debian 8 box, the build and test succeed without
error. So at least I know I'm able to download the code and read English
instructions.

I did find reference in this forum to an analogous problem (UNEXPECTED
RETURN) on Scientific Linux with the Intel C++ compiler, which was
worked-around by turning off optimization. I would like to try to turn off
optimization for my Visual Studio / Windows 7 build
HOWEVER, I found that the options in the "build-VS201X-YZ.bat" scripts
don't necessarily over-ride the options in "HDF518CMake.cmake" Could
somebody please explain how to turn off optimization for MSVC 2013 c++ in
an HDF5 cmake/ctest build?

My product is 'pure' C++ based on Qt GUI and boost multi-dimensional array
libraries, so, in principle, the project is compiler-agnostic. Is it
possible I would have better luck with the gcc compiler?

My application is crashing in HD5open, but only in release mode, I suspect
that problem could be related to this test failure.

I have reasonably extensive experience with HDF5, as this is the second
product in which I've used it as the numerical data store.

Best regards (and thanks in advance...)
Karl Hoover
Senior Software Engineer
Geometrics, Inc.

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5