-------- Forwarded Message --------
Subject: Re: Bug#901874: openmpi-bin is wrongly marked Multi-Arch:
foreign
Date: Wed, 20 Jun 2018 07:19:01 +0100
From: Alastair McKinstry <mckins...@debian.org>
Organization: Debian
To: Helmut Grohne <hel...@subdivi.de>, 901...@bugs.debian.org, Debian
Bug Tracking System <sub...@bugs.debian.org>
On 19/06/2018 18:48, Helmut Grohne wrote:
Package: openmpi-bin
Version: 3.1.0-7
User: helm...@debian.org
Usertags: rebootstrap
Control: affects -1 + src:valgrind
Cross building valgrind presently fails. It detects mpi as absent and
fails the build missing files for libmpiwrap. valgrind's configure.ac
tries to link a minimal program and fails finding <mpi.h> despite
depending on mpi-default-dev. Clearly something is wrong here.
...
So that's my ideas on how to make this work. Do you have more (possibly
better) ideas?
What do you think about extending the alternatives handling to the
pkg-config fils? I think the plan could be:
1. Extend lam4-dev to ship .pc files.
2. Add mpi-c.pc, mpic-cxx.pc etc.
3. Update client packages such as valgrind to use pkg-config.
This sounds like a pile of work in any case.
Helmut
As the person responsible for this to date in openmpi / mpich, my
thinking is this:
(1) mpicc, etc. wrappers should be deprecated*, but are widespread
amongst the community.
They can be made to pull the data from pkg-config (or cmake equivalent)
files.
mpicc.openmpi pulls its data from
/usr/share/openmpi/mpicc-wrapper-data.txt . This needs to be moved into
a multiarch
directory, and the binary pull the correct one according to architecture
($(DEB_BUILD_MULTIARCH)).
(2) lam hasn't been updated in debian since 2014, and is dead upstream
since 2015. I think we should remove it.
(3) Yes, its work. Splitting mpi for m-a has been.
(*) There are a bunch of places where the *-config / mpicc type wrapper
scripts have been used. See e.g. h5cc ,etc within HDF5, which abstracts
the necessary compile environment.
This is ok if its just mpi, but then h5cc wraps mpicc or cc, and you
have other layers like adios wrapping on top of h5cc, etc.
You end up with a 'wrapper war' where everyone wants to be on top, and
you can't easily combine complex libraries.
pkgconfig allows for composition, and abstraction much better.
pkg-config should now work for the openmpi / mpich case, and I think we
should push patches to use pkg-config rather than mpicc
back to upstream.
--
Alastair McKinstry, <alast...@sceal.ie>, <mckins...@debian.org>,
https://diaspora.sceal.ie/u/amckinstry
Misentropy: doubting that the Universe is becoming more disordered.