vasp.4.lib/ make problem, using ifort

Questions regarding the compilation of VASP on various platforms: hardware, compilers and libraries, etc.


Moderators: Global Moderator, Moderator

Post Reply
Message
Author
lqzhang

vasp.4.lib/ make problem, using ifort

#1 Post by lqzhang » Thu Jan 31, 2008 8:30 pm

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
Last edited by lqzhang on Thu Jan 31, 2008 8:30 pm, edited 1 time in total.

admin
Administrator
Administrator
Posts: 2921
Joined: Tue Aug 03, 2004 8:18 am
License Nr.: 458

vasp.4.lib/ make problem, using ifort

#2 Post by admin » Fri Feb 01, 2008 12:40 pm

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.
Last edited by admin on Fri Feb 01, 2008 12:40 pm, edited 1 time in total.

Post Reply