gfortran module versioning - f17/rawhide fortran module rebuild needed

Orion Poplawski orion at cora.nwra.com
Thu Feb 9 03:32:23 UTC 2012


It appears that gcc-gfortran-4.7.0-0.11.fc17.x86_64 (in rawhide) and 
gcc-gfortran-4.7.0-0.12.fc17.x86_64 (in f17 - branching fun!) produces 
and uses Fortran modules version 9 as I'm getting this trying to rebuild 
netcdf:

   use mpi
       1
Fatal Error: Wrong module version '8' (expected '9') for file 'mpi.mod' 
opened at (1)

openmpi was built with 4.7.0-0.8.fc17 on Jan 20th, so at some point 
between the two the module version was bumped.

It's somewhat surprising that the version number needed to get bumped 
during the 4.7.0 pre-release series, though appreciated if it was 
necessary to fix the fortran regression I came across via plplot. :)

Would it be possible for rpm to track this dependency for us somehow so 
we could get notified of abi breakage automatically?  It's hard at the 
moment to know what packages have Fortran modules and need to be rebuilt 
(assuming the version number bump was intentional).  gcc-gfortran could 
provide "gfortran(abi) = 8" and rpm could parse .mod files for their header:

GFORTRAN module version '6'

and put in a requires "gfortran(abi) = 6".


Likely rebuild candidates:
# repoquery --whatprovides /usr/\*.mod | grep devel | sort
getdata-devel-0:0.7.3-1.fc16.i686
hdf5-devel-0:1.8.7-1.fc16.i686
hdf5-devel-0:1.8.7-3.fc16.i686
hdf5-mpich2-devel-0:1.8.7-1.fc16.i686
hdf5-mpich2-devel-0:1.8.7-3.fc16.i686
hdf5-openmpi-devel-0:1.8.7-1.fc16.i686
hdf5-openmpi-devel-0:1.8.7-3.fc16.i686
healpix-devel-0:2.13a-2.fc14.i386
kdelibs3-devel-0:3.5.10-31.fc16.i686
libxc-devel-0:1.1.0-1.fc16.i686
matio-devel-0:1.3.4-2.fc15.i686
mpich2-devel-0:1.4.1p1-1.fc16.i686
mpich2-devel-0:1.4.1p1-4.fc16.i686
netcdf-devel-0:4.1.3-2.fc16.i686
openmpi-devel-0:1.5.4-3.fc16.i686
openmpi-devel-0:1.5-4.fc16.i686
plplot-fortran-devel-0:5.9.8-2.fc16.1.i686
plplot-fortran-devel-0:5.9.9-1.fc16.i686
qd-devel-0:2.3.11-3.fc15.i686
wannier90-devel-0:1.2-3.fc15.i686

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion at cora.nwra.com
Boulder, CO 80301              http://www.cora.nwra.com


More information about the devel mailing list