Red Hat Bugzilla – Bug 1314091
Package hdf5-mpich-devel does not require package mpich-devel
Last modified: 2016-03-24 21:27:09 EDT
Created attachment 1132552 [details]
Description of problem:
Package hdf5-mpich-devel currently requires only hdf5-mpich (which in turn requires mpich) and does not require mpich-devel. Then when compiling software which uses hdf5-mpich-devel, linking against libmpi (i.e. -lmpi) fails because package mpich provides the versioned libraries (i.e. libmpi.so.12), but mpich-devel provides the symbolic link (i.e. libmpi.so) needed for linking.
Steps to Reproduce:
1. Without package mpich-devel installed, install hdf5-mpich-devel and its dependences.
2. [Matthew@strider ~]$ module load mpi/mpich-x86_64
3. Try to compile a program e.g. test.c:
[Matthew@strider ~]$ mpicc -o test.exe test.c
/usr/bin/ld: cannot find -lmpi
collect2: error: ld returned 1 exit status
[Matthew@strider ~]$ mpicc -o test.out test.c
produces binary test.out
Installing package mpich-devel fixes this. The hdf5-openmpi-devel package correctly requires openmpi-devel, so this packaging issue is not an issue for for the OpenMPI implementation:
diff <(dnf repoquery --requires hdf5-openmpi-devel) <(dnf repoquery --requires hdf5-mpich-devel)
< Last metadata expiration check performed 4:43:57 ago on Wed Mar 2 10:22:04 2016.
> Waiting for process with pid 27750 to finish.
> Last metadata expiration check performed 4:43:59 ago on Wed Mar 2 10:22:04 2016.
< hdf5-openmpi(x86-32) = 1.8.14-3.fc22
< hdf5-openmpi(x86-64) = 1.8.14-3.fc22
> hdf5-mpich(x86-32) = 1.8.14-3.fc22
> hdf5-mpich(x86-64) = 1.8.14-3.fc22
hdf5-1.8.15-10.patch1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-6a13ebb6ca
hdf5-1.8.15-10.patch1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-6a13ebb6ca
hdf5-1.8.15-10.patch1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.