Skip to content

Correct name of CMake option to HDF5_ENABLE_DEPRECATED_SYMBOLS #5587

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

Open
wants to merge 24 commits into
base: develop
Choose a base branch
from

Conversation

byrnHDF
Copy link
Contributor

@byrnHDF byrnHDF commented Jun 9, 2025

Fixes #5591

@byrnHDF byrnHDF self-assigned this Jun 9, 2025
@byrnHDF byrnHDF added the Priority - 0. Blocker This MUST be merged for the release to happen label Jun 9, 2025
@byrnHDF byrnHDF requested review from mattjala and brtnfld as code owners June 9, 2025 13:09
@byrnHDF byrnHDF added the Component - Testing Code in test or testpar directories, GitHub workflows label Jun 9, 2025
@byrnHDF byrnHDF added the Component - Misc Anything else (CODEOWNERS, etc.) label Jun 9, 2025
@github-project-automation github-project-automation bot moved this to To be triaged in HDF5 - TRIAGE & TRACK Jun 9, 2025
Copy link
Collaborator

@lrknox lrknox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only gcc DBG v2.0.0 default API workflow in main-cmake-spc.yml that fails due to use of a deprecated function is the v2.0.0 default API. The others fail because src/H5version.h : 54 doesn't allow both H5_USE_*_API and H5_NO_DEPRECATED_SYMBOLS. v2.0.0 will also fail as soon as there is a newer version. We'll need to add the HDF5_ENABLE_DEPRECATED_SYMBOLS option to a workflow that doesn't also specify an older version.

@github-project-automation github-project-automation bot moved this from To be triaged to In progress in HDF5 - TRIAGE & TRACK Jun 9, 2025
@brtnfld
Copy link
Collaborator

brtnfld commented Jun 9, 2025

We should implement a YML function that checks when an unknown CMake option is used in our CI testing, to prevent this issue from happening in the future.

@@ -333,7 +328,7 @@ jobs:
-DZLIB_USE_LOCALCONTENT=OFF \
-DHDF5_ENABLE_MIRROR_VFD:BOOL=ON \
-DHDF5_ENABLE_DIRECT_VFD:BOOL=ON \
-DH5_NO_DEPRECATED_SYMBOLS:BOOL=OFF \
-DHDF5_ENABLE_DEPRECATED_SYMBOLS:BOOL=OFF \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leaving this as an exercise when version 3.0 and -DHDF5_DEFAULT_API_VERSION:STRING=v2 come along?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When that happens then there will be a new latest version and previous one will need to remove the option.

@byrnHDF byrnHDF requested a review from epourmal as a code owner June 10, 2025 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Misc Anything else (CODEOWNERS, etc.) Component - Testing Code in test or testpar directories, GitHub workflows Priority - 0. Blocker This MUST be merged for the release to happen
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

Using HDF5_ENABLE_DEPRECATED_SYMBOLS to disable deprecated functions fails
3 participants