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

Change to public CMake link for MPI breaks spack builds for certain packages #2404

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

Comments

@lrknox
Copy link
Collaborator

lrknox commented Jan 13, 2023

PR #2198 "Correct the CMake link for MPI" changed the dependency on MPi:MPI_C from PRIVATE to PUBLIC for target_link_libraries (${HDF5_LIBSH_TARGET} to resolve issues with some dependent software packages. See also #2176 "CMake config depends on MPI but does not find it"

The change introduced this error when configuring 2 or more Spack packages in E4S tests:

1 error found in build log:
25 -- Found ZLIB: /scr/lrknox/spack_lrknox/opt/spack/linux-centos7-haswell/g
cc-10.2.0/zlib-1.2.13-lik6tppfkychie657bb37cn4nxt2sewa/lib/libz.so (found
version "1.2.13")
26 -- Found OpenMP_C: -fopenmp (found version "4.5")
27 -- Found OpenMP_CXX: -fopenmp (found version "4.5")
28 -- Found OpenMP: TRUE (found version "4.5")
29 -- Found HDF5: hdf5-shared (found version "1.14.0")
30 -- Configuring done

31 CMake Error at /scr/lrknox/spack_lrknox/opt/spack/linux-centos7-haswell/g
cc-10.2.0/hdf5-1.14.0-rfvrzau53dmibmjws7rz4tinc4xebz3k/cmake/hdf5-targets
.cmake:68 (set_target_properties):
32 The link interface of target "hdf5-shared" contains:
33
34 MPI::MPI_C
35
36 but the target was not found. Possible reasons include:
37

Note that the default configuration for the hdf5 spack pacakge includes +mpi, but the packages that fail with the change may not use mpi.

@lrknox lrknox added the bug label Jan 13, 2023
@derobins derobins removed the bug label Mar 3, 2023
@mattjala mattjala added Component - Build CMake, Autotools Type - Bug Please report security issues to [email protected] instead of creating an issue on GitHub Priority - 2. Medium ⏹ It would be nice to have this in the next release labels Mar 7, 2023
@derobins derobins added this to the 1.14.3 milestone Oct 9, 2023
@derobins
Copy link
Member

Everyone insists that this is fixed. Closing.

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 Please report security issues to [email protected] instead of creating an issue on GitHub
Projects
None yet
Development

No branches or pull requests

4 participants