Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 287124 - sci-libs/hdf5: Please consider enabling shared hdf5 with USE=mpi
Summary: sci-libs/hdf5: Please consider enabling shared hdf5 with USE=mpi
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-30 17:21 UTC by Darren Dale
Modified: 2009-11-24 18:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darren Dale 2009-09-30 17:21:45 UTC
Please enable shared hdf5 with USE=mpi. I think this patch will suffice:

--- /usr/portage/sci-libs/hdf5/hdf5-1.8.3-r1.ebuild     2009-09-17 19:08:26.000000000 -0400
+++ /usr/local/portage/sci-libs/hdf5/hdf5-1.8.3-r1.ebuild       2009-09-30 10:00:55.000000000 -0400
@@ -72,6 +72,7 @@
                --enable-production \
                --enable-strict-format-checks \
                --enable-deprecated-symbols \
+               --enable-shared \
                $(use_enable fortran) \
                $(use_enable mpi parallel) \
                $(use_with szip szlib) \


As discussed at http://www.hdfgroup.org/hdf5-quest.html#par-shared:

"For Parallel HDF5, configure disables shared libraries unless the user explicitly enables them with the --enable-shared option.

Shared parallel libraries are not tested, so please use this option with caution. In other words, please make sure that all of the tests passed before using the library."

And then as reported on the hdf5 mailing list (thread: [Hdf-forum] Parallel HDF5 vs shared libraries):

"All tests pass on Linux, for 1.8.3 on 64-bit x86 and 32-bit PPC (the
machines I have immediate access to).  It also looks like the default
Debian/Ubuntu package for libhdf5-openmpi (HDF5 1.6.6) ships with
shared libraries.  Presumably the package managers have done their own
testing, although I don't know what patchset they've applied."


I tested on ~amd64, and the tests do pass (although I had to run them manually, as the test suite complained that it could not find mpd.conf when I tried to test via portage)

Reproducible: Always
Comment 1 Sébastien Fabbro (RETIRED) gentoo-dev 2009-10-02 16:40:13 UTC
So I added a forced --enabled-shared in cvs . Concerning the make check, the tests failed on me with mpi enabled on ~amd64 , however not with a missing mpd.conf but with MPIO
Comment 2 Darren Dale 2009-10-05 14:52:16 UTC
did you start any mpds ahead of the build?
Comment 3 Sébastien Fabbro (RETIRED) gentoo-dev 2009-11-24 18:34:38 UTC
The shared libs are built now. So closing this bug.
Please open another one for the test failures if you still experience them.