[Debian-med-packaging] Bug#1087010: prime-phylo:FTBFS:build failure (Imported target "MPI::MPI_Fortran" includes non-existent path )
Yue Gui
yuemeng.gui at gmail.com
Fri Nov 8 03:45:49 GMT 2024
Source: prime-phylo
Version: 1.0.11-13
Severity: serious
Tags: FTBFS, patch
User: debian-riscv at lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: debian-riscv at lists.debian.org
Dear prime-phylo Maintainer,
The package prime-phylo build failed on all architectures except amd64. The
crucial buildd log below:
```
-- Found MPI_C: /usr/lib/riscv64-linux-gnu/openmpi/lib/libmpi.so
(found version "3.1")
-- Found MPI_CXX: /usr/lib/riscv64-linux-gnu/openmpi/lib/libmpi.so
(found version "3.1")
CMake Error in /<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-RHCg58/CMakeLists.txt:
Imported target "MPI::MPI_Fortran" includes non-existent path
"/usr/lib/x86_64-linux-gnu/fortran/gfortran-mod-15/openmpi"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.
CMake Error at /usr/share/cmake-3.30/Modules/FindMPI.cmake:1282 (try_compile):
Failed to generate test project build system.
Call Stack (most recent call first):
/usr/share/cmake-3.30/Modules/FindMPI.cmake:1301 (_MPI_try_staged_settings)
/usr/share/cmake-3.30/Modules/FindMPI.cmake:1649 (_MPI_check_lang_works)
src/cxx/CMakeLists.txt:19 (find_package)
```
The full buildd log is here:
https://buildd.debian.org/status/fetch.php?pkg=prime-phylo&arch=riscv64&ver=1.0.11-13&stamp=1730649664&raw=0
My solution to this issue:
The configure failed because MPIFORTRAN was not set to the correct path.
My solution is to properly set the path of MPIFORTRAN in the CMakeLists
based on the current architecture. I have tested this method, and it is
very effective. The debpatch is in the attachment. This patch can
automatically set MPIFORTRAN to the correct path based on the current
architecture. Please let me know whether this solution can be accepted.
Gui-Yue
Best Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20241108/899fb5f4/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_prime-phylo_configure_failed.patch
Type: application/octet-stream
Size: 1629 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20241108/899fb5f4/attachment.obj>
More information about the Debian-med-packaging
mailing list