Page 1 of 1

vasp.4.lib/ make problem, using ifort

Posted: Thu Jan 31, 2008 8:30 pm
by lqzhang
Dear administer:

I need help when compiling in vasp.4.lib. when I used make in vasp.4.lib/, it showed me following error messag, and I really don't know how to solve it. Thanks a lot. any kind of suggestions are welcomed.

I copy the makefile.linux_ifc_P4 into makefile, I only change ifc into ifort with correct address.

usr/local/intel/fc/10.0.025/bin/ifort -O0 -FI -FR -c dlexlib.f
fortcom: Warning: dlexlib.f, line 6: Bad # preprocessor line
#ifdef LONGCHAR
-^
fortcom: Warning: dlexlib.f, line 13: Bad # preprocessor line
#endif
-^
fortcom: Warning: dlexlib.f, line 19: Bad # preprocessor line
#ifdef LONGCHAR
-^
fortcom: Warning: dlexlib.f, line 23: Bad # preprocessor line
#else
-^
fortcom: Warning: dlexlib.f, line 26: Bad # preprocessor line
#endif
-^
fortcom: Warning: dlexlib.f, line 30: Bad # preprocessor line
#ifdef LONGCHAR
-^
fortcom: Warning: dlexlib.f, line 184: Bad # preprocessor line
#endif
-^
fortcom: Error: dlexlib.f, line 24: This object has already been SAVEd. [B5]
SAVE B5,B6,B7,B8
----------------------^
fortcom: Error: dlexlib.f, line 24: This object has already been SAVEd. [B6]
SAVE B5,B6,B7,B8
-------------------------^
fortcom: Error: dlexlib.f, line 24: This object has already been SAVEd. [B7]
SAVE B5,B6,B7,B8
----------------------------^
fortcom: Error: dlexlib.f, line 24: This object has already been SAVEd. [B8]
SAVE B5,B6,B7,B8
-------------------------------^
fortcom: Warning: dlexlib.f, line 288: Bad # preprocessor line
#ifdef LONGCHAR
-^
fortcom: Warning: dlexlib.f, line 290: Bad # preprocessor line
#else
-^
fortcom: Warning: dlexlib.f, line 292: Bad # preprocessor line
#endif
-^
fortcom: Warning: dlexlib.f, line 337: Bad # preprocessor line
#ifdef LONGCHAR
-^
fortcom: Warning: dlexlib.f, line 339: Bad # preprocessor line
#else
-^
fortcom: Warning: dlexlib.f, line 341: Bad # preprocessor line
#endif
-^
fortcom: Error: dlexlib.f, line 291: This name has already been assigned a data type. [BUFFER]
CHARACTER*255 BUFFER,FORM,NUMBER,DUMMY
--------------------^
fortcom: Error: dlexlib.f, line 291: This name has already been assigned a data type. [FORM]
CHARACTER*255 BUFFER,FORM,NUMBER,DUMMY
---------------------------^
fortcom: Error: dlexlib.f, line 291: This name has already been assigned a data type. [NUMBER]
CHARACTER*255 BUFFER,FORM,NUMBER,DUMMY
--------------------------------^
fortcom: Error: dlexlib.f, line 291: This name has already been assigned a data type. [DUMMY]
CHARACTER*255 BUFFER,FORM,NUMBER,DUMMY
---------------------------------------^
compilation aborted for dlexlib.f (code 1)
make: *** [dlexlib.o] Error 1

vasp.4.lib/ make problem, using ifort

Posted: Fri Feb 01, 2008 12:40 pm
by admin
sorry, dlexlib.F is standard fortran 90. please check if there are conflicting remnants of a previous compilation. If there are not, your fortran compiler must be buggy.