Bug#943313: liggghts should not use MPI_C_COMPILER or MPI_CXX_COMPILER

Helmut Grohne helmut at subdivi.de
Wed Oct 23 08:29:58 BST 2019


Source: liggghts
Version: 3.8.0+repack1-4
Tags: patch upstream
User: debian-cross at lists.debian.org
Usertags: ftcbfs

liggghts uses MPI and it uses it via FindMPI.cmake, which presently
detects MPI using compiler wrappers such as mpicc. During cross
compilation these wrappers will not work and they will be unsupported on
Debian. Beyond breaking cross compilation, such wrappers break when you
need two of them (e.g. ccache/distcc/mpicc). For MPI, a good solution is
using pkg-config and doing so is well supported by all major
implementations. I'm working on a patch for FindMPI.cmake to make it
work with pkg-config. However that'll result in MPI_C_COMPILER and
MPI_CXX_COMPILER being unusable. Unfortunately, liggghts uses them.
FindMPI.cmake also provides the relevant compiler and linker flags via
other cmake variables, so you can stop using MPI_*_COMPILER today and
thus enable cross building once FindMPI.cmake gains support for it.
Please consider applying the attached patch. Doing so early helps with
developing the cmake patch. I'm attaching my current draft for
reference.

Helmut
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cross.patch
Type: text/x-diff
Size: 1197 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20191023/379f7ae2/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mpipkgconfig.patch
Type: text/x-diff
Size: 2911 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20191023/379f7ae2/attachment-0001.patch>


More information about the debian-science-maintainers mailing list