Use of FE_INVALID
breaks WebAssembly builds of HDF5 1.14.5
#4952
Labels
Component - Build
CMake, Autotools
Priority - 3. Low 🔽
Code cleanup, small feature change requests, etc.
Type - Bug / Bugfix
Please report security issues to [email protected] instead of creating an issue on GitHub
Milestone
Describe the bug
HDF5 1.14.5 cannot compile to WebAssembly as Emscripten does not support the
FE_*
macros.Expected behavior
The compilation should succeed.
Platform (please complete the following information)
Additional context
Emscripten fails on the following chunk of code:
hdf5/src/H5Tinit_float.c
Lines 611 to 613 in 6b43197
with:
This is because many of the
FE_*
macros are not defined by Emscripten (emscripten-core/emscripten#13678). While I'm not familiar with the intricacies of the C standard, some reading suggests that compliant implementations do not need to define these macros.Currently I'm modifying the HDF5 source code directly so that the compilation can complete. Would you consider adding an
#ifdef FE_INVALID
around this block so that it compiles out of the box?FWIW the MRE is:
The text was updated successfully, but these errors were encountered: