Bug 1314091

Summary: Package hdf5-mpich-devel does not require package mpich-devel
Product: [Fedora] Fedora Reporter: Matthew Krupcale <mkrupcale>
Component: hdf5Assignee: Orion Poplawski <orion>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 22CC: c.david86, orion
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: hdf5-1.8.15-10.patch1.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-25 01:27:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
test.c none

Description Matthew Krupcale 2016-03-02 22:03:52 UTC
Created attachment 1132552 [details]
test.c

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.

How reproducible:
Always

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

Actual results:

/usr/bin/ld: cannot find -lmpi
collect2: error: ld returned 1 exit status

Expected results:

[Matthew@strider ~]$ mpicc -o test.out test.c
produces binary test.out

Additional info:

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)
1c1,2
< 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.
3,4c4,5
< 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
13c14
< openmpi-devel
---
> mpich

Comment 1 Fedora Update System 2016-03-03 15:26:36 UTC
hdf5-1.8.15-10.patch1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-6a13ebb6ca

Comment 2 Fedora Update System 2016-03-03 21:57:32 UTC
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

Comment 3 Fedora Update System 2016-03-25 01:27:07 UTC
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.