[AMBER-Developers] gnu versions; error compiling sander: 'is_iostat_end' does not exist

From: Scott Brozell <sbrozell.rci.rutgers.edu>
Date: Thu, 21 May 2015 01:59:56 -0400

Hi,

It's that time of year again - time to revisit gnu compiler support.

is_iostat_end is an F2003 intrinsic function.
is_iostat_end is available in gnu 4.4.5, but not in 4.2.3:
intrinsic :: is_iostat_end
Error: Intrinsic does not exist

On a related note intrinsic statements are recommended as a
best practice by Metcalf, Fortran 95/2003 Explained, p 160.

Hai, please indicate the full version of your 4.4.

scott

----- Forwarded message from Hai Nguyen <hainm.comp.gmail.com> -----

Date: Wed, 20 May 2015 17:02:52 -0400
Subject: error when compiling sander: Function 'is_iostat_end' at (1) has no
 IMPLICIT type

I got this error when compiling sander in the master branch. I was trying
gcc 41. and 4.4 but got the same errors.

gfortran -Wall -Wno-unused-function -DBINTRAJ -DEMIL -c -O0 -fPIC
-DNO_ALLOCATABLES_IN_TYPE -ffree-form -I../pbsa -I../sqm -I../rism
-I/home/haichit/amber_git/amber/include -o qm2_extern_gau_module.o
qm2_extern_gau_module.F90
 In file qm2_extern_gau_module.F90:474

         done = is_iostat_end(ios) .or. (i == 3)
               1
Error: Function 'is_iostat_end' at (1) has no IMPLICIT type
 In file qm2_extern_gau_module.F90:490

            done = done .or. is_iostat_end(ios)
                           1
Error: Function 'is_iostat_end' at (1) has no IMPLICIT type
make[2]: *** [qm2_extern_gau_module.o] Error 1
make[2]: Leaving directory
`/u1/haichit/amber_git/amber/AmberTools/src/sander'
make[1]: *** [serial] Error 2
make[1]: Leaving directory `/u1/haichit/amber_git/amber/AmberTools/src'
make: *** [install] Error 2

Best
Hai

----- End forwarded message -----

_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Wed May 20 2015 - 23:30:02 PDT
Custom Search