FS#35855 - [netcdf-fortran] can not be used on a system with GCC version >= 4.8

Attached to Project: Arch Linux
Opened by Dmitry Kabanov (dmitrykabanov) - Wednesday, 19 June 2013, 20:29 GMT
Last edited by Ronald van Haren (pressh) - Tuesday, 27 January 2015, 09:49 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ronald van Haren (pressh)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

I installed netcdf-4.2.1.1-1 and netcdf-fortran-4.2-1 from the repository extra. During compilation process I get the following problem:

I looked at the file netcdf.mod which goes with the package netcdf-fortran. The first line says:
GFORTRAN module version '9' created from netcdf4.f90

I downloaded netcdf-fortran-4.2.tar.gz from http://www.unidata.ucar.edu/downloads/netcdf/netcdf-fortran/index.jsp and compiled manually.
When I looked at the netcdf.mode, it showed in the first line:
GFORTRAN module version '10' created from netcdf4.f90

And release of GCC 4.8 says on http://gcc.gnu.org/wiki/GFortran#GCC4.8:

Module files: The version of the module files (.mod) has been incremented. Fortran MODULEs compiled by earlier GCC versions have to be recompiled, when they are USEd by files compiled with GCC 4.8, because GCC 4.8 is not able to read .mod file of earlier GCC versions; attempting to do so gives an error message. Note: The ABI of the produced assembler data itself has not changed: object files and libraries are fully compatible to older versions.

I have gcc version 4.8.1 (GCC) and every Arch user who updates his system should have the same version. Thus, the package netcdf-fortran can not be used. It should be recompiled.

Additional info:
* netcdf-fortran-4.2-1


Steps to reproduce:

1. Install packages netcdf-4.2.1.1-1 and netcdf-fortran-4.2-1 on the system with GCC version >= 4.8.
2. Write simple fortran program:
program netcdftest
use netcdf
end program

3. Try to build with gfortran -I/usr/include -lnetcdf netcdftest.f90 -o netcdftest


I'm sorry if I should report that the package is outdated in this case. I'm not sure about that.
This task depends upon

Closed by  Ronald van Haren (pressh)
Tuesday, 27 January 2015, 09:49 GMT
Reason for closing:  Works for me
Additional comments about closing:  netcdf-fortran 4.4.1

Loading...