[Pkg-octave-devel] Bug#686926: liboctave-dev: creates broken .oct files when the OpenMPI flavor of HDF5 (libhdf5-openmpi-dev) is installed

Rafael Laboissiere rafael at laboissiere.net
Sat Sep 8 12:57:35 UTC 2012


reassign 686926 src:hdf5 1.8.8-9
retitle 686926 hdf5: Skip the inclusion of the C++ API
tags 686926 upstream patch
thanks

* Mike Miller <mtmiller at ieee.org> [2012-09-07 09:11]:

> On Fri, Sep 7, 2012 at 8:51 AM, Sébastien Villemot wrote:
> > Mike Miller <mtmiller at ieee.org> writes:
> >
> >> On Fri, Sep 7, 2012 at 4:50 AM, Sébastien Villemot wrote:
> >>> Note that this problem is only present with libhdf5-openmpi-dev: it is not
> >>> present with libhdf5-dev (serial version, the default) or libhdf5-mpich2-dev.
> >>
> >> Hm, are you sure? I see the same error with either libhdf5-mpich2-dev
> >> or libhdf5-openmpi-dev installed.
> >
> > When testing against libhdf5-mpich2-dev, you should make sure that all
> > OpenMPI libraries are removed (in particular libopenmpi-dev). Otherwise
> > they take precedence over MPICH2 because of the alternatives priority.
> 
> Yep, just found that out myself. Thanks.
> 
> So here's a workaround that works for me with either set of libraries
> installed. Each has their own symbol to avoid including the C++ API,
> which is where the trouble lies.
> 
> mkoctfile -DMPICH_SKIP_MPICXX=1 -DOMPI_SKIP_MPICXX=1 helloworld.cc
> 
> I don't know enough about HDF5, but if it doesn't make use of the MPI
> C++ bindings at all, I'd argue this should be reassigned to hdf5
> upstream so H5public.h would now contain:
> 
> #ifdef H5_HAVE_PARALLEL
> #   define MPICH_SKIP_MPICXX 1
> #   define OMPI_SKIP_MPICXX 1
> #   include <mpi.h>
> #endif

Thanks for the solution above.  It works for me.  We could also patch
mkoctfile according to the patch attached below.  However, I think it is
preferable that the maintainers of the hdf5 package adopt your solution.
Therefore, I am hereby reassigning this bug report.

Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: skip-mpicxx.patch
Type: text/x-diff
Size: 566 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-octave-devel/attachments/20120908/fdbcbe4e/attachment-0001.patch>


More information about the Pkg-octave-devel mailing list