Source: mpch
Version: 4.1.2-2
Severity: normal
User: debian-powe...@lists.debian.org
Usertags: ppc64
X-Debbugs-Cc: debian-powe...@lists.debian.org

Hello!

The configure scirpt for src:mpich is run with --with-ucx on ppc64 despite
the architecture not being whitelisted in the architecture check in debian/
rules [1]:

checking for rdma/fabric.h... yes
checking for fi_getinfo in -lfabric... yes
checking for ucp/api/ucp.h... no
configure: error: --with-ucx is given but not found
        tail -v -n \+0 config.log

This is because the architecture check in debian/rules uses findstring()
which matches "ppc64" in "UCX_ARCH" which is set to "amd64 ppc64el arm64".

The proper approach would be to use filter() instead of findstring() since
the former matches only words separated by whitespaces [2]. I have verified
that this fixes the FTBFS on ppc64.

Thanks,
Adrian

> [1] 
> https://buildd.debian.org/status/fetch.php?pkg=mpich&arch=ppc64&ver=4.1.2-2&stamp=1694900148&raw=0
> [2] https://www.gnu.org/software/make/manual/html_node/Text-Functions.html

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

Reply via email to