problem in compiling vasp on 64 bit machine

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


Moderators: Global Moderator, Moderator

Post Reply
Message
Author
Isha

problem in compiling vasp on 64 bit machine

#1 Post by Isha » Sat Mar 19, 2011 7:11 am

Hi all

I am trying to compile VASP in parallel on 64 bit CentOS linux. And it gives the error

/usr/bin/ld: warning: i386 architecture of input file `../vasp.4.lib/libdmy.a(derrf_.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `../vasp.4.lib/libdmy.a(dclock_.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `../vasp.4.lib/libdmy.a(drdatab.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `../vasp.4.lib/lapack_double.o' is incompatible with i386:x86-64 output
../vasp.4.lib/libdmy.a(drdatab.o): In function `rdatab_':
drdatab.f:(.text+0x4bf): undefined reference to `_gfortran_os_error'
collect2: ld returned 1 exit status
make: *** [vasp] Error 1

I have used the 64 bit mkl land fft libraries.

Have anybody any idea , what is the problem?
Last edited by Isha on Sat Mar 19, 2011 7:11 am, edited 1 time in total.

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

problem in compiling vasp on 64 bit machine

#2 Post by admin » Mon Mar 21, 2011 1:07 pm

please compile vasp.4.lib and vasp.4.6 CONSISTENTLY, i.e. with the same compiler, and for the same processor architecture
Last edited by admin on Mon Mar 21, 2011 1:07 pm, edited 1 time in total.

alex
Hero Member
Hero Member
Posts: 577
Joined: Tue Nov 16, 2004 2:21 pm
License Nr.: 5-67
Location: Germany

problem in compiling vasp on 64 bit machine

#3 Post by alex » Mon Mar 21, 2011 1:15 pm

You are trying to link 32bit and 64bit together. Go to vasp4.lib directory, remove all *.o and *.a files, recompile. Should work.

alex
Last edited by alex on Mon Mar 21, 2011 1:15 pm, edited 1 time in total.

Post Reply