Page 1 of 1

Cygwin to install VASP with gfortran within windows os

Posted: Mon Nov 14, 2011 8:39 pm
by jiezhou
Hello guys,
recently I need to install VASP on my PC, I used Cygwin to do it with gfortran, for the lib, it works well, but, when I came into the folder VASP5.2, and try to make it, it showed up like that

first:
after "make":
gfortran : byterecl: No such file or directory
f951: error: unrecognized command line option "-assume"
make: *** [smart_allocate.o] Error 1

so, I just delete the "-assume byterecl" term in the line for setting up FLAGS
and make it again:
GDEF, POINTER :: A(:)
1
Error: Unclassifiable statement at (1)
smart_allocate.F:36.22:
DEALLOCATE(A)
1
Error: Allocate-object at (1) is not a nonprocedure pointer or an allocatable variable
smart_allocate.F:40.16:
ALLOCATE(A(N))
1
Error:Allocate-object at (1) is not a nonprocedure pointer or an allocatable variable
smart_allocate.F:30.34:
SUBROUTINE SMART_ALLOCATE_WAVE(A,N)
1
Error: Symbol 'a' at (1) has no IMPLICIT type
make : *** [smart_allocate.o] Error 1



I am new to VASP, I hope anyone else could help me with this problems, thank you very much x)

Cygwin to install VASP with gfortran within windows os

Posted: Tue Nov 15, 2011 12:18 pm
by alex
It's a Fortran issue. Allow old Fortran standards (with the help of some compiler switch) and it should work.

Cheers,

alex

Cygwin to install VASP with gfortran within windows os

Posted: Tue Nov 15, 2011 11:27 pm
by jiezhou
Thank you very much first,

it improves a lot, but still problem exists:

I modify :

FC=/bin/gfortran -ffree-form -ffree-line-length-0 -ff2c -fno-second-underscore -ffixed-form
(based on Options controlling Fortran dialect)

FFLAGS = -ffree-form -ffree-line-length-none

and then, it shows up like following:

USE vaspxml
1
Fatal Error: Can't open module file 'vaspxml.mod' for reading at (1): No such file or directory
make: *** [ini.o] Error 1

actually, the vaspxml module I could find in xml.f90, I do not know why no such a file comes out when "make".

I refer to the following link to find how to "switch to adapt old style fortran "
http://gcc.gnu.org/onlinedocs/gfortran/ ... tions.html

is that true? I really do not know how to fix it, do you have some suggestion?