[CMake] MinGW-w64/MSYS2 (or Cygwin) and NAG Fortran - how to combine?

Alan W. Irwin irwin at beluga.phys.uvic.ca
Sun Feb 11 04:26:00 EST 2018


On 2018-02-10 08:04+0100 Mojca Miklavec wrote:

> On 9 February 2018 at 18:24, Alan W. Irwin wrote:
>> On 2018-02-09 10:44-0000 Arjen Markus wrote:
>>
>>> Hi Alan,
>>>
>>> The result is the same or very much the same.
>>
>> OK.  Time for more knowledgable people to weigh in here about what
>> Platform filenames to use for the combination of nagfor and
>> MinGW-w64/MSYS2 for the "Unix Makefiles" and "MSYS Makefiles"
>> generators.
>>
>> Meanwhile, can you test whether the Platform filename I suggested for
>> the nagfor Cygwin case with "Unix Makefiles" generator is correct?
>>
>> Alan
>
> I wonder if this is in any way related to
>    https://cmake.org/Bug/view.php?id=14252

Hi Mojca:

Just to clarify there has been a change in the CMake bugtracker.  You
reference the old bug tracker entry where all issues there were
automatically closed and moved to the new bug tracker
<https://gitlab.kitware.com/cmake/cmake/issues/14252>. However, that
is an almost completely vacuous entry (except for title) in the new
bug tracker although it does declare the issue is still open. As far
as I can tell from that old discussion, Brad King found the hard-coded
source of your problem in the CMake code with -arch, but there is no
reference to a fix either in the old tracker or new one so I assume
that fix has not been implemented yet.

Furthermore, although there is a superficial resemblance I am pretty
sure from the description this hard-coded issue is quite specific to
certain compiler options, and does not refer to ignoring all nagfor
compiler options as Arjen has apparently observed. So I think the
source of Arjen's problem likely is that he is using the incorrect
Platform filenames for the various nagfor Windows cases that have been
discussed, and we need advice from a CMake language support expert to
help us figure out what those Platform filenames should be.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________


More information about the CMake mailing list