Page 1 of 1

makefile.linux_ifc_P4: error with -e95 flag.

Posted: Thu Apr 12, 2007 5:14 am
by lahaye
Hello,

I'm using vasp 4.6.28 and I compile with Intel Fortran compiler
(version 9.1). The makefile "makefile.linux_ifc_P4", which is the
one I'm supposed to use, has the following lines:

fft3dlib.o : fft3dlib.F
$(CPP)
$(FC) [...cut...] -e95 [...]

This -e95 causes errors:

fortcom: Error: fft3dlib.f90, line 1625: Sharing of a DO termination statement by more than one DO statement is an obsolescent feature in Fortran 95. Use an END DO or CONTINUE statement for each DO statement. [20]
20 CONTINUE
---^
fortcom: Error: fft3dlib.f90, line 1702: The computed GOTO statement is an obsolescent feature in Fortran 95.
GOTO (10,50,90,130,170,210,250),IGO
------^
fortcom: Error: fft3dlib.f90, line 2623: The computed GOTO statement is an obsolescent feature in Fortran 95.
GOTO (10,50,90,130,170,210,250),IGO
------^
fortcom: Error: fft3dlib.f90, line 3529: The computed GOTO statement is an obsolescent feature in Fortran 95.
GOTO (10,50,90,130,170,210,250),IGO
------^
fortcom: Error: fft3dlib.f90, line 4062: The computed GOTO statement is an obsolescent feature in Fortran 95.
GOTO (1010,1050,1090,1130,1170,1210,1250),IGO
------^
compilation aborted for fft3dlib.f90 (code 1)
make: *** [fft3dlib.o] Error 1


When I remove the -e95 flag, it compiles well, but is the code still OK?
This flag has been put there for a good reason, I guess.

--------------

Unrelated to above:
The line
BLAS=-L/opt/intel/mkl/lib/32 -lmkl_p4 -lpthread

needs also a "-lvml" in order to link properly.
(this is with MKL 9.0).

Regards,
Rob.

makefile.linux_ifc_P4: error with -e95 flag.

Posted: Thu Apr 12, 2007 10:42 am
by admin
please lookup previous forum discussions: these errors are due to the -e95 flag which turns the compiler warnings to errors. The respective lines are standard fortran 77 and have to be processed correctly by any fortran 90 compiler as well.