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

CMake config depends on MPI but does not find it #2176

Closed
svenevs opened this issue Oct 19, 2022 · 1 comment
Closed

CMake config depends on MPI but does not find it #2176

svenevs opened this issue Oct 19, 2022 · 1 comment
Assignees
Labels
Component - Build CMake, Autotools Component - Parallel Parallel HDF5 (NOT thread-safety) Priority - 1. High 🔼 These are important issues that should be resolved in the next release Type - Bug Please report security issues to [email protected] instead of creating an issue on GitHub
Milestone

Comments

@svenevs
Copy link

svenevs commented Oct 19, 2022

Describe the bug
The hdf5 library code installed had #include statments looking for MPI that could not be found.

Redirected CC @jhendersonHDF if interested.

hpc-io/vfd-gds#8 (comment)

If I compile hdf5 +mpi (specifically 1.13.2 via spack with OpenMPI), my consuming cmake code should only need to find_package(HDF5 CONFIG REQUIRED) and I link against hdf5-static|shared. I should not have to find_package(MPI REQUIRED) and link against it in addition.

Expected behavior
If mpi is a dependency of hdf5, hdf5's CMake should find that dependency.

Platform (please complete the following information)

  • HDF5 version (if building from a maintenance branch, please include the commit hash): 1.13.2
  • OS and version: multiple linux
  • Compiler and version: multiple gcc
  • Build system (e.g. CMake, Autotools) and version: spack
  • Any configure options you specified: I do not have access to these anymore.
  • MPI library and version (parallel HDF5): OpenMPI
@svenevs svenevs added the bug label Oct 19, 2022
@derobins derobins removed the bug label Mar 3, 2023
@derobins derobins changed the title [BUG] CMake config depends on MPI but does not find it CMake config depends on MPI but does not find it May 3, 2023
@derobins derobins added Priority - 1. High 🔼 These are important issues that should be resolved in the next release Component - Parallel Parallel HDF5 (NOT thread-safety) Component - Build CMake, Autotools Type - Bug Please report security issues to [email protected] instead of creating an issue on GitHub labels May 3, 2023
@derobins derobins assigned jhendersonHDF and unassigned glennsong09 Oct 9, 2023
@derobins derobins added this to the 1.14.3 milestone Oct 9, 2023
@lrknox lrknox closed this as completed Oct 18, 2023
@lrknox
Copy link
Collaborator

lrknox commented Oct 18, 2023

followed link hpc-io/vfd-gds#8 (comment) near the top, which in later comments implies it was resolved. Also ran "spack install hdf5-vfd-gds" which seemed to be the package that reported the problem. It built with no issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Build CMake, Autotools Component - Parallel Parallel HDF5 (NOT thread-safety) Priority - 1. High 🔼 These are important issues that should be resolved in the next release Type - Bug Please report security issues to [email protected] instead of creating an issue on GitHub
Projects
None yet
Development

No branches or pull requests

6 participants