Bug#1086209: mpif90.openmpi: Cannot open module file 'mpi.mod' for reading at (1): No such file or directory

Gilles Filippini pini at debian.org
Mon Oct 28 21:17:41 GMT 2024


Package: openmpi-bin
Version: 5.0.5-4
Severity: serious
Tags: ftbfs
Control: affects -1 src:hdf5

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi,

mpif90 fails to build a simple executable on any arch other then amd64. For instance on arm64:

$ cat toto.f90 
PROGRAM FC_MPI_CHECK
  USE mpi
  INTEGER :: comm, amode, info, fh, ierror
  CHARACTER(LEN=1) :: filename
  CALL MPI_File_open( comm, filename, amode, info, fh, ierror)
END PROGRAM FC_MPI_CHECK

$ mpif90.openmpi -o toto toto.f90 
f951: Warning: Nonexistent include directory '/usr/lib/aarch64-linux-gnu/openmpi/lib/fortran/gfortran-mod-15/openmpi' [-Wmissing-include-dirs]
f951: Warning: Nonexistent include directory '/usr/lib/aarch64-linux-gnu/openmpi/lib/openmpi/lib' [-Wmissing-include-dirs]
toto.f90:2:7:

    2 |   USE mpi
      |       1
Fatal Error: Cannot open module file 'mpi.mod' for reading at (1): No such file or directory
compilation terminated.

S mpi.mod | grep openmpi
libopenmpi-dev:arm64: /usr/lib/aarch64-linux-gnu/fortran/gfortran-mod-15/openmpi/mpi.mod

Default include path seems broken.

Best,
_g.

- - - -- System Information:
Debian Release: 12.0
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-26-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled


-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEoJObzArDE05WtIyR7+hsbH/+z4MFAmcf/3UACgkQ7+hsbH/+
z4OE5Qf+KldyobnYUA3Ed3IN8yoqhLgSZKOe+6Zv68BTH4ns4uKNzumZ37p6RbF0
3k+sN7aZ/B2YI0PxUPfc9YevdwI7+pDHPkrWw7cXPPz8sU3r5hUHubYFTPY77f6c
fcjfCjigzFSdVbyDPAAmk8hWkbRiB+8bRdOcgjnUwpOF1vsNKiUkjl9TAirfz3FF
srN5WTf0PAF8SySGU74/cUFK75vuyeIWhkbS+2yCh7AIIydEkXO52eeqruKs+lhk
z0RvgwdXLu6/n4zwkaSUDKFja49lhfvF6BGkwNNJGX4NgC8JjRKVcxwVICqMk21f
4SyakGV+SIBM+d9t5aSR71/vcRkfbg==
=5/8y
-----END PGP SIGNATURE-----



More information about the debian-science-maintainers mailing list