Page 1 of 1

problem in compiling vasp on 64 bit machine

Posted: Sat Mar 19, 2011 7:11 am
by Isha
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?

problem in compiling vasp on 64 bit machine

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

problem in compiling vasp on 64 bit machine

Posted: Mon Mar 21, 2011 1:15 pm
by alex
You are trying to link 32bit and 64bit together. Go to vasp4.lib directory, remove all *.o and *.a files, recompile. Should work.

alex