Comment 3 for bug 1041742

Revision history for this message
Maui Muc (stefan-mauerberger) wrote :

I'd like to support the idea of having a libnetcdf-openmpi-dev package, too. Having it would be a grate relief.

Well, I tried to build it my own, however, with no success.
Maybe someone could help me out with this?

The following is what I did:
1. Sources and build dependencies
 > apt-get source libnetcdf-dev
 > sudo apt-get build-dep libnetcdf-dev
2. Replace libhdf5-dev (serial) by libhdf5-openmpi-dev
 > sudo apt-get install libhdf5-openmpi-dev
3. Changing build dependencies in debian/control
 line 6: libhdf5-dev -> libhdf5-openmpi-dev
4. Modify /debian/rules
 line 14: --enable-parallel-tests
 line 15: mpif90
 line 16: mpic++
 line 17: mpicc
5. Rebuild package
 > dpkg-buildpackage -us -uc

This however does not work. The build-process terminates with some error messages due to that reason:
> libtool: link: mpif90 -shared .... -L/usr/lib/openmpi/lib -l -L/usr/lib/gcc/x86_64-linux-gnu/4.7 ....
Sure, -l directly followed by -L wont work ...

Does anyone have an idea what is going wrong here?

Cheers,
Stefan