Skip to content

build: fix i386 openbsd-7.7 threads link error #5512

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

Closed
wants to merge 2 commits into from

Conversation

hyoklee
Copy link
Member

@hyoklee hyoklee commented May 4, 2025

Copy link
Contributor

@byrnHDF byrnHDF left a comment

Choose a reason for hiding this comment

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

There are problems with the HDF5_ENABLE_THREADS option - it is used improperly

@@ -799,35 +799,37 @@ endif ()

# Determine if a threading package is available on this system
option (HDF5_ENABLE_THREADS "Enable thread support" ON)
Copy link
Contributor

@byrnHDF byrnHDF May 5, 2025

Choose a reason for hiding this comment

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

This option should be removed

Then in src/CMakeLists.txt should remove the generator expressions involving the option.
Also other options should not use the state of options to forces defines.
Also there should probably be a line that adds the Threads::Threads library either to the link_libs variable or a new threads_lib variable

@hyoklee hyoklee closed this May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HDF5_ENABLE_THREADS:BOOL=OFF causes build failure
2 participants