[Fedora-packaging] Issues with Fortran modules

Orion Poplawski orion at cora.nwra.com
Mon Dec 6 17:22:47 UTC 2010


See https://bugzilla.redhat.com/show_bug.cgi?id=660035 for the spark for this.

Apparently there is a "GFORTRAN module version" number assigned to Fortran 
modules created by gfortran:

==> /usr/lib/gfortran/modules/hdf5.mod <==
GFORTRAN module version '4' created from ../../../fortran/src/HDF5.f90 on Thu 
Oct 28 14:43:23 2010

==> /usr/lib/gfortran/modules/netcdf.mod <==
GFORTRAN module version '0' created from netcdf4.f90 on Mon Apr 19 20:30:19 2010

Now, apparently from gcc 4.4.3 -> 4.5.1  this changed from 0 to 4, and 
apparently there is no backwards compatibility:

Fatal Error: Wrong module version '0' (expected '4') for file 'netcdf.mod'
opened at (1)

So, it makes sense to me to encode this into the rpm dependencies somehow. 
Perhaps gcc-gfortran can provides a gfortran-abi(VERSION) and the gfortran 
module packages can require it.  rpm would need to automatically generate the 
requires though.

Thoughts?  Suggestions?

-- 
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 packaging mailing list