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

1.14 Redefines ssize_t on Windows WSL w/ Conda-Forge (GCC) Compilers #5245

Open
ax3l opened this issue Jan 16, 2025 · 1 comment
Open

1.14 Redefines ssize_t on Windows WSL w/ Conda-Forge (GCC) Compilers #5245

ax3l opened this issue Jan 16, 2025 · 1 comment
Assignees
Labels
Component - Build CMake, Autotools Priority - 2. Medium ⏹ It would be nice to have this in the next release Type - Bug / Bugfix Please report security issues to [email protected] instead of creating an issue on GitHub

Comments

@ax3l
Copy link

ax3l commented Jan 16, 2025

Describe the bug
We have developers developing our C++ code on Windows WSL (Ubuntu) using the Conda-Forge compilers (GCC 13.3).

We noticed an error in H5public.H, where HDF5 declares a public typedef on a type named ssize_t, which breaks compiles (because it is default in the C++ standard lib, too).
ECP-WarpX/impactx#799

https://github.com/HDFGroup/hdf5/blob/hdf5_1.14.4.3/src/H5public.h#L267-L290

Image

Expected behavior
Should not add a public define.

Platform (please complete the following information)

  • HDF5 version: seen with 1.14.4, but I googled and found while googlind that others had the same issue also with 1.14.0
  • OS and version: Windows 11, WSL with Ubuntu, Conda-Forge Compilers (G++/GCC)
  • Compiler: G++/GCC 13.3
  • Build system: autotools (HDF5 recipe on conda-forge), downstream I then use CMake for my app
  • Any configure options you specified: no MPI
  • MPI library and version (parallel HDF5): serial

Additional context
The code in question is a DOE SciDAC-5 supported accelerator modeling code, ImpactX. The same problem would also show in other SciDAC-5 codes that use this, e.g., WarpX, Synergia.

ECP-WarpX/impactx#799

@ax3l ax3l changed the title 1.14 Redefines ssize_t on Windows WSL w/ Conda-Forge (GCC) Compilers 1.14 Redefines ssize_t on Windows WSL w/ Conda-Forge (GCC) Compilers Jan 16, 2025
@ax3l
Copy link
Author

ax3l commented Jan 17, 2025

This is how conda-forge builds HDF5 for Linux/macOS (which is the package we use in WSL):
https://github.com/conda-forge/hdf5-feedstock/blob/main/recipe/build.sh

@mattjala mattjala added Priority - 2. Medium ⏹ It would be nice to have this in the next release Component - Build CMake, Autotools Type - Bug / Bugfix Please report security issues to [email protected] instead of creating an issue on GitHub labels Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Build CMake, Autotools Priority - 2. Medium ⏹ It would be nice to have this in the next release Type - Bug / Bugfix Please report security issues to [email protected] instead of creating an issue on GitHub
Projects
None yet
Development

No branches or pull requests

3 participants