Subject: Including hdf5.h disables MPI C++ bindings
Package: libhdf5-openmpi-dev
Version: 1.8.9-1~exp3
Severity: normal

As reported in lp:1165504 [1] and discussed in bug 686926 [2],
including "hdf5.h" from the libhdf5-openmpi-dev package
completely disables the MPI C++ bindings. This leads to weird
errors and regressions.

For example, to reproduce:

$ cat test.cpp
#include <hdf5.h> // disables MPI C++ bindings
#include <mpi.h>
int main() {
  printf("I'm %d of %d\n", MPI::COMM_WORLD.Get_rank(),

$ mpicxx -o test test.cpp
test.cpp: In function ‘int main()’:
test.cpp:4:3: error: ‘MPI’ has not been declared
test.cpp:5:28: error: ‘MPI’ has not been declared
test.cpp:5:56: error: ‘MPI’ has not been declared
test.cpp:6:3: error: ‘MPI’ has not been declared

The fix for this bug is to remove 'skip_cxx_inclusion.diff' from

The main rationale for the patch was to alleviate awkward
workarounds when compilng C++ code:


However, the appropriate fix would instead have been to compile
helloworld as:

  CXX=mpicxx mkoctfile

The mpicxx wrappers are provided for a reason, and we should
strive to encourage our users to actually _use_ them.

I hope you consider reverting the 'skip_cxx_inclusion.diff'
from debian/patches/series.



Pkg-grass-devel mailing list

Reply via email to