delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/10/04/00:11:22

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:content-type
:content-transfer-encoding:mime-version; q=dns; s=default; b=Q/Y
64Wv/Wji6ktpV4qCVuLHl18aUu1F/ytZPZYZND8G8FVLJ3IkMSp/ksVpd9zce/jx
ZItN5DyV82aSWP16OPRSolVFFYLPtaaWMuTrAu3XgQWvwImiFYMgg7dPt86+fkNB
Aoc8BKPkaYm7u1AqHE6aw/GqR+/1M6e6JsiLnAhM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:content-type
:content-transfer-encoding:mime-version; s=default; bh=5o2vMVVra
HzLMTBxm0GpBrqzw0Y=; b=Gph9XS8mSBtAGgBFT6sLXLcw5MG/Jjjvh4jbJP0UI
fS9bVRrZ5AvcoxugJlhUqm+GIBFEU4uHPeQ/apRJ7D6gONqP6fs0pjHCU8bEmKvR
JaNJzcYt+Uiwil8oTVp1KkfctfQ4VYRJPVB9MhnjJfDQ2XWQf9yZRmUWV07r3t7r
KQ=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=4.0 required=5.0 tests=AWL,BAYES_50,RDNS_NONE autolearn=no version=3.3.2
X-HELO: mx1.securemx.biz
From: Mark Hadfield <Mark DOT Hadfield AT niwa DOT co DOT nz>
To: Cygwin Mailing List <cygwin AT cygwin DOT com>
Subject: Incorrect module file format in Fortran netCDF package
Date: Fri, 4 Oct 2013 04:10:58 +0000
Message-ID: <A4BDD8E3859F92478F09D5AACD6D79C0956EEFB9@welwexmb01.niwa.local>
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id r944BKnd027097

The Cygwin package x86/libnetcdf-fortran-devel-4.2-2 includes two Fortran module files

usr/include/NETCDF.mod
usr/include/TYPESIZES.mod

both dated 20 June 2012. According to the first line in each file (they are text files) the Gfortran format module version is '4'.

The current Cygwin gcc-fortran package is at version 4.7.3, which requires module version '9'. When I try to compile Fortran source code that USEs (in the Fortran sense) either of the above files I get a message like this:

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

To fix this, the package needs to be rebuilt with a recent version of Gfortran.


Dr Mark Hadfield
Scientist, Marine Physics
NIWA
301 Evans Bay Parade
Private Bag 14 901
Wellington, New Zealand
Tel: +64 4 386 0363
www.niwa.co.nz
NIWA - Enhancing the benefit of New Zealand's natural resources.

--
Please consider the environment before printing this email.
NIWA is the trading name of the National Institute of Water & Atmospheric Research Ltd.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019