<div dir="ltr">Source: prime-phylo<br>Version: 1.0.11-13 <div>Severity: serious<br>Tags: FTBFS, patch<br>User: <a href="mailto:debian-riscv@lists.debian.org" target="_blank">debian-riscv@lists.debian.org</a><br>Usertags: riscv64<br>X-Debbugs-Cc: <a href="mailto:debian-riscv@lists.debian.org" target="_blank">debian-riscv@lists.debian.org</a></div><div><br></div><div>Dear prime-phylo Maintainer,</div><div>The package prime-phylo build failed on all architectures except amd64. The crucial buildd log below:</div><div>```</div><div><pre style="color:rgb(0,0,0)">-- 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)</pre></div><div>```</div><div>The full buildd log is here:</div><div><a href="https://buildd.debian.org/status/fetch.php?pkg=prime-phylo&arch=riscv64&ver=1.0.11-13&stamp=1730649664&raw=0">https://buildd.debian.org/status/fetch.php?pkg=prime-phylo&arch=riscv64&ver=1.0.11-13&stamp=1730649664&raw=0</a></div><div>My solution to this issue:</div><div> 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.</div><div><br></div><div>Gui-Yue</div><div>Best Regards</div></div>