vasp 4.6 linking error

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


Moderators: Global Moderator, Moderator

Post Reply
Message
Author
dwan
Newbie
Newbie
Posts: 2
Joined: Wed Sep 12, 2007 8:16 am
License Nr.: 745

vasp 4.6 linking error

#1 Post by dwan » Wed Sep 12, 2007 8:27 am

No errors occured while compiling, but cannot get the executable file
Makefile used is given below:
#-----------------------------------------------------------------------
# fortran compiler and linker
#-----------------------------------------------------------------------
FC=ifort
# fortran linker
FCL=$(FC)
... ...
... ...
# Atlas based libraries
#ATLASHOME= $(HOME)/archives/BLAS_OPT/ATLAS/lib/Linux_P4SSE2/
#BLAS= -L$(ATLASHOME) -lf77blas -latlas

# use specific libraries (default library path might point to other libraries)
#BLAS= $(ATLASHOME)/libf77blas.a $(ATLASHOME)/libatlas.a

# use the mkl Intel libraries for p4 (www.intel.com)
# mkl.5.1
# set -DRPROMU_DGEMV -DRACCMU_DGEMV in the CPP lines
#BLAS=-L/opt/intel/mkl/lib/32 -lmkl_p4 -lpthread

# mkl.5.2 requires also to -lguide library
# set -DRPROMU_DGEMV -DRACCMU_DGEMV in the CPP lines
#BLAS=-L/opt/intel/mkl/lib/32 -lmkl_p4 -lguide -lpthread
BLAS=-L/home/common/intel/cmkl/9.0/lib/32 -lmkl_ia32 -lguide -lpthread

# even faster Kazushige Goto's BLAS
# http://www.cs.utexas.edu/users/kgoto/signup_first.html
#BLAS= /opt/libs/libgoto/libgoto_p4_512-r0.6.so

# LAPACK, simplest use vasp.4.lib/lapack_double
#LAPACK= ../vasp.4.lib/lapack_double.o

# use atlas optimized part of lapack
#LAPACK= ../vasp.4.lib/lapack_atlas.o -llapack -lcblas

# use the mkl Intel lapack
LAPACK= -L/home/common/intel/cmkl/9.0/lib/32 -lmkl_lapack

#============================================
and here comes the errorlog:

rm -f vasp
ifort -o vasp main.o base.o mpi.o smart_allocate.o xml.o constant.o jacobi.o main_mpi.o scala.o asa.o lattice.o poscar.o ini.o setex.o radial.o pseudo.o mgrid.o mkpoints.o wave.o wave_mpi.o symmetry.o symlib.o lattlib.o random.o nonl.o nonlr.o dfast.o choleski2.o mix.o charge.o xcgrad.o xcspin.o potex1.o potex2.o metagga.o constrmag.o pot.o cl_shift.o force.o dos.o elf.o tet.o hamil.o steep.o chain.o dyna.o relativistic.o LDApU.o sphpro.o paw.o us.o ebs.o wavpre.o wavpre_noio.o broyden.o dynbr.o rmm-diis.o reader.o writer.o tutor.o xml_writer.o brent.o stufak.o fileio.o opergrid.o stepver.o dipol.o xclib.o chgloc.o subrot.o optreal.o davidson.o edtest.o electron.o shm.o pardens.o paircorrection.o optics.o constr_cell_relax.o stm.o finite_diff.o elpol.o setlocalpp.o aedens.o fftw3d.o fft3dlib.o /home/common/fftw-3.1.2/lib/libfftw3.a -L../vasp.4.lib -ldmy ../vasp.4.lib/linpack_double.o -L/home/common/intel/cmkl/9.0/lib/32 -lmkl_lapack -L/home/common/intel/cmkl/9.0/lib/32 -lmkl_ia32 -lguide -lpthread
lattlib.o(.text+0x4a46): In function lard.::undefedreferencevmldRound2'
lattlib.o(.text+0x4aaf): In function lard.::undefedreferencevmlsRound4'
lattlib.o(.text+0x4af3): In function lard.::undefedreferencevmldRound2'
cl_shift.o(.text+0x5098): In function clmpsηugcl::undefedreferencevmldExp2'
cl_shift.o(.text+0x511f): In function clmpsηugcl::undefedreferencevmldExp2'
cl_shift.o(.text+0x5199): In function clmpsηugcl::undefedreferencevmldExp2'
cl_shift.o(.text+0x5b46): In function clmpau>oq.::undefedreferencevmldExp2'
cl_shift.o(.text+0x5bcc): In function clmpau>oq.::undefedreferencevmldExp2'
cl_shift.o(.text+0x5c43): more undefined references to vmldExp2followelf.o(.0x28bf):Infunctionelfcal_.':
: undefined reference to vmldPow2elf.o(.0x2a1f):Infunctionelfcal_.':
: undefined reference to vmldPow2Maskelf.o(.0x2b61):Infunctionelfcal_.':
: undefined reference to vmldPow2paw.o(.0x654a):Infunctionpaw_mp_augsym_noncol_':
: undefined reference to vmldcos2paw.o(.0x656e):Infunctionpaw_mp_augsym_noncol_':
: undefined reference to vmldcos2paw.o(.0x6585):Infunctionpaw_mp_augsym_noncol_':
: undefined reference to vmldsin2paw.o(.0x659c):Infunctionpaw_mp_augsym_noncol_':
: undefined reference to vmldsin2paw.o(.0x6be3):Infunctionpaw_mp_augsym_noncol_':
: undefined reference to vmldcos2paw.o(.0x6c07):Infunctionpaw_mp_augsym_noncol_':
: undefined reference to vmldcos2paw.o(.0x6c1e):Infunctionpaw_mp_augsym_noncol_':
: undefined reference to vmldsin2paw.o(.0x6c35):Infunctionpaw_mp_augsym_noncol_':
: undefined reference to vmldsin2paw.o(.0x722c):Infunctionpaw_mp_augsym_noncol_':
: undefined reference to vmldcos2paw.o(.0x7243):Infunctionpaw_mp_augsym_noncol_':
: undefined reference to vmldsin2paw.o(.0x8dd9):Infunctionpaw_mp_augsym_noncol_':
: undefined reference to vmldcos2paw.o(.0x8e0e):Infunctionpaw_mp_augsym_noncol_':
: undefined reference to vmldcos2paw.o(.0x8e25):Infunctionpaw_mp_augsym_noncol_':
: undefined reference to vmldsin2paw.o(.0x8e3c):Infunctionpaw_mp_augsym_noncol_':
: undefined reference to vmldsin2paw.o(.0x8f23):Infunctionpaw_mp_augsym_noncol_':
: undefined reference to vmldcos2paw.o(.0x8f3a):Infunctionpaw_mp_augsym_noncol_':
: undefined reference to vmldcos2paw.o(.0x8f5a):Infunctionpaw_mp_augsym_noncol_':
: undefined reference to vmldsin2paw.o(.0x8f71):Infunctionpaw_mp_augsym_noncol_':
: undefined reference to vmldsin2paw.o(.0x9509):Infunctionpaw_mp_augsym_noncol_':
: undefined reference to vmldcos2paw.o(.0x9520):Infunctionpaw_mp_augsym_noncol_':
: undefined reference to vmldsin2paw.o(.0x9af5):Infunctionpaw_mp_augsym_noncol_':
: undefined reference to vmldcos2paw.o(.0x9b19):Infunctionpaw_mp_augsym_noncol_':
: undefined reference to vmldcos2paw.o(.0x9b30):Infunctionpaw_mp_augsym_noncol_':
: undefined reference to vmldsin2paw.o(.0x9b47):Infunctionpaw_mp_augsym_noncol_':
: undefined reference to vmldsin2fft3dlib.o(.0x3e5c):Infunctionftrigc_':
: undefined reference to vmldsincos2fft3dlib.o(.0x3ec4):Infunctionftrigc_':
: undefined reference to vmldcos2fft3dlib.o(.0x3ed5):Infunctionftrigc_':
: undefined reference to vmldsin2fft3dlib.o(.0x3fa4):Infunctionftrigr_':
: undefined reference to vmldsincos2fft3dlib.o(.0x4026):Infunctionftrigr_':
: undefined reference to vmldcos2fft3dlib.o(.0x4037):Infunctionftrigr_':
: undefined reference to vmldsin2fft3dlib.o(.0x4130):Infunctionftrigr_':
: undefined reference to vmldsincos2fft3dlib.o(.0x4205):Infunctionftrigr_':
: undefined reference to vmldcos2fft3dlib.o(.0x4216):Infunctionftrigr_':
: undefined reference to `vmldSin2'
make: *** [vasp] Error 1

Please help me, thanks.
Last edited by dwan on Wed Sep 12, 2007 8:27 am, edited 1 time in total.

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

vasp 4.6 linking error

#2 Post by admin » Wed Sep 12, 2007 12:11 pm

this has been discussed in the forum before: the missing routines are part of the svml library which has to be loaded explicitely for some releases of ifort/mkl: Please check if the libsvml is properly installed on your system and either
-- include the libsvml in the BLAS or
-- link it explicitely (LINK = -L /home/common/intel/cmkl/9.0/lib/32 -lsvml)
Last edited by admin on Wed Sep 12, 2007 12:11 pm, edited 1 time in total.

Post Reply