Page 1 of 1

undefined reference to `__svml_trunc2'

Posted: Thu Oct 23, 2008 11:21 pm
by xqzhang
Hi, all
I tried my best to install the VAST, but still failed..
Here are my preparation:
=====================================
intel fortran 10.1.018
intel c++ 10.1.018
intel mpi 3.0
intel MKL 10.0.5.025
=====================================
Here's my makefile.linux_ifc_P4 seting:
..................
..................
FC=ifort
# fortran linker
......................
.....................
FCL=$(FC)FFLAGS = -L/opt/intel/mkl/10.0.5.025/include/fftw/ -FR -lowercase
.......................
.......................

BLAS= -L/opt/intel/mkl/10.0.5.025/lib/32/ -lmkl_vml_ia -lmkl_vml_def -lmkl_blacs -lmkl_intel_thread -lmkl_intel -lmkl_core -liomp5 -lpthread
LAPACK= -L/opt/intel/mkl/10.0.5.025/lib/32/ -lmkl_vml_ia -lmkl_vml_def -lmkl_blacs -lmkl_intel_thread -lmkl_intel -lmkl_core -liomp5 -lpthread

.........................
.........................
FFT3D= fftmpiw.o fftmpi_map.o fft3dlib.o \ /opt/intel/mkl/10.0.5.025/lib/32/libfftw3xf_intel.a
.................................................
................................................
======mpi setting==============
FC=/opt/intel/mpi/3.0/bin/mpiifort
FCL=$(FC)
.....................
.....................
SCA=/opt/intel/mkl/10.0.5.025/lib/32/libmkl_scalapack.a
.......................
.......................
(I just listed the useful lines which i could edit in makefile.)

==============error================
...................
...................
rm -f vasp
/opt/intel/mpi/3.0/bin/mpiifort -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 fftmpiw.o fftmpi_map.o fft3dlib.o /opt/intel/mkl/10.0.5.025/lib/32/libfftw3xf_intel.a -L../vasp.4.lib -ldmy ../vasp.4.lib/linpack_double.o -L/opt/intel/mkl/10.0.5.025/lib/32/ -lmkl_vml_ia -lmkl_vml_def -lmkl_blacs -lmkl_intel_thread -lmkl_intel -lmkl_core -liomp5 -lpthread /opt/intel/mkl/10.0.5.025/lib/32/libmkl_scalapack.a -L/opt/intel/mkl/10.0.5.025/lib/32/ -lmkl_vml_ia -lmkl_vml_def -lmkl_blacs -lmkl_intel_thread -lmkl_intel -lmkl_core -liomp5 -lpthread
lattice.o: In function `lattice_mp_toprim_':
lattice.f90:(.text+0x42f): undefined reference to `__svml_trunc2'
lattice.f90:(.text+0x46e): undefined reference to `__svml_trunc2'
lattice.f90:(.text+0x4ae): undefined reference to `__svml_trunc2'
lattlib.o: In function `pricel_':
lattlib.f90:(.text+0xf3f): undefined reference to `__svml_trunc2'
lattlib.f90:(.text+0xf78): undefined reference to `__svml_trunc2'
lattlib.o:lattlib.f90:(.text+0xfb1): more undefined references to `__svml_trunc2' follow
elf.o: In function `elfcal_.':
elf.f90:(.text+0x2941): undefined reference to `__svml_pow2'
elf.f90:(.text+0x2a8c): undefined reference to `__svml_pow2_mask'
elf.f90:(.text+0x2bc8): undefined reference to `__svml_pow2'
chain.o: In function `chain_mp_chain_force_':
chain.f90:(.text+0x635): undefined reference to `__svml_trunc2'
chain.f90:(.text+0x7cd): undefined reference to `__svml_trunc2'
chain.f90:(.text+0xa43): undefined reference to `__svml_trunc2'
chain.f90:(.text+0xaa2): undefined reference to `__svml_trunc2'
dyna.o: In function `symvel_.':
dyna.f90:(.text+0x46b5): undefined reference to `__svml_trunc2'
wavpre.o:wavpre.f90:(.text+0x1107): more undefined references to `__svml_trunc2' follow
make: *** [vasp] Error 1

====================================


I know it's pretty close to success... but can anyone tell me what library file the `__svml_trunc2' belongs to..
I tried to include almost every .so files in the "BLAS=...." line, but it doesnt work.
The intel official websit suggested a way to compile, but it doesnt work on me either.../cry...(link:http://www.intel.com/support/performanc ... 028850.htm)
So, can anyone throw me a solution?
This installation occupied one half of my working time. lol
Here's my email if you have any good idea.. thanks all.. (xz288@nyu.edu)
<span class='smallblacktext'>[ Edited ]</span>

Re: undefined reference to `__svml_trunc2'

Posted: Wed Sep 04, 2024 12:15 pm
by support_vasp

Hi,

We're sorry that we didn’t answer your question. This does not live up to the quality of support that we aim to provide. The team has since expanded. If we can still help with your problem, please ask again in a new post, linking to this one, and we will answer as quickly as possible.

Best wishes,

VASP