X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BAE3E3857C57
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1600049273;
	bh=k2q1IPt/MgtW7DQtBB5m9abAWPc8CE+YQ5xtjVQcrPc=;
	h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
	 From;
	b=RrjUnBJ9OHHTrvHimEQGD4/npFqlQac8dTfjBg7ic9jlJelBmOFm6uo5urKGSJUFF
	 onYDFIhApFwsZR5+n+8O8Uxv3jyy3F3geNOonOt19UDytBWr4SF5ljQTdMNa1lrdh9
	 hZ3UyfVrwfdw/F+iKP3nooUali1FdXciO27w1OlM=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 520EA3857C57
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=NzaqTwfhJxIl8DHY5FKZ+vmXEKk96HnhmF+/QHIARiw=;
 b=ckhZYciAPfe/8uanwt8SkrGm9PExUmmOpZb5j7tFESrFjafM8+Q3YcSwF4/V+qW9Y7
 stwYVEZ+DBOYid6mdGku9nCj1nU/qWo10VphaQg9Z4FifUd7q1I46R/SPWulolcLJlUs
 g1rBj16oosFUZKDPqI5LnzoA2L0/H0Sf9Mi73+8sYReyyR4UtzDIA3mzuGQrwRFOeURu
 wsfh/Of1SV2AxEw7S2EDkRxo43gg6TgmFaRelSOMLe0VMwilf3aYsSJQsBSQcwCj4jsb
 3RS+D7W3ylRKtJOyugRInn1/QK5HeZcyXhJS9ah6sMxTKJbRKqFrW+85HGJ8r9UHAFwq
 +XWA==
X-Gm-Message-State: AOAM532D3FMn/anPhBznjvuD0tUgpTNCP2WMYammKBM+ggd/LrA4yFfE
 q+grEWaF8G85w8Pgasi++TLxjfVubnmWKN/DrpE=
X-Google-Smtp-Source: ABdhPJxoNExlv91ZwthVMuh3dFUZph2OcwAJi9YJvcYC3SngnHFHQmYicopfRdgAsPTcJqSG1PSgrS1ZOKQlFap3HIE=
X-Received: by 2002:a2e:a16e:: with SMTP id u14mr4664731ljl.464.1600049268941; 
 Sun, 13 Sep 2020 19:07:48 -0700 (PDT)
MIME-Version: 1.0
References: <CAOt=qgmQZ2a7u5ZwM3p7twFMc5F44sO9eLX1aOTtLZCO2Q1_1w@mail.gmail.com>
 <90d505d5-11fc-418d-02e4-73dd423a92ce@gmail.com>
In-Reply-To: <90d505d5-11fc-418d-02e4-73dd423a92ce@gmail.com>
Date: Mon, 14 Sep 2020 11:07:38 +0900
Message-ID: <CAOt=qgnk08D=HpJH+p4ztsF9-rjZSm2A2e02q8+gXooCbp7r-Q@mail.gmail.com>
Subject: Re: Setting up a proper modelling environment in Cygwin
To: Marco Atzeri <marco.atzeri@gmail.com>
X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE,
 RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
 TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Lawrence Bernardo via Cygwin <cygwin@cygwin.com>
Reply-To: Lawrence Bernardo <loric.bernardo@gmail.com>
Cc: cygwin@cygwin.com
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

Thank you Marco for addressing my concerns. And I think checking for the
fortran module consistency will be really helpful for me to assess issues I
run into in the future. I have rolled back the versions I have been using
to all be based on gfortran/gcc version 7.4.0, but an update, although not
urgent for now, would indeed be helpful. Lately, some other codes I've been
running have been having problems with this older version, so I'll stay
tuned for your updates to the package.

Best regards,
Lawrence

On Fri, Sep 11, 2020 at 11:59 PM Marco Atzeri via Cygwin <cygwin@cygwin.com>
wrote:

> On 11.09.2020 04:37, Lawrence Bernardo via Cygwin wrote:
> > Dear Cygwin users and developers,
> >
> > I am trying to run some models based on the ROMS ocean modeling system.
> And
> > although I mainly run such models on Linux supercomputing systems, I
> > sometimes use Cygwin to make test runs. However, whenever I install
> Cygwin
> > on a new PC, I often find that my set up on an older PC I had been using
> > doesn't work properly. After looking deeper into the issues, it seems
> that
> > proper compilation requires that the same fortran compiler (gfortran in
> > this case) be used to compile the necessary components.
> >
> > And as far as I understand, these components would mainly be:
> > - zlib
> > - hdf5
> > - netcdf
> > - netcdf-fortran
> > - openmpi
> >
> > As the gfortran compiler version number used for these different
> components
> > is not indicated whenever I run cygwin setup-x86_64.exe, I am left to
> guess
> > which version numbers for each to select. Of course, another option would
> > be to accept the defaults for some components, and then compile my own
> > version of say, netcdf, but this attempt almost always fails, and I'm not
> > sure if this is due to conflicts with the already existing cygwin setup.
> >
> > Given the issues above, would anyone have any suggestions or
> > recommendations on how to best achieve the setup I would like to have? I
> > will greatly appreciate any help.
> >
> > Best regards,
> > Lawrence
> > --
>
>
> for what I am aware the problem is only present with
> fortran modules if you are using them.
> C interface are not involved
>
> zlib should not be involved as it has no fortran specific modules
> same for hdf5.
>
> Now the current gfortran has
>
> $ zcat
> /usr/lib/gcc/x86_64-pc-cygwin/9.3.0/finclude/ieee_arithmetic.mod|head -n 1
> GFORTRAN module version '15' created from ieee_arithmetic.F90
>
> openmpi was built with last gcc so it is aligned
>
> $ zcat /usr/lib/mpi.mod |head -n 1
> GFORTRAN module version '15' created from mpi-ignore-tkr.F90
>
> netcdf-fortran needs a rebuild
>
> $ zcat /usr/include/netcdf.mod | head -n 1
> GFORTRAN module version '14' created from netcdf4.f90
>
> Give me some days for an update of the package
> And I will need to re-build for test gcc 10 also,
> but it is less urgent
>
>
> Regards
> Marco
>
>
>
>
> --
> Problem reports:      https://cygwin.com/problems.html
> FAQ:                  https://cygwin.com/faq/
> Documentation:        https://cygwin.com/docs.html
> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
>
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
