ecmwf / ecbuild

A CMake-based build system, consisting of a collection of CMake macros and functions that ease the managing of software build systems
https://ecbuild.readthedocs.io
Apache License 2.0
26 stars 25 forks source link

Fortran finalization test doesn't work for NAG #62

Closed DJDavies2 closed 1 month ago

DJDavies2 commented 2 months ago

What happened?

Attempting to use the NAG compiler with e.g. fckit results in this:

-- Checking Fortran support for "finalization" -- Checking Fortran support for "finalization" -- not supported -- Feature FINAL was not enabled (also not requested) -- following condition was not met: EC_HAVE_Fortran_FINALIZATION -- fckit_HAVE_FINAL [0]

Looking at ecbuild.log it seems that finalization.F90 fails to compile due to the use of the LOC intrinsic. This is a non-standard intrinsic that has nothing to do with finalization.

What are the steps to reproduce the bug?

Use ecbuild with nagfor

Version

develop

Platform (OS and architecture)

Linux

Relevant log output

No response

Accompanying data

No response

Organisation

Met Office