hi
I'm just setting up a new machine which has Ubuntu 22.04 on it, and OpenMPI.
If I try to use Meson to build even a trivial MPI Fortran program, I get
the error: "Cannot open module file 'mpi.mod' for reading at (1): No
such file or directory"
The same program builds and runs OK if I use mpif90 instead.
It looks like on this system the Fortran MPI module file mpi.mod is
present at /usr/lib/x86_64-linux-gnu/fortran/gfortran-mod-15/openmpi/,
but Meson is looking for it in /usr/lib/x86_64-linux-gnu/openmpi/lib/.
On my old Ubuntu 20.04 machine, it was present in both those locations,
but on 22.04 it isn't.
Any suggestions?
- Adrian
--
Dr Adrian Croucher
Senior Research Fellow
Department of Engineering Science
University of Auckland, New Zealand
email:
a.cro...@auckland.ac.nz
tel:
+64 (0)9 923 4611