-
-
Notifications
You must be signed in to change notification settings - Fork 259
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
Fortran library initialization fails in 1_14-9f7b987 (gfortran) #4310
Comments
Hi @jefflee-icesat2, could you upload your config.log here or somewhere accessible if GitHub won't let you? |
configure: WARNING: you should use --build, --host, --target General Information:
Compiling Options:
Linking Options:
Statically Linked Executables: Languages:
Features:
Parallel Filtered Dataset Writes: no |
Thanks! Based on the error stack, you should be able to get a working build of the library if you pass "--disable-nonstandard-feature-float16" as a command-line option. I'll need to investigate why the library can't correctly detect the byte order for the _Float16 type in this case. |
With your hint, I got good test results!! (And I jumped from 1.10.8 without changing a line of code!) |
Glad to hear that worked for you! I'm still investigating to see what the issue is in particular for MacOS 14. |
This breaks h5py: h5py/h5py#2419 (fixed at h5py/h5py#2422) |
Indeed, hopefully the h5py folks are able to get that fix merged soon. The problem mentioned in this GitHub issue appears to be an issue specifically when HDF5 is initialized from within a Fortran program. When compiling Fortran HDF5 programs with the |
Describe the bug
Library initialization fails.
Compilation flags: ../../../../base_libs/bin/h5fc -fPIC -cpp -DHDF5_1_10 -O2 -g -Wall -Wno-surprising -fcheck=all -fimplicit-none -fbacktrace -ffpe-trap=zero,overflow,invalid -I. -I../../../modules -I../../../../common_libs/modules -I../../../../base_libs/include -c utest_h5_param.f90 -o utest_h5_param.o
HDF5-DIAG: Error detected in HDF5 (1.14.4-9f7b987) thread 0:
#000: H5.c line 1025 in H5open(): library initialization failed
major: Function entry/exit
minor: Unable to initialize object
#1: H5.c line 270 in H5_init_library(): unable to initialize VOL interface
major: Function entry/exit
minor: Unable to initialize object
#2: H5VLint.c line 200 in H5VL_init_phase2(): unable to initialize datatype interface
major: Virtual Object Layer
minor: Unable to initialize object
#3: H5T.c line 849 in H5T_init(): unable to initialize floating-point types
major: Datatype
minor: Unable to initialize object
#4: H5Tinit_float.c line 582 in H5T__init_native_float_types(): failed to detect byte order
major: Datatype
minor: Unable to initialize object
#5: H5Tinit_float.c line 308 in H5T__fix_order(): failed to detect byte order
major: Datatype
minor: Unable to initialize object
Expected behavior
Library initialization does not fail.
Platform (please complete the following information)
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: