ieee_arithmetic error

Discussions related to downloading and compiling MPAS-Atmosphere.
Post Reply
JCollins
Posts: 52
Joined: Thu Aug 23, 2018 11:01 am

ieee_arithmetic error

Post by JCollins » Tue Aug 28, 2018 12:47 pm

Hello everyone.

I am compiling the core atmosphere and during compilation I get the following error:

Code: Select all

mpas_atm_time_integration.F:5712.11:

       use ieee_arithmetic, only : ieee_is_nan
           1
Fatal Error: Can't open module file 'ieee_arithmetic.mod' for reading at (1): No such file or directory
make[4]: *** [mpas_atm_time_integration.o] Error 1
make[4]: Leaving directory `/home/collins/MPAS-Model/src/core_atmosphere/dynamics'
make[3]: *** [dycore] Error 2
make[3]: Leaving directory `/home/collins/MPAS-Model/src/core_atmosphere'
make[2]: *** [dycore] Error 2
make[2]: Leaving directory `/home/collins/MPAS-Model/src'
make[1]: *** [mpas_main] Error 2
make[1]: Leaving directory `/home/collins/MPAS-Model'
make: *** [gfortran] Error 2
For the compilation I used:

Code: Select all

make gfortran CORE=atmosphere USE_PIO2=true
How can I solve this error?

Thank you very much.

mgduda
Posts: 362
Joined: Mon Feb 26, 2018 7:35 pm

Re: ieee_arithmetic error

Post by mgduda » Tue Aug 28, 2018 10:14 pm

It looks like this may be an issue in our "use" statement. Can you try replacing this line

Code: Select all

       use ieee_arithmetic, only : ieee_is_nan
in src/core_atmosphere/dynamics/mpas_atm_time_integration.F with a line that looks like this

Code: Select all

       use, intrinsic :: ieee_arithmetic, only : ieee_is_nan
? Also, out of curiosity, which compiler and compiler version are you using?
NCAR/MMM

JCollins
Posts: 52
Joined: Thu Aug 23, 2018 11:01 am

Re: ieee_arithmetic error

Post by JCollins » Wed Aug 29, 2018 8:16 am

I modified the line you told me. I get the following error:

Code: Select all

mpas_atm_time_integration.F:5712.24:

       use, intrinsic ::  ieee_arithmetic, only : ieee_is_nan
                        1
Fatal Error: Can't find an intrinsic module named 'ieee_arithmetic' at (1)
make[4]: *** [mpas_atm_time_integration.o] Error 1
make[4]: Leaving directory `/home/collins/MPAS-Model/src/core_atmosphere/dynamics'
make[3]: *** [dycore] Error 2
make[3]: Leaving directory `/home/collins/MPAS-Model/src/core_atmosphere'
make[2]: *** [dycore] Error 2
make[2]: Leaving directory `/home/collins/MPAS-Model/src'
make[1]: *** [mpas_main] Error 2
make[1]: Leaving directory `/home/collins/MPAS-Model'
make: *** [gfortran] Error 2
The compiler version that I am using:

Code: Select all

gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

JCollins
Posts: 52
Joined: Thu Aug 23, 2018 11:01 am

Re: ieee_arithmetic error

Post by JCollins » Wed Aug 29, 2018 1:13 pm

I have read that it is a problem to use versions prior to GCC 5. As I am doing tests, I have risked compiling the latest version of GCC (9.0). I have compiled the libraries again, and then MPAS (atmosphere) and the compilation has finished successfully.

Right now I'm going to perform some internal tests of operation. My intention is that it is a future MPAS is compiled with Intel, is there any known problem related to the error discussed in this topic?

mgduda
Posts: 362
Joined: Mon Feb 26, 2018 7:35 pm

Re: ieee_arithmetic error

Post by mgduda » Thu Aug 30, 2018 11:26 pm

As long as the Intel compiler is newer than about 13.0.1, I don't think there will be any problems. Some earlier versions had a bug in the Fortran TRANSFER intrinsic that caused problems for the PIO library. I've been using the Intel 16.0.2 and 17.0.1 compilers for daily development and testing, and all seems to be well. It looks like I do have access to the Intel 18.0.1 compilers, and I'll give those a try soon and report back if I find any issues.
NCAR/MMM

regisgrundig
Posts: 1
Joined: Tue Jun 11, 2019 7:47 pm

Re: ieee_arithmetic error

Post by regisgrundig » Thu Aug 20, 2020 7:41 pm

Hello,

I had the same version of gcc and had the same problem. So I decided to install a new version and it worked for me.

Code: Select all

sudo yum install centos-release-scl
sudo yum install devtoolset-7-gcc*
scl enable devtoolset-7 bash
which gcc
gcc --version
Recompile the libraries again.

Post Reply

Return to “Compilation / installation”