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
Moderators: Global Moderator, Moderator
-
- Newbie
- Posts: 2
- Joined: Thu Aug 04, 2011 10:30 pm
- License Nr.: 5-981
- Location: Houghton, MI
Cygwin to install VASP with gfortran within windows os
Last edited by jiezhou on Mon Nov 14, 2011 8:39 pm, edited 1 time in total.
I am a Graduate Student~ [align=center][/align]
-
- Hero Member
- Posts: 585
- Joined: Tue Nov 16, 2004 2:21 pm
- License Nr.: 5-67
- Location: Germany
Cygwin to install VASP with gfortran within windows os
It's a Fortran issue. Allow old Fortran standards (with the help of some compiler switch) and it should work.
Cheers,
alex
Cheers,
alex
Last edited by alex on Tue Nov 15, 2011 12:18 pm, edited 1 time in total.
-
- Newbie
- Posts: 2
- Joined: Thu Aug 04, 2011 10:30 pm
- License Nr.: 5-981
- Location: Houghton, MI
Cygwin to install VASP with gfortran within windows os
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?
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?
Last edited by jiezhou on Tue Nov 15, 2011 11:27 pm, edited 1 time in total.
I am a Graduate Student~ [align=center][/align]