[arch-dev-public] fortran modules and gfortran version
I am sending here because this could require intervention for some packages and also to discuss a solution to prevent the problem in the future. Sometimes with newer versions of GCC there is a change in the version for Fortran modules which is incompatible with older versions. All packages providings Fortran modules (usually .mod files) must be rebuilt when the module version is bumped. A possible solution to identify those packages could be to provide a Fortran module ABI number in our gfortran PKGBUILD and force packages with .mod files to explicitly depend on it. Any thoughts on this? Cheers, Stéphane --- Example with gfortran 4.8.0 and the openmpi package build with a previous version : # cat test_mpi_fmodule.f90 program test USE mpi end program test # mpif90 test_mpi_fmodule.f90 test_mpi_fmodule.f90:2.4: USE mpi 1 Fatal Error: Cannot read module file 'mpi.mod' opened at (1), because it was created by a different version of GNU Fortran
participants (1)
-
Stéphane Gaudreault