gfortran 4.8.1 and dfast
Posted: Mon Jul 08, 2013 11:54 pm
Hi,
I need to build VASP 5.2.12 with GCC 4.8.1.
After fixing a couple of issues with makefile.linux_gfortran,
I try "make"ing. The build fails at dfast.f90 with the following:
How do I fix this? The gfortran makefile supplied with the source code appears unusable, at least for GCC 4.8.1.
Thanks
I need to build VASP 5.2.12 with GCC 4.8.1.
After fixing a couple of issues with makefile.linux_gfortran,
Code: Select all
[cchang@login1?vasp.5.2.12]$?diff?Makefile?makefile.linux_gfortran
52,53c52
<?FC=gfortran?-ffree-form?-ffree-line-length-0?-ff2c?-fno-second-underscore?
<?#FC=/usr/local/gcc-4.6/bin/gfortran46?-ffree-form?-ffree-line-length-0?-ff2c?-fno-second-underscore?
---
>?FC=/usr/local/gcc-4.6/bin/gfortran46?-ffree-form?-ffree-line-length-0?-ff2c?-fno-second-underscore?
75c74
<?#CPP_=fpp?-f_com=no?-free?-w0?$*.F?$*$(SUFFIX)?
---
>?CPP_=fpp?-f_com=no?-free?-w0?$*.F?$*$(SUFFIX)?
98c97
<?FFLAGS?=??-FR?-lowercase
---
>?FFLAGS?=??-FR?-lowercase?-assume?byterecl?
Code: Select all
gfortran?-ffree-form?-ffree-line-length-0?-ff2c?-fno-second-underscore??-FR?-lowercase?-O3??-c?dfast.f90
dfast.f90:182.10:
??????USE?dfast
??????????1
Error:?'lincom'?of?module?'dfast',?imported?at?(1),?is?also?the?name?of?the?current?program?unit
How do I fix this? The gfortran makefile supplied with the source code appears unusable, at least for GCC 4.8.1.
Thanks