VASP 5.3 compilation problems

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


Moderators: Global Moderator, Moderator

Locked
Message
Author
psi391
Newbie
Newbie
Posts: 3
Joined: Wed May 22, 2013 6:32 pm

VASP 5.3 compilation problems

#1 Post by psi391 » Fri May 31, 2013 11:31 pm

Dear Forum members,

I am trying to compile VASP 5.3 with Intel 2013.2 ComposerXE and MKL libraries (along with FFTW 3.3.1), but I have been stymied by a problem that I am just unable to figure out. I am hopeful you can shed some light.
First, I am going to paste my Makefile for vasp.5.lib
.SUFFIXES: .inc .f .F
#-----------------------------------------------------------------------
# Makefile for gf90 compiler
# This makefile has not been tested by the vasp crew.
# It is supplied as is.
#-----------------------------------------------------------------------

# C-preprocessor
CPP = gcc -E -P -C -DLONGCHAR $*.F >$*.f
FC=ifort

CFLAGS = -O
FFLAGS = -Os -FI
FREE = -FR

DOBJ = preclib.o timing_.o derrf_.o dclock_.o diolib.o dlexlib.o drdatab.o


#-----------------------------------------------------------------------
# general rules
#-----------------------------------------------------------------------

libdmy.a: $(DOBJ) linpack_double.o
-rm libdmy.a
ar vq libdmy.a $(DOBJ)

# files which do not require autodouble
lapack_double.o: lapack_double.f
$(FC) $(FFLAGS) $(NOFREE) -c lapack_double.f
lapack_single.o: lapack_single.f
$(FC) $(FFLAGS) $(NOFREE) -c lapack_single.f
lapack_atlas.o: lapack_atlas.f
$(FC) $(FFLAGS) $(NOFREE) -c lapack_atlas.f
linpack_double.o: linpack_double.f
$(FC) $(FFLAGS) $(NOFREE) -c linpack_double.f
linpack_single.o: linpack_single.f
$(FC) $(FFLAGS) $(NOFREE) -c linpack_single.f

.c.o:
$(CC) $(CFLAGS) -c $*.c
.F.o:
$(CPP)
$(FC) $(FFLAGS) $(FREE) $(INCS) -c $*.f
.F.f:
$(CPP)
.f.o:
$(FC) $(FFLAGS) $(FREE) $(INCS) -c $*.f

It compiles fine,

ifort -Os -FI -FR -c preclib.f
preclib.f: remark #5133: The input stream is empty
cc -O -c timing_.c
cc -O -c derrf_.c
cc -O -c dclock_.c
ifort -Os -FI -FR -c diolib.f
diolib.f: remark #5133: The input stream is empty
ifort -Os -FI -FR -c dlexlib.f
dlexlib.f: remark #5133: The input stream is empty
ifort -Os -FI -FR -c drdatab.f
drdatab.f: remark #5133: The input stream is empty
ifort -Os -FI -c linpack_double.f
rm libdmy.a
rm: cannot remove `libdmy.a': No such file or directory
make: [libdmy.a] Error 1 (ignored)
ar vq libdmy.a preclib.o timing_.o derrf_.o dclock_.o diolib.o dlexlib.o drdatab.o
ar: creating libdmy.a
a - preclib.o
a - timing_.o
a - derrf_.o
a - dclock_.o
a - diolib.o
a - dlexlib.o
a - drdatab.o

Then I compile vasp.5.3 with the following Makefile
.SUFFIXES: .inc .f .f90 .F
#-----------------------------------------------------------------------
# Makefile for Intel Fortran compiler for Pentium/Athlon/Opteron
# based systems
# we recommend this makefile for both Intel as well as AMD systems
# for AMD based systems appropriate BLAS (libgoto) and fftw libraries are
# however mandatory (whereas they are optional for Intel platforms)
# For Athlon we recommend
# ) to link against libgoto (and mkl as a backup for missing routines)
# ) odd enough link in libfftw3xf_intel.a (fftw interface for mkl)
# feedback is greatly appreciated
#
# The makefile was tested only under Linux on Intel and AMD platforms
# the following compiler versions have been tested:
# - ifc.7.1 works stable somewhat slow but reliably
# - ifc.8.1 fails to compile the code properly
# - ifc.9.1 recommended (both for 32 and 64 bit)
# - ifc.10.1 partially recommended (both for 32 and 64 bit)
# tested build 20080312 Package ID: l_fc_p_10.1.015
# the gamma only mpi version can not be compiles
# using ifc.10.1
# - ifc.11.1 partially recommended (some problems with Gamma only and intel fftw)
# Build 20090630 Package ID: l_cprof_p_11.1.046
# - ifort.12.1 strongly recommended (we use this to compile vasp)
# Version 12.1.5.339 Build 20120612
#
# it might be required to change some of library path ways, since
# LINUX installations vary a lot
#
# Hence check ***ALL*** options in this makefile very carefully
#-----------------------------------------------------------------------
#
# BLAS must be installed on the machine
# there are several options:
# 1) very slow but works:
# retrieve the lapackage from ftp.netlib.org
# and compile the blas routines (BLAS/SRC directory)
# please use g77 or f77 for the compilation. When I tried to
# use pgf77 or pgf90 for BLAS, VASP hang up when calling
# ZHEEV (however this was with lapack 1.1 now I use lapack 2.0)
# 2) more desirable: get an optimized BLAS
#
# the two most reliable packages around are presently:
# 2a) Intels own optimised BLAS (PIII, P4, PD, PC2, Itanium)
# http://developer.intel.com/software/products/mkl/
# this is really excellent, if you use Intel CPU's
#
# 2b) probably fastest SSE2 (4 GFlops on P4, 2.53 GHz, 16 GFlops PD,
# around 30 GFlops on Quad core)
# Kazushige Goto's BLAS
# http://www.cs.utexas.edu/users/kgoto/signup_first.html
# http://www.tacc.utexas.edu/resources/software/
#
#-----------------------------------------------------------------------

# all CPP processed fortran files have the extension .f90
SUFFIX=.f90

#-----------------------------------------------------------------------
# fortran compiler and linker
#-----------------------------------------------------------------------
#FC=ifort
# fortran linker
#FCL=$(FC)


#-----------------------------------------------------------------------
# whereis CPP ?? (I need CPP, can't use gcc with proper options)
# that's the location of gcc for SUSE 5.3
#
# CPP_ = /usr/lib/gcc-lib/i486-linux/2.7.2/cpp -P -C
#
# that's probably the right line for some Red Hat distribution:
#
# CPP_ = /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/cpp -P -C
#
# SUSE X.X, maybe some Red Hat distributions:

CPP_ = ./preprocess <$*.F | /usr/bin/cpp -P -C -traditional >$*$(SUFFIX)

# this release should be fpp clean
# we now recommend fpp as preprocessor
# if this fails go back to cpp
#CPP_=fpp -f_com=no -free -w0 $*.F $*$(SUFFIX)

#-----------------------------------------------------------------------
# possible options for CPP:
# NGXhalf charge density reduced in X direction
# wNGXhalf gamma point only reduced in X direction
# avoidalloc avoid ALLOCATE if possible
# PGF90 work around some for some PGF90 / IFC bugs
# CACHE_SIZE 1000 for PII,PIII, 5000 for Athlon, 8000-12000 P4, PD
# RPROMU_DGEMV use DGEMV instead of DGEMM in RPRO (depends on used BLAS)
# RACCMU_DGEMV use DGEMV instead of DGEMM in RACC (depends on used BLAS)
# tbdyn MD package of Tomas Bucko
#-----------------------------------------------------------------------

#CPP = $(CPP_) -DHOST=\"LinuxIFC\" \
# -DCACHE_SIZE=12000 -DPGF90 -Davoidalloc -DNGXhalf \
# -DRPROMU_DGEMV -DRACCMU_DGEMV

#-----------------------------------------------------------------------
# general fortran flags (there must a trailing blank on this line)
# byterecl is strictly required for ifc, since otherwise
# the WAVECAR file becomes huge
#-----------------------------------------------------------------------

FFLAGS = -FR -names lowercase -assume byterecl

#-----------------------------------------------------------------------
# optimization
# we have tested whether higher optimisation improves performance
# -axK SSE1 optimization, but also generate code executable on all mach.
# xK improves performance somewhat on XP, and a is required in order
# to run the code on older Athlons as well
# -xW SSE2 optimization
# -axW SSE2 optimization, but also generate code executable on all mach.
# -tpp6 P3 optimization
# -tpp7 P4 optimization
#-----------------------------------------------------------------------

# ifc.9.1, ifc.10.1 recommended
OFLAG=-O2 -ip

OFLAG_HIGH = $(OFLAG)
OBJ_HIGH =
OBJ_NOOPT =
DEBUG = -FR -O0
INLINE = $(OFLAG)

#-----------------------------------------------------------------------
# the following lines specify the position of BLAS and LAPACK
# we recommend to use mkl, that is simple and most likely
# fastest in Intel based machines
#-----------------------------------------------------------------------

# mkl path for ifc 11 compiler
#MKL_PATH=$(MKLROOT)/lib/em64t

# mkl path for ifc 12 compiler
MKL_PATH=$(MKLROOT)/lib/intel64

#MKL_FFTW_PATH=$(MKLROOT)/interfaces/fftw3xf/

BLAS=-L$(MKLROOT)/lib/intel64 -mkl -lpthread


# LAPACK, use vasp.5.lib/lapack_double

#LAPACK= ../vasp.5.lib/lapack_double.o
LAPACK= $(MKL_PATH)/libmkl_intel_lp64.a


#-----------------------------------------------------------------------

#LIB = -L../vasp.5.lib -ldmy \
../vasp.5.lib/linpack_double.o $(LAPACK) \
$(BLAS)

# options for linking, nothing is required (usually)
LINK =

#-----------------------------------------------------------------------
# fft libraries:
# VASP.5.2 can use fftw.3.1.X (http://www.fftw.org)
# since this version is faster on P4 machines, we recommend to use it
#-----------------------------------------------------------------------

#FFT3D = fft3dfurth.o fft3dlib.o

# alternatively: fftw.3.1.X is slighly faster and should be used if available
#FFT3D = fftw3d.o fft3dlib.o /opt/libs/fftw-3.1.2/lib/libfftw3.a

# you may also try to use the fftw wrapper to mkl (but the path might vary a lot)
# it seems this is best for AMD based systems
#FFT3D = fftw3d.o fft3dlib.o $(MKL_FFTW_PATH)/libfftw3xf_intel.a
#INCS = -I$(MKLROOT)/include/fftw

#=======================================================================
# MPI section, uncomment the following lines until
# general rules and compile lines
# presently we recommend OPENMPI, since it seems to offer better
# performance than lam or mpich
#
# !!! Please do not send me any queries on how to install MPI, I will
# certainly not answer them !!!!
#=======================================================================
#-----------------------------------------------------------------------
# fortran linker for mpi
#-----------------------------------------------------------------------

FC=mpif77
FCL=$(FC)

#-----------------------------------------------------------------------
# additional options for CPP in parallel version (see also above):
# NGZhalf charge density reduced in Z direction
# wNGZhalf gamma point only reduced in Z direction
# scaLAPACK use scaLAPACK (recommended if mkl is available)
# avoidalloc avoid ALLOCATE if possible
# PGF90 work around some for some PGF90 / IFC bugs
# CACHE_SIZE 1000 for PII,PIII, 5000 for Athlon, 8000-12000 P4, PD
# RPROMU_DGEMV use DGEMV instead of DGEMM in RPRO (depends on used BLAS)
# RACCMU_DGEMV use DGEMV instead of DGEMM in RACC (depends on used BLAS)
# tbdyn MD package of Tomas Bucko
#-----------------------------------------------------------------------

#-----------------------------------------------------------------------

CPP = $(CPP_) -DMPI -DHOST=\"LinuxIFC\" -DIFC \
-DCACHE_SIZE=4000 -DPGF90 -Davoidalloc -DNGZhalf \
-DMPI_BLOCK=8000 -Duse_collective
# -DRPROMU_DGEMV -DRACCMU_DGEMV

#-----------------------------------------------------------------------
# location of SCALAPACK
# if you do not use SCALAPACK simply leave this section commented out
#-----------------------------------------------------------------------

# usually simplest link in mkl scaLAPACK
BLACS= -lmkl_blacs_openmpi_lp64
SCA= $(MKL_PATH)/libmkl_scalapack_lp64.a $(BLACS)

#-----------------------------------------------------------------------
# libraries
#-----------------------------------------------------------------------

LIB = -L../vasp.5.lib -ldmy \
../vasp.5.lib/linpack_double.o \
$(SCA) $(LAPACK) $(BLAS)

#-----------------------------------------------------------------------
# parallel FFT
#-----------------------------------------------------------------------

# FFT: fftmpi.o with fft3dlib of Juergen Furthmueller
#FFT3D = fftmpi.o fftmpi_map.o fft3dfurth.o fft3dlib.o

# alternatively: fftw.3.1.X is slighly faster and should be used if available
#FFT3D = fftmpiw.o fftmpi_map.o fftw3d.o fft3dlib.o /opt/libs/fftw-3.1.2/lib/libfftw3.a

# you may also try to use the fftw wrapper to mkl (but the path might vary a lot)
# it seems this is best for AMD based systems
FFT3D = fftmpiw.o fftmpi_map.o fftw3d.o fft3dlib.o /software/FFTW/3.3.1/intel/lib//libfftw3.a
INCS = -I/software/FFTW/3.3.1/intel/include

#-----------------------------------------------------------------------
# general rules and compile lines
#-----------------------------------------------------------------------
BASIC= symmetry.o symlib.o lattlib.o random.o


SOURCE= 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 mgrid.o xclib.o vdw_nl.o xclib_grad.o \
radial.o pseudo.o gridq.o ebs.o \
mkpoints.o wave.o wave_mpi.o wave_high.o spinsym.o \
$(BASIC) nonl.o nonlr.o nonl_high.o dfast.o choleski2.o \
mix.o hamil.o xcgrad.o xcspin.o potex1.o potex2.o \
constrmag.o cl_shift.o relativistic.o LDApU.o \
paw_base.o metagga.o egrad.o pawsym.o pawfock.o pawlhf.o rhfatm.o hyperfine.o paw.o \
mkpoints_full.o charge.o Lebedev-Laikov.o stockholder.o dipol.o pot.o \
dos.o elf.o tet.o tetweight.o hamil_rot.o \
chain.o dyna.o k-proj.o sphpro.o us.o core_rel.o \
aedens.o wavpre.o wavpre_noio.o broyden.o \
dynbr.o hamil_high.o rmm-diis.o reader.o writer.o tutor.o xml_writer.o \
brent.o stufak.o fileio.o opergrid.o stepver.o \
chgloc.o fast_aug.o fock_multipole.o fock.o mkpoints_change.o sym_grad.o \
mymath.o internals.o npt_dynamics.o dynconstr.o dimer_heyden.o dvvtrajectory.o vdwforcefield.o \
nmr.o pead.o subrot.o subrot_scf.o \
force.o pwlhf.o gw_model.o optreal.o steep.o davidson.o david_inner.o \
electron.o rot.o electron_all.o shm.o pardens.o paircorrection.o \
optics.o constr_cell_relax.o stm.o finite_diff.o elpol.o \
hamil_lr.o rmm-diis_lr.o subrot_cluster.o subrot_lr.o \
lr_helper.o hamil_lrf.o elinear_response.o ilinear_response.o \
linear_optics.o \
setlocalpp.o wannier.o electron_OEP.o electron_lhf.o twoelectron4o.o \
mlwf.o ratpol.o screened_2e.o wave_cacher.o chi_base.o wpot.o \
local_field.o ump2.o ump2kpar.o fcidump.o ump2no.o \
bse_te.o bse.o acfdt.o chi.o sydmat.o dmft.o \
rmm-diis_mlr.o linear_response_NMR.o wannier_interpol.o linear_response.o

vasp: $(SOURCE) $(FFT3D) $(INC) main.o
rm -f vasp
$(FCL) -o vasp main.o $(SOURCE) $(FFT3D) $(LIB) $(LINK)
makeparam: $(SOURCE) $(FFT3D) makeparam.o main.F $(INC)
$(FCL) -o makeparam $(LINK) makeparam.o $(SOURCE) $(FFT3D) $(LIB)
zgemmtest: zgemmtest.o base.o random.o $(INC)
$(FCL) -o zgemmtest $(LINK) zgemmtest.o random.o base.o $(LIB)
dgemmtest: dgemmtest.o base.o random.o $(INC)
$(FCL) -o dgemmtest $(LINK) dgemmtest.o random.o base.o $(LIB)
ffttest: base.o smart_allocate.o mpi.o mgrid.o random.o ffttest.o $(FFT3D) $(INC)
$(FCL) -o ffttest $(LINK) ffttest.o mpi.o mgrid.o random.o smart_allocate.o base.o $(FFT3D) $(LIB)
kpoints: $(SOURCE) $(FFT3D) makekpoints.o main.F $(INC)
$(FCL) -o kpoints $(LINK) makekpoints.o $(SOURCE) $(FFT3D) $(LIB)

clean:
-rm -f *.g *.f *.o *.L *.mod ; touch *.F

main.o: main$(SUFFIX)
$(FC) $(FFLAGS)$(DEBUG) $(INCS) -c main$(SUFFIX)
xcgrad.o: xcgrad$(SUFFIX)
$(FC) $(FFLAGS) $(INLINE) $(INCS) -c xcgrad$(SUFFIX)
xcspin.o: xcspin$(SUFFIX)
$(FC) $(FFLAGS) $(INLINE) $(INCS) -c xcspin$(SUFFIX)

makeparam.o: makeparam$(SUFFIX)
$(FC) $(FFLAGS)$(DEBUG) $(INCS) -c makeparam$(SUFFIX)

makeparam$(SUFFIX): makeparam.F main.F
#
# MIND: I do not have a full dependency list for the include
# and MODULES: here are only the minimal basic dependencies
# if one strucuture is changed then touch_dep must be called
# with the corresponding name of the structure
#
base.o: base.inc base.F
mgrid.o: mgrid.inc mgrid.F
constant.o: constant.inc constant.F
lattice.o: lattice.inc lattice.F
setex.o: setexm.inc setex.F
pseudo.o: pseudo.inc pseudo.F
mkpoints.o: mkpoints.inc mkpoints.F
wave.o: wave.F
nonl.o: nonl.inc nonl.F
nonlr.o: nonlr.inc nonlr.F

$(OBJ_HIGH):
$(CPP)
$(FC) $(FFLAGS) $(OFLAG_HIGH) $(INCS) -c $*$(SUFFIX)
$(OBJ_NOOPT):
$(CPP)
$(FC) $(FFLAGS) $(INCS) -c $*$(SUFFIX)

fft3dlib_f77.o: fft3dlib_f77.F
$(CPP)
$(F77) $(FFLAGS_F77) -c $*$(SUFFIX)

.F.o:
$(CPP)
$(FC) $(FFLAGS) $(OFLAG) $(INCS) -c $*$(SUFFIX)
.F$(SUFFIX):
$(CPP)
$(SUFFIX).o:
$(FC) $(FFLAGS) $(OFLAG) $(INCS) -c $*$(SUFFIX)

# special rules
#-----------------------------------------------------------------------
# these special rules have been tested for ifc.11 and ifc.12 only

fft3dlib.o : fft3dlib.F
$(CPP)
$(FC) -FR -lowercase -O2 -c $*$(SUFFIX)
fft3dfurth.o : fft3dfurth.F
$(CPP)
$(FC) -FR -lowercase -O1 -c $*$(SUFFIX)
fftw3d.o : fftw3d.F
$(CPP)
$(FC) -FR -lowercase -O1 $(INCS) -c $*$(SUFFIX)
fftmpi.o : fftmpi.F
$(CPP)
$(FC) -FR -lowercase -O1 -c $*$(SUFFIX)
fftmpiw.o : fftmpiw.F
$(CPP)
$(FC) -FR -lowercase -O1 $(INCS) -c $*$(SUFFIX)
wave_high.o : wave_high.F
$(CPP)
$(FC) -FR -lowercase -O1 -c $*$(SUFFIX)
# the following rules are probably no longer required (-O3 seems to work)
wave.o : wave.F
$(CPP)
$(FC) -FR -lowercase -O2 -c $*$(SUFFIX)
paw.o : paw.F
$(CPP)
$(FC) -FR -lowercase -O2 -c $*$(SUFFIX)
cl_shift.o : cl_shift.F
$(CPP)
$(FC) -FR -lowercase -O2 -c $*$(SUFFIX)
us.o : us.F
$(CPP)
$(FC) -FR -lowercase -O2 -c $*$(SUFFIX)
LDApU.o : LDApU.F
$(CPP)
$(FC) -FR -lowercase -O2 -c $*$(SUFFIX)

At the very end of the compilation, it gives me an error.
mpif77 -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 mgrid.o xclib.o vdw_nl.o xclib_grad.o radial.o pseudo.o gridq.o ebs.o mkpoints.o wave.o wave_mpi.o wave_high.o spinsym.o symmetry.o symlib.o lattlib.o random.o nonl.o nonlr.o nonl_high.o dfast.o choleski2.o mix.o hamil.o xcgrad.o xcspin.o potex1.o potex2.o constrmag.o cl_shift.o relativistic.o LDApU.o paw_base.o metagga.o egrad.o pawsym.o pawfock.o pawlhf.o rhfatm.o hyperfine.o paw.o mkpoints_full.o charge.o Lebedev-Laikov.o stockholder.o dipol.o pot.o dos.o elf.o tet.o tetweight.o hamil_rot.o chain.o dyna.o k-proj.o sphpro.o us.o core_rel.o aedens.o wavpre.o wavpre_noio.o broyden.o dynbr.o hamil_high.o rmm-diis.o reader.o writer.o tutor.o xml_writer.o brent.o stufak.o fileio.o opergrid.o stepver.o chgloc.o fast_aug.o fock_multipole.o fock.o mkpoints_change.o sym_grad.o mymath.o internals.o npt_dynamics.o dynconstr.o dimer_heyden.o dvvtrajectory.o vdwforcefield.o nmr.o pead.o subrot.o subrot_scf.o force.o pwlhf.o gw_model.o optreal.o steep.o davidson.o david_inner.o electron.o rot.o electron_all.o shm.o pardens.o paircorrection.o optics.o constr_cell_relax.o stm.o finite_diff.o elpol.o hamil_lr.o rmm-diis_lr.o subrot_cluster.o subrot_lr.o lr_helper.o hamil_lrf.o elinear_response.o ilinear_response.o linear_optics.o setlocalpp.o wannier.o electron_OEP.o electron_lhf.o twoelectron4o.o mlwf.o ratpol.o screened_2e.o wave_cacher.o chi_base.o wpot.o local_field.o ump2.o ump2kpar.o fcidump.o ump2no.o bse_te.o bse.o acfdt.o chi.o sydmat.o dmft.o rmm-diis_mlr.o linear_response_NMR.o wannier_interpol.o linear_response.o fftmpiw.o fftmpi_map.o fftw3d.o fft3dlib.o /software/FFTW/3.3.1/intel/lib//libfftw3.a -L../vasp.5.lib -ldmy ../vasp.5.lib/linpack_double.o /opt/intel/composer_xe_2013.2.146/mkl/lib/intel64/libmkl_scalapack_lp64.a -lmkl_blacs_openmpi_lp64 /opt/intel/composer_xe_2013.2.146/mkl/lib/intel64/libmkl_intel_lp64.a -L/opt/intel/composer_xe_2013.2.146/mkl/lib/intel64 -mkl -lpthread
main.o: In function MAIN_:ma.f90:(.0x40d0):undefedreferencerdatab_'
main.f90:(.text+0x20eb2): undefined reference to rdatabma.f90:(.0x211df):undefedreferencerdatab_'
main.f90:(.text+0x24286): undefined reference to wforcema.f90:(.0x2656d):undefedreferencerdatab_'
main.f90:(.text+0x38ea1): undefined reference to wforcema.f90:(.0x39b7f):undefedreferencewforce_'
main.f90:(.text+0x3a04f): undefined reference to wforcema.f90:(.0x3ad0a):undefedreferencewforce_'
main.f90:(.text+0x3e3ee): undefined reference to wforcema.f90:(.0x3f00d):undefedreferencereopen_'
main.f90:(.text+0x3fa97): undefined reference to reopenma.f90:(.0x40359):undefedreferencewforce_'
xml.o: In function vaspxmlmpxmlflush:xml.f90:(.0x21):undefedreferencewforce_'
main_mpi.o: In function mamπmpitmπ:mamπ.f90:(.0x353):undefedreferencerdatab_'
main_mpi.f90:(.text+0x50e): undefined reference to rdatabmamπ.f90:(.0x65b):undefedreferencerdatab_'
main_mpi.f90:(.text+0x7b2): undefined reference to rdatabmamπ.f90:(.0x9ba):undefedreferencerdatab_'
main_mpi.o:main_mpi.f90:(.text+0xd03): more undefined references to rdatabfollowposcar.o:Infunctionposcar_mp_rd_poscar_head_':
poscar.f90:(.text+0x722): undefined reference to nitemsposcar.f90:(.0xbed):undefedreferencenitems_'
poscar.f90:(.text+0xe71): undefined reference to nitemsposcar.f90:(.0x134c):undefedreferencenitems_'
poscar.f90:(.text+0x15ab): undefined reference to nitemsposcar.o:poscar.f90:(.0x1952):moreundefedreferencesnitems_' follow
poscar.o: In function poscarmpoutpostrail:poscar.f90:(.0xad4c):undefedreferencereopen_'
pseudo.o: In function pseudomprdpars..0:pseudf90:(.0xcf79):undefedreferencelength_'
pseudo.o: In function pseudomprdpars:pseudf90:(.0xf2f9):undefedreferencelength_'
constrmag.o: In function constraedm_moda̲rmpconstraedm_reader:constrmag.f90:(.0x1dc):undefedreferencerdatab_'
constrmag.f90:(.text+0x5cf): undefined reference to rdatabconstrmag.f90:(.0xc8e):undefedreferencerdatab_'
constrmag.f90:(.text+0x1022): undefined reference to rdatabclshift.o:Infunctioncl_mp_init_cl_shift_':
cl_shift.f90:(.text+0x1551c): undefined reference to rdatabclshift.o:clshift.f90:(.0x156b8):moreundefedreferencesrdatab_' follow
metagga.o: In function setxcmηmpxcmηreader:mηgga.f90:(.0x293):undefedreferencestrip_'
metagga.f90:(.text+0x2a4): undefined reference to uppermηgga.f90:(.0x6bc):undefedreferencerdatab_'
metagga.f90:(.text+0x9a1): undefined reference to rdatabmηgga.f90:(.0xb32):undefedreferencerdatab_'
metagga.f90:(.text+0xd9a): undefined reference to rdatabmηgga.f90:(.0xf51):undefedreferencerdatab_'
metagga.o:metagga.f90:(.text+0x1100): more undefined references to rdatabfollowk-proj.o:Infunctionmkproj_mp_rd_poscar_prim_head_':
k-proj.f90:(.text+0x76b2): undefined reference to nitemsk-proj.f90:(.0x7b7d):undefedreferencenitems_'
k-proj.f90:(.text+0x7e01): undefined reference to nitemsk-proj.f90:(.0x82dc):undefedreferencenitems_'
k-proj.f90:(.text+0x853b): undefined reference to nitemsk-proj.o:k-proj.f90:(.0x88e2):moreundefedreferencesnitems_' follow
core_rel.o: In function ppdatampspawnpp:corerel.f90:(.0x256):undefedreferencerdatab_'
core_rel.f90:(.text+0x4b0): undefined reference to rdatabcorerel.o:Infunctioncore_rel_mp_init_core_rel_':
core_rel.f90:(.text+0x503e7): undefined reference to rdatabcorerel.f90:(.0x505a3):undefedreferencerdatab_'
core_rel.f90:(.text+0x5073c): undefined reference to rdatabcorerel.o:corerel.f90:(.0x508cb):moreundefedreferencesrdatab_' follow
core_rel.o: In function corerelmpitcorerel:corerel.f90:(.0x509bb):undefedreferencestrip_'
core_rel.f90:(.text+0x50bab): undefined reference to rdatabcorerel.f90:(.0x50d43):undefedreferencerdatab_'
core_rel.f90:(.text+0x50edb): undefined reference to rdatabcorerel.f90:(.0x5107a):undefedreferencerdatab_'
core_rel.f90:(.text+0x51219): undefined reference to rdatabcorerel.o:corerel.f90:(.0x51364):moreundefedreferencesrdatab_' follow
reader.o: In function reader:reader.f90:(.0x27c):undefedreferencestrip_'
reader.f90:(.text+0x395): undefined reference to rdatabreader.f90:(.0x523):undefedreferencerdatab_'
reader.f90:(.text+0x6f1): undefined reference to rdatabreader.f90:(.0x78a):undefedreferencestrip_'
reader.f90:(.text+0x79b): undefined reference to lowerreader.f90:(.0x8c7):undefedreferencerdatab_'
reader.f90:(.text+0xa6e): undefined reference to rdatabreader.f90:(.0xb5d):undefedreferencestrip_'
reader.f90:(.text+0xb6e): undefined reference to lowerreader.f90:(.0x1404):undefedreferencerdatab_'
reader.f90:(.text+0x15b9): undefined reference to rdatabreader.f90:(.0x1747):undefedreferencerdatab_'
reader.f90:(.text+0x18d2): undefined reference to rdatabreader.f90:(.0x1a60):undefedreferencerdatab_'
reader.o:reader.f90:(.text+0x1bf1): more undefined references to rdatabfollowreader.o:Infunctionreader_':
reader.f90:(.text+0xd1a5): undefined reference to stripreader.f90:(.0xd3b0):undefedreferencerdatab_'
writer.o: In function writermpwriterreader:writer.f90:(.0x16c):undefedreferencerdatab_'
writer.f90:(.text+0x2f5): undefined reference to rdatabtur.o:Infunctionvtutor_':
tutor.f90:(.text+0x8e): undefined reference to stripfiio:Infunctionfileio_mp_readni_':
fileio.f90:(.text+0x8a14): undefined reference to nitemsfiif90:(.0x8a6f):undefedreferencesubwrd_'
fileio.f90:(.text+0x8a97): undefined reference to chkfiif90:(.0x8b19):undefedreferencestrip_'
fileio.o: In function fiiompreadch:fiif90:(.0x9133):undefedreferencenitems_'
fileio.f90:(.text+0x91a1): undefined reference to wrdfiif90:(.0x91c9):undefedreferencechkint_'
fileio.f90:(.text+0x9252): undefined reference to stripfiio:Infunctionfileio_mp_readpot_':
fileio.f90:(.text+0xb339): undefined reference to nitemsfiif90:(.0xb3ad):undefedreferencesubwrd_'
fileio.f90:(.text+0xb3d5): undefined reference to chkfiif90:(.0xb45e):undefedreferencestrip_'
fock.o: In function fockmpxcfockreader:fock.f90:(.0x231):undefedreferencerdatab_'
fock.f90:(.text+0x3f8): undefined reference to rdatabfock.f90:(.0x5a0):undefedreferencerdatab_'
fock.f90:(.text+0x72f): undefined reference to rdatabfock.f90:(.0x8e3):undefedreferencerdatab_'
fock.o:fock.f90:(.text+0xa72): more undefined references to rdatabfollowfock.o:Infunctionfock_mp_xc_fock_reader_':
fock.f90:(.text+0x13e6): undefined reference to stripfock.f90:(.0x13f7):undefedreferenceupper_'
fock.f90:(.text+0x1506): undefined reference to rdatabfock.f90:(.0x168a):undefedreferencerdatab_'
fock.f90:(.text+0x180e): undefined reference to rdatabfock.f90:(.0x1992):undefedreferencerdatab_'
fock.f90:(.text+0x1b16): undefined reference to rdatabfock.o:fock.f90:(.0x1ca5):moreundefedreferencesrdatab_' follow
fock.o: In function fockmpxcfockreader:fock.f90:(.0x53b8):undefedreferencestrip_'
fock.f90:(.text+0x53c9): undefined reference to lowerfock.f90:(.0x5669):undefedreferencerdatab_'
fock.f90:(.text+0x57e9): undefined reference to rdatabfock.f90:(.0x596d):undefedreferencerdatab_'
fock.o: In function fockmpsetupfock:fock.f90:(.0x7323):undefedreferencewforce_'
npt_dynamics.o: In function nptdynamicsmpreadernpt:nptdynamics.f90:(.0x15a):undefedreferencerdatab_'
npt_dynamics.f90:(.text+0x315): undefined reference to rdatabnptdynamics.f90:(.0x4c9):undefedreferencerdatab_'
npt_dynamics.o: In function nptdynamicsmpstepnpt:nptdynamics.f90:(.0x1764):undefedreferencerdatab_'
npt_dynamics.f90:(.text+0x1937): undefined reference to rdatabnptdynamics.o:nptdynamics.f90:(.0x1b0f):moreundefedreferencesrdatab_' follow
dynconstr.o: In function dynconstrmpsteptb:dynconstr.f90:(.0x3e54):undefedreferencewforce_'
dynconstr.f90:(.text+0x7bea): undefined reference to rdatabdynconstr.f90:(.0x7ce5):undefedreferencerdatab_'
dynconstr.f90:(.text+0x8a8e): undefined reference to rdatabdynconstr.f90:(.0x8c03):undefedreferencerdatab_'
dynconstr.f90:(.text+0x8da0): undefined reference to rdatabdynconstr.o:dynconstr.f90:(.0x8f35):moreundefedreferencesrdatab_' follow
subrot_scf.o: In function rotscfmprotscf:rotscf.f90:(.0x9a72):undefedreferencewforce_'
subrot_scf.o: In function rotscfmpsetuprotscf:rotscf.f90:(.0x11898):undefedreferencerdatab_'
gw_model.o: In function gwmodelmpgwdynsm1ij:gwmodel.f90:(.0x1ce1):undefedreferencerdatab_'
electron.o: In function elmin:ectron.f90:(.0x22db):undefedreferencewforce_'
electron.f90:(.text+0x3389): undefined reference to rdatabectron.f90:(.0x4873):undefedreferencewforce_'
electron_all.o: In function elminall:ectronall.f90:(.0x8145):undefedreferencewforce_'
electron_all.f90:(.text+0x9357): undefined reference to rdatabectronall.f90:(.0xb96d):undefedreferencewforce_'
pardens.o: In function pardensmpparchg:pardens.f90:(.0x498):undefedreferencewforce_'
pardens.f90:(.text+0xb51): undefined reference to wforcepardens.f90:(.0x1053):undefedreferenceclean_'
pardens.f90:(.text+0x105f): undefined reference to nxtupardens.f90:(.0x114f):undefedreferenceclean_'
pardens.f90:(.text+0x1167): undefined reference to nxtupardens.f90:(.0x19a8):undefedreferencewforce_'
pardens.f90:(.text+0x29c3): undefined reference to wforcepardens.f90:(.0x2a81):undefedreferencewforce_'
pardens.f90:(.text+0x6157): undefined reference to nxtupardens.f90:(.0x61ee):undefedreferencewforce_'
pardens.o: In function pardensparchgmpreadpard:pardens.f90:(.0x6e70):undefedreferencewforce_'
pardens.f90:(.text+0x708a): undefined reference to nxtupardens.f90:(.0x73ab):undefedreferencerdatab_'
pardens.f90:(.text+0x74af): undefined reference to rdatabpardens.f90:(.0x78f1):undefedreferencewforce_'
pardens.f90:(.text+0x79eb): undefined reference to rdatabpardens.f90:(.0x813c):undefedreferencerdatab_'
pardens.f90:(.text+0x8677): undefined reference to wforcepardens.f90:(.0x8731):undefedreferencewforce_'
pardens.f90:(.text+0x87e1): undefined reference to wforcepardens.f90:(.0x88cb):undefedreferencerdatab_'
pardens.f90:(.text+0x8dcc): undefined reference to wforcepardens.f90:(.0x8eaf):undefedreferencerdatab_'
pardens.f90:(.text+0x8f70): undefined reference to wforcepardens.f90:(.0x9053):undefedreferencerdatab_'
pardens.f90:(.text+0x9114): undefined reference to wforcepardens.f90:(.0x92a5):undefedreferencerdatab_'
pardens.f90:(.text+0x99ab): undefined reference to wforcepardens.f90:(.0x9aa8):undefedreferencerdatab_'
pardens.f90:(.text+0xa29e): undefined reference to wforcepardens.o:Infunctionpardensparchg_mp_write_eigv_':
pardens.f90:(.text+0xa6f8): undefined reference to wforcepaircorrection.o:Infunctionpair_correction_':
paircorrection.f90:(.text+0x122): undefined reference to rdataboptics.o:Infunctioncalc_nabij_':
optics.f90:(.text+0x192): undefined reference to rdataboptics.f90:(.0x355):undefedreferencerdatab_'
optics.f90:(.text+0x569): undefined reference to rdataboptics.f90:(.0x746):undefedreferencerdatab_'
finite_diff.o: In function fitederencesmprateexcitedstateposcar:fited.f90:(.0x3db0):undefedreferencestrip_'
finite_diff.f90:(.text+0x3e29): undefined reference to stripelpol.o:Infunctionelpol_mp_reader_add_on_':
elpol.f90:(.text+0x2162): undefined reference to rdatabelpol.f90:(.0x2463):undefedreferencerdatab_'
elpol.f90:(.text+0x27e4): undefined reference to rdatabelearresponse.o:Infunctionmlrf_main_mp_lrf_main_':
elinear_response.f90:(.text+0x684f): undefined reference to wforceelearresponse.f90:(.0xc475):undefedreferencewforce_'
elinear_response.o: In function mlrfmamplrfrϕ:elearresponse.f90:(.0x1c821):undefedreferencewforce_'
elinear_response.f90:(.text+0x1f439): undefined reference to wforceelearresponse.o:Infunctionmlrf_main_mp_lr_reader_':
elinear_response.f90:(.text+0x2523e): undefined reference to rdatabelearresponse.f90:(.0x253f2):undefedreferencerdatab_'
elinear_response.f90:(.text+0x25539): undefined reference to rdatabelearresponse.f90:(.0x256c3):undefedreferencerdatab_'
elinear_response.f90:(.text+0x25858): undefined reference to rdatabelearresponse.o:elearresponse.f90:(.0x259ed):moreundefedreferencesrdatab_' follow
ilinear_response.o: In function lrimamplrma:ilearresponse.f90:(.0x8f2d):undefedreferencewforce_'
ilinear_response.f90:(.text+0x24f3d): undefined reference to wforcelearoptics.o:Infunctionmlr_optic_mp_lr_optic_':
linear_optics.f90:(.text+0x106b): undefined reference to wforcewaier.o:Infunctionwannier_mp_wannier_reader_':
wannier.f90:(.text+0x16d): undefined reference to rdatabectronOEP.o:Infunctionelmin_oep_':
electron_OEP.f90:(.text+0x4e36): undefined reference to wforceectronOEP.f90:(.0x5a59):undefedreferencerdatab_'
electron_OEP.f90:(.text+0xa5c7): undefined reference to wforceectronlhf.o:Infunctionelmin_lhf_':
electron_lhf.f90:(.text+0x362e): undefined reference to wforceectronlhf.f90:(.0x4162):undefedreferencerdatab_'
electron_lhf.f90:(.text+0x5e0e): undefined reference to wforcewavecacher.o:Infunctionwave_cacher_mp_eddiag_gw_':
wave_cacher.f90:(.text+0x6160): undefined reference to rdatabbse.o:Infunctionbse_mp_calculate_bse_':
bse.f90:(.text+0x330c): undefined reference to wforcebse.f90:(.0x6808):undefedreferencewforce_'
chi.o: In function ξmpresponsereader:χ.f90:(.0x16e):undefedreferencerdatab_'
chi.f90:(.text+0x1ff): undefined reference to stripχ.f90:(.0x210):undefedreferencelower_'
chi.f90:(.text+0x221): undefined reference to n>hχ.f90:(.0x9cc):undefedreferencerdatab_'
chi.f90:(.text+0xb8b): undefined reference to rdatabχ.f90:(.0xd24):undefedreferencerdatab_'
chi.f90:(.text+0xe5b): undefined reference to rdatabχ.f90:(.0xfe2):undefedreferencerdatab_'
chi.o:chi.f90:(.text+0x1169): more undefined references to rdatabfollowχ.o:Infunctionxi_mp_calculate_xi_':
chi.f90:(.text+0x152c4): undefined reference to wforceχ.f90:(.0x1a949):undefedreferencewforce_'
chi.o: In function ξmpsetgwomalgo:χ.f90:(.0x4c9f0):undefedreferencestrip_'
chi.f90:(.text+0x4c9fd): undefined reference to lowerχ.f90:(.0x4ca0a):undefedreferencelength_'
linear_response_NMR.o: In function mlrmanmrmpmlrb_ma..0:learresponseNMR.f90:(.0x1198b):undefedreferencewforce_'
linear_response_NMR.f90:(.text+0x14936): undefined reference to wforcelearresponseNMR.o:Infunctionmlr_main_nmr_mp_mlr_psi_response_empty_':
linear_response_NMR.f90:(.text+0x26cb8): undefined reference to wforcelearresponseNMR.f90:(.0x2743a):undefedreferencewforce_'
linear_response_NMR.o: In function mlrmanmrmpmlrb_ma:learresponseNMR.f90:(.0x3b50b):undefedreferencewforce_'
linear_response_NMR.o:linear_response_NMR.f90:(.text+0x3e4b3): more undefined references to `wforce_' follow
make: *** [vasp] Error 1

I am completely stuck in my research at this point and would appreciate any insight offered. Thanks in advance
Last edited by psi391 on Fri May 31, 2013 11:31 pm, edited 1 time in total.

beck
Newbie
Newbie
Posts: 19
Joined: Tue Jun 14, 2005 3:22 pm

VASP 5.3 compilation problems

#2 Post by beck » Sat Jun 01, 2013 7:47 am

Dear psi391,

please replace the line
"LIB = -L../vasp.5.lib -ldmy \ " in the vasp-5.3-Makefile with the line
"LIB = ../vasp.5.lib/libdmy.a \" then it should link all the missing routines.

Regards, Beck
Last edited by beck on Sat Jun 01, 2013 7:47 am, edited 1 time in total.

psi391
Newbie
Newbie
Posts: 3
Joined: Wed May 22, 2013 6:32 pm

VASP 5.3 compilation problems

#3 Post by psi391 » Sat Jun 01, 2013 10:55 pm

Dear Beck,

Thank you for your response. I made the change to the Makefile, but it does not fix the issue unfortunately...


mpif77 -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 mgrid.o xclib.o vdw_nl.o xclib_grad.o radial.o pseudo.o gridq.o ebs.o mkpoints.o wave.o wave_mpi.o wave_high.o spinsym.o symmetry.o symlib.o lattlib.o random.o nonl.o nonlr.o nonl_high.o dfast.o choleski2.o mix.o hamil.o xcgrad.o xcspin.o potex1.o potex2.o constrmag.o cl_shift.o relativistic.o LDApU.o paw_base.o metagga.o egrad.o pawsym.o pawfock.o pawlhf.o rhfatm.o hyperfine.o paw.o mkpoints_full.o charge.o Lebedev-Laikov.o stockholder.o dipol.o pot.o dos.o elf.o tet.o tetweight.o hamil_rot.o chain.o dyna.o k-proj.o sphpro.o us.o core_rel.o aedens.o wavpre.o wavpre_noio.o broyden.o dynbr.o hamil_high.o rmm-diis.o reader.o writer.o tutor.o xml_writer.o brent.o stufak.o fileio.o opergrid.o stepver.o chgloc.o fast_aug.o fock_multipole.o fock.o mkpoints_change.o sym_grad.o mymath.o internals.o npt_dynamics.o dynconstr.o dimer_heyden.o dvvtrajectory.o vdwforcefield.o nmr.o pead.o subrot.o subrot_scf.o force.o pwlhf.o gw_model.o optreal.o steep.o davidson.o david_inner.o electron.o rot.o electron_all.o shm.o pardens.o paircorrection.o optics.o constr_cell_relax.o stm.o finite_diff.o elpol.o hamil_lr.o rmm-diis_lr.o subrot_cluster.o subrot_lr.o lr_helper.o hamil_lrf.o elinear_response.o ilinear_response.o linear_optics.o setlocalpp.o wannier.o electron_OEP.o electron_lhf.o twoelectron4o.o mlwf.o ratpol.o screened_2e.o wave_cacher.o chi_base.o wpot.o local_field.o ump2.o ump2kpar.o fcidump.o ump2no.o bse_te.o bse.o acfdt.o chi.o sydmat.o dmft.o rmm-diis_mlr.o linear_response_NMR.o wannier_interpol.o linear_response.o fftmpiw.o fftmpi_map.o fftw3d.o fft3dlib.o /software/FFTW/3.3.1/intel/lib//libfftw3.a ../vasp.5.lib/libdmy.a ../vasp.5.lib/linpack_double.o /opt/intel/composer_xe_2013.2.146/mkl/lib/intel64/libmkl_scalapack_lp64.a -lmkl_blacs_openmpi_lp64 /opt/intel/composer_xe_2013.2.146/mkl/lib/intel64/libmkl_intel_lp64.a -L/opt/intel/composer_xe_2013.2.146/mkl/lib/intel64 -mkl -lpthread
main.o: In function MAIN_:ma.f90:(.0x40d0):undefedreferencerdatab_'
main.f90:(.text+0x20eb2): undefined reference to rdatabma.f90:(.0x211df):undefedreferencerdatab_'
main.f90:(.text+0x24286): undefined reference to wforcema.f90:(.0x2656d):undefedreferencerdatab_'
main.f90:(.text+0x38ea1): undefined reference to wforcema.f90:(.0x39b7f):undefedreferencewforce_'
main.f90:(.text+0x3a04f): undefined reference to wforcema.f90:(.0x3ad0a):undefedreferencewforce_'
main.f90:(.text+0x3e3ee): undefined reference to wforcema.f90:(.0x3f00d):undefedreferencereopen_'
main.f90:(.text+0x3fa97): undefined reference to reopenma.f90:(.0x40359):undefedreferencewforce_'
xml.o: In function vaspxmlmpxmlflush:xml.f90:(.0x21):undefedreferencewforce_'
main_mpi.o: In function mamπmpitmπ:mamπ.f90:(.0x353):undefedreferencerdatab_'
main_mpi.f90:(.text+0x50e): undefined reference to rdatabmamπ.f90:(.0x65b):undefedreferencerdatab_'
main_mpi.f90:(.text+0x7b2): undefined reference to rdatabmamπ.f90:(.0x9ba):undefedreferencerdatab_'
main_mpi.o:main_mpi.f90:(.text+0xd03): more undefined references to rdatabfollowposcar.o:Infunctionposcar_mp_rd_poscar_head_':
poscar.f90:(.text+0x722): undefined reference to nitemsposcar.f90:(.0xbed):undefedreferencenitems_'
poscar.f90:(.text+0xe71): undefined reference to nitemsposcar.f90:(.0x134c):undefedreferencenitems_'
poscar.f90:(.text+0x15ab): undefined reference to nitemsposcar.o:poscar.f90:(.0x1952):moreundefedreferencesnitems_' follow
poscar.o: In function poscarmpoutpostrail:poscar.f90:(.0xad4c):undefedreferencereopen_'
pseudo.o: In function pseudomprdpars..0:pseudf90:(.0xcf79):undefedreferencelength_'
pseudo.o: In function pseudomprdpars:pseudf90:(.0xf2f9):undefedreferencelength_'
constrmag.o: In function constraedm_moda̲rmpconstraedm_reader:constrmag.f90:(.0x1dc):undefedreferencerdatab_'
constrmag.f90:(.text+0x5cf): undefined reference to rdatabconstrmag.f90:(.0xc8e):undefedreferencerdatab_'
constrmag.f90:(.text+0x1022): undefined reference to rdatabclshift.o:Infunctioncl_mp_init_cl_shift_':
cl_shift.f90:(.text+0x1551c): undefined reference to rdatabclshift.o:clshift.f90:(.0x156b8):moreundefedreferencesrdatab_' follow
metagga.o: In function setxcmηmpxcmηreader:mηgga.f90:(.0x293):undefedreferencestrip_'
metagga.f90:(.text+0x2a4): undefined reference to uppermηgga.f90:(.0x6bc):undefedreferencerdatab_'
metagga.f90:(.text+0x9a1): undefined reference to rdatabmηgga.f90:(.0xb32):undefedreferencerdatab_'
metagga.f90:(.text+0xd9a): undefined reference to rdatabmηgga.f90:(.0xf51):undefedreferencerdatab_'
metagga.o:metagga.f90:(.text+0x1100): more undefined references to rdatabfollowk-proj.o:Infunctionmkproj_mp_rd_poscar_prim_head_':
k-proj.f90:(.text+0x76b2): undefined reference to nitemsk-proj.f90:(.0x7b7d):undefedreferencenitems_'
k-proj.f90:(.text+0x7e01): undefined reference to nitemsk-proj.f90:(.0x82dc):undefedreferencenitems_'
k-proj.f90:(.text+0x853b): undefined reference to nitemsk-proj.o:k-proj.f90:(.0x88e2):moreundefedreferencesnitems_' follow
core_rel.o: In function ppdatampspawnpp:corerel.f90:(.0x256):undefedreferencerdatab_'
core_rel.f90:(.text+0x4b0): undefined reference to rdatabcorerel.o:Infunctioncore_rel_mp_init_core_rel_':
core_rel.f90:(.text+0x503e7): undefined reference to rdatabcorerel.f90:(.0x505a3):undefedreferencerdatab_'
core_rel.f90:(.text+0x5073c): undefined reference to rdatabcorerel.o:corerel.f90:(.0x508cb):moreundefedreferencesrdatab_' follow
core_rel.o: In function corerelmpitcorerel:corerel.f90:(.0x509bb):undefedreferencestrip_'
core_rel.f90:(.text+0x50bab): undefined reference to rdatabcorerel.f90:(.0x50d43):undefedreferencerdatab_'
core_rel.f90:(.text+0x50edb): undefined reference to rdatabcorerel.f90:(.0x5107a):undefedreferencerdatab_'
core_rel.f90:(.text+0x51219): undefined reference to rdatabcorerel.o:corerel.f90:(.0x51364):moreundefedreferencesrdatab_' follow
reader.o: In function reader:reader.f90:(.0x27c):undefedreferencestrip_'
reader.f90:(.text+0x395): undefined reference to rdatabreader.f90:(.0x523):undefedreferencerdatab_'
reader.f90:(.text+0x6f1): undefined reference to rdatabreader.f90:(.0x78a):undefedreferencestrip_'
reader.f90:(.text+0x79b): undefined reference to lowerreader.f90:(.0x8c7):undefedreferencerdatab_'
reader.f90:(.text+0xa6e): undefined reference to rdatabreader.f90:(.0xb5d):undefedreferencestrip_'
reader.f90:(.text+0xb6e): undefined reference to lowerreader.f90:(.0x1404):undefedreferencerdatab_'
reader.f90:(.text+0x15b9): undefined reference to rdatabreader.f90:(.0x1747):undefedreferencerdatab_'
reader.f90:(.text+0x18d2): undefined reference to rdatabreader.f90:(.0x1a60):undefedreferencerdatab_'
reader.o:reader.f90:(.text+0x1bf1): more undefined references to rdatabfollowreader.o:Infunctionreader_':
reader.f90:(.text+0xd1a5): undefined reference to stripreader.f90:(.0xd3b0):undefedreferencerdatab_'
writer.o: In function writermpwriterreader:writer.f90:(.0x16c):undefedreferencerdatab_'
writer.f90:(.text+0x2f5): undefined reference to rdatabtur.o:Infunctionvtutor_':
tutor.f90:(.text+0x8e): undefined reference to stripfiio:Infunctionfileio_mp_readni_':
fileio.f90:(.text+0x8a14): undefined reference to nitemsfiif90:(.0x8a6f):undefedreferencesubwrd_'
fileio.f90:(.text+0x8a97): undefined reference to chkfiif90:(.0x8b19):undefedreferencestrip_'
fileio.o: In function fiiompreadch:fiif90:(.0x9133):undefedreferencenitems_'
fileio.f90:(.text+0x91a1): undefined reference to wrdfiif90:(.0x91c9):undefedreferencechkint_'
fileio.f90:(.text+0x9252): undefined reference to stripfiio:Infunctionfileio_mp_readpot_':
fileio.f90:(.text+0xb339): undefined reference to nitemsfiif90:(.0xb3ad):undefedreferencesubwrd_'
fileio.f90:(.text+0xb3d5): undefined reference to chkfiif90:(.0xb45e):undefedreferencestrip_'
fock.o: In function fockmpxcfockreader:fock.f90:(.0x231):undefedreferencerdatab_'
fock.f90:(.text+0x3f8): undefined reference to rdatabfock.f90:(.0x5a0):undefedreferencerdatab_'
fock.f90:(.text+0x72f): undefined reference to rdatabfock.f90:(.0x8e3):undefedreferencerdatab_'
fock.o:fock.f90:(.text+0xa72): more undefined references to rdatabfollowfock.o:Infunctionfock_mp_xc_fock_reader_':
fock.f90:(.text+0x13e6): undefined reference to stripfock.f90:(.0x13f7):undefedreferenceupper_'
fock.f90:(.text+0x1506): undefined reference to rdatabfock.f90:(.0x168a):undefedreferencerdatab_'
fock.f90:(.text+0x180e): undefined reference to rdatabfock.f90:(.0x1992):undefedreferencerdatab_'
fock.f90:(.text+0x1b16): undefined reference to rdatabfock.o:fock.f90:(.0x1ca5):moreundefedreferencesrdatab_' follow
fock.o: In function fockmpxcfockreader:fock.f90:(.0x53b8):undefedreferencestrip_'
fock.f90:(.text+0x53c9): undefined reference to lowerfock.f90:(.0x5669):undefedreferencerdatab_'
fock.f90:(.text+0x57e9): undefined reference to rdatabfock.f90:(.0x596d):undefedreferencerdatab_'
fock.o: In function fockmpsetupfock:fock.f90:(.0x7323):undefedreferencewforce_'
npt_dynamics.o: In function nptdynamicsmpreadernpt:nptdynamics.f90:(.0x15a):undefedreferencerdatab_'
npt_dynamics.f90:(.text+0x315): undefined reference to rdatabnptdynamics.f90:(.0x4c9):undefedreferencerdatab_'
npt_dynamics.o: In function nptdynamicsmpstepnpt:nptdynamics.f90:(.0x1764):undefedreferencerdatab_'
npt_dynamics.f90:(.text+0x1937): undefined reference to rdatabnptdynamics.o:nptdynamics.f90:(.0x1b0f):moreundefedreferencesrdatab_' follow
dynconstr.o: In function dynconstrmpsteptb:dynconstr.f90:(.0x3e54):undefedreferencewforce_'
dynconstr.f90:(.text+0x7bea): undefined reference to rdatabdynconstr.f90:(.0x7ce5):undefedreferencerdatab_'
dynconstr.f90:(.text+0x8a8e): undefined reference to rdatabdynconstr.f90:(.0x8c03):undefedreferencerdatab_'
dynconstr.f90:(.text+0x8da0): undefined reference to rdatabdynconstr.o:dynconstr.f90:(.0x8f35):moreundefedreferencesrdatab_' follow
subrot_scf.o: In function rotscfmprotscf:rotscf.f90:(.0x9a72):undefedreferencewforce_'
subrot_scf.o: In function rotscfmpsetuprotscf:rotscf.f90:(.0x11898):undefedreferencerdatab_'
gw_model.o: In function gwmodelmpgwdynsm1ij:gwmodel.f90:(.0x1ce1):undefedreferencerdatab_'
electron.o: In function elmin:ectron.f90:(.0x22db):undefedreferencewforce_'
electron.f90:(.text+0x3389): undefined reference to rdatabectron.f90:(.0x4873):undefedreferencewforce_'
electron_all.o: In function elminall:ectronall.f90:(.0x8145):undefedreferencewforce_'
electron_all.f90:(.text+0x9357): undefined reference to rdatabectronall.f90:(.0xb96d):undefedreferencewforce_'
pardens.o: In function pardensmpparchg:pardens.f90:(.0x498):undefedreferencewforce_'
pardens.f90:(.text+0xb51): undefined reference to wforcepardens.f90:(.0x1053):undefedreferenceclean_'
pardens.f90:(.text+0x105f): undefined reference to nxtupardens.f90:(.0x114f):undefedreferenceclean_'
pardens.f90:(.text+0x1167): undefined reference to nxtupardens.f90:(.0x19a8):undefedreferencewforce_'
pardens.f90:(.text+0x29c3): undefined reference to wforcepardens.f90:(.0x2a81):undefedreferencewforce_'
pardens.f90:(.text+0x6157): undefined reference to nxtupardens.f90:(.0x61ee):undefedreferencewforce_'
pardens.o: In function pardensparchgmpreadpard:pardens.f90:(.0x6e70):undefedreferencewforce_'
pardens.f90:(.text+0x708a): undefined reference to nxtupardens.f90:(.0x73ab):undefedreferencerdatab_'
pardens.f90:(.text+0x74af): undefined reference to rdatabpardens.f90:(.0x78f1):undefedreferencewforce_'
pardens.f90:(.text+0x79eb): undefined reference to rdatabpardens.f90:(.0x813c):undefedreferencerdatab_'
pardens.f90:(.text+0x8677): undefined reference to wforcepardens.f90:(.0x8731):undefedreferencewforce_'
pardens.f90:(.text+0x87e1): undefined reference to wforcepardens.f90:(.0x88cb):undefedreferencerdatab_'
pardens.f90:(.text+0x8dcc): undefined reference to wforcepardens.f90:(.0x8eaf):undefedreferencerdatab_'
pardens.f90:(.text+0x8f70): undefined reference to wforcepardens.f90:(.0x9053):undefedreferencerdatab_'
pardens.f90:(.text+0x9114): undefined reference to wforcepardens.f90:(.0x92a5):undefedreferencerdatab_'
pardens.f90:(.text+0x99ab): undefined reference to wforcepardens.f90:(.0x9aa8):undefedreferencerdatab_'
pardens.f90:(.text+0xa29e): undefined reference to wforcepardens.o:Infunctionpardensparchg_mp_write_eigv_':
pardens.f90:(.text+0xa6f8): undefined reference to wforcepaircorrection.o:Infunctionpair_correction_':
paircorrection.f90:(.text+0x122): undefined reference to rdataboptics.o:Infunctioncalc_nabij_':
optics.f90:(.text+0x192): undefined reference to rdataboptics.f90:(.0x355):undefedreferencerdatab_'
optics.f90:(.text+0x569): undefined reference to rdataboptics.f90:(.0x746):undefedreferencerdatab_'
finite_diff.o: In function fitederencesmprateexcitedstateposcar:fited.f90:(.0x3db0):undefedreferencestrip_'
finite_diff.f90:(.text+0x3e29): undefined reference to stripelpol.o:Infunctionelpol_mp_reader_add_on_':
elpol.f90:(.text+0x2162): undefined reference to rdatabelpol.f90:(.0x2463):undefedreferencerdatab_'
elpol.f90:(.text+0x27e4): undefined reference to rdatabelearresponse.o:Infunctionmlrf_main_mp_lrf_main_':
elinear_response.f90:(.text+0x684f): undefined reference to wforceelearresponse.f90:(.0xc475):undefedreferencewforce_'
elinear_response.o: In function mlrfmamplrfrϕ:elearresponse.f90:(.0x1c821):undefedreferencewforce_'
elinear_response.f90:(.text+0x1f439): undefined reference to wforceelearresponse.o:Infunctionmlrf_main_mp_lr_reader_':
elinear_response.f90:(.text+0x2523e): undefined reference to rdatabelearresponse.f90:(.0x253f2):undefedreferencerdatab_'
elinear_response.f90:(.text+0x25539): undefined reference to rdatabelearresponse.f90:(.0x256c3):undefedreferencerdatab_'
elinear_response.f90:(.text+0x25858): undefined reference to rdatabelearresponse.o:elearresponse.f90:(.0x259ed):moreundefedreferencesrdatab_' follow
ilinear_response.o: In function lrimamplrma:ilearresponse.f90:(.0x8f2d):undefedreferencewforce_'
ilinear_response.f90:(.text+0x24f3d): undefined reference to wforcelearoptics.o:Infunctionmlr_optic_mp_lr_optic_':
linear_optics.f90:(.text+0x106b): undefined reference to wforcewaier.o:Infunctionwannier_mp_wannier_reader_':
wannier.f90:(.text+0x16d): undefined reference to rdatabectronOEP.o:Infunctionelmin_oep_':
electron_OEP.f90:(.text+0x4e36): undefined reference to wforceectronOEP.f90:(.0x5a59):undefedreferencerdatab_'
electron_OEP.f90:(.text+0xa5c7): undefined reference to wforceectronlhf.o:Infunctionelmin_lhf_':
electron_lhf.f90:(.text+0x362e): undefined reference to wforceectronlhf.f90:(.0x4162):undefedreferencerdatab_'
electron_lhf.f90:(.text+0x5e0e): undefined reference to wforcewavecacher.o:Infunctionwave_cacher_mp_eddiag_gw_':
wave_cacher.f90:(.text+0x6160): undefined reference to rdatabbse.o:Infunctionbse_mp_calculate_bse_':
bse.f90:(.text+0x330c): undefined reference to wforcebse.f90:(.0x6808):undefedreferencewforce_'
chi.o: In function ξmpresponsereader:χ.f90:(.0x16e):undefedreferencerdatab_'
chi.f90:(.text+0x1ff): undefined reference to stripχ.f90:(.0x210):undefedreferencelower_'
chi.f90:(.text+0x221): undefined reference to n>hχ.f90:(.0x9cc):undefedreferencerdatab_'
chi.f90:(.text+0xb8b): undefined reference to rdatabχ.f90:(.0xd24):undefedreferencerdatab_'
chi.f90:(.text+0xe5b): undefined reference to rdatabχ.f90:(.0xfe2):undefedreferencerdatab_'
chi.o:chi.f90:(.text+0x1169): more undefined references to rdatabfollowχ.o:Infunctionxi_mp_calculate_xi_':
chi.f90:(.text+0x152c4): undefined reference to wforceχ.f90:(.0x1a949):undefedreferencewforce_'
chi.o: In function ξmpsetgwomalgo:χ.f90:(.0x4c9f0):undefedreferencestrip_'
chi.f90:(.text+0x4c9fd): undefined reference to lowerχ.f90:(.0x4ca0a):undefedreferencelength_'
linear_response_NMR.o: In function mlrmanmrmpmlrb_ma..0:learresponseNMR.f90:(.0x1198b):undefedreferencewforce_'
linear_response_NMR.f90:(.text+0x14936): undefined reference to wforcelearresponseNMR.o:Infunctionmlr_main_nmr_mp_mlr_psi_response_empty_':
linear_response_NMR.f90:(.text+0x26cb8): undefined reference to wforcelearresponseNMR.f90:(.0x2743a):undefedreferencewforce_'
linear_response_NMR.o: In function mlrmanmrmpmlrb_ma:learresponseNMR.f90:(.0x3b50b):undefedreferencewforce_'
linear_response_NMR.o:linear_response_NMR.f90:(.text+0x3e4b3): more undefined references to `wforce_' follow


If this is related to vasp.5.lib compilation, then I am still not sure what is going wrong. Any ideas?
Last edited by psi391 on Sat Jun 01, 2013 10:55 pm, edited 1 time in total.

beck
Newbie
Newbie
Posts: 19
Joined: Tue Jun 14, 2005 3:22 pm

VASP 5.3 compilation problems

#4 Post by beck » Sun Jun 02, 2013 7:41 am

Dear psi391,
I should have seen it earlier: something in the generation of libdmy.a went wrong:
ifort -Os -FI -FR -c diolib.f
diolib.f: remark #5133: The input stream is empty
ifort -Os -FI -FR -c dlexlib.f
dlexlib.f: remark #5133: The input stream is empty
ifort -Os -FI -FR -c drdatab.f
drdatab.f: remark #5133: The input stream is empty

looks like your preprocessor here produced empty files. Try this in the vasp.5.lib dir:
rm *.o *.f libdmy.a
And than do a make in both dirs again.

Beck
Last edited by beck on Sun Jun 02, 2013 7:41 am, edited 1 time in total.

psi391
Newbie
Newbie
Posts: 3
Joined: Wed May 22, 2013 6:32 pm

VASP 5.3 compilation problems

#5 Post by psi391 » Mon Jun 03, 2013 4:54 pm

Dear Beck
I took your advice and started afresh in vasp.5.lib. I recompiled after deleting the *.o *.f (except the linpack routine) and the *.a. This time the compilation did not report the error "The input stream is empty".
Vasp also compiled. Thanks for your help. Best.
Last edited by psi391 on Mon Jun 03, 2013 4:54 pm, edited 1 time in total.

freshwind
Newbie
Newbie
Posts: 16
Joined: Fri Jul 19, 2013 10:26 am

VASP 5.3 compilation problems

#6 Post by freshwind » Wed Jul 31, 2013 1:01 pm

I have some similar but not identical error. How do I solve this?

siaufung@iwv2901:~/VASP files/vasp/lib/vasp.5.lib$ make
ifort -O0 -FI -FR -c preclib.f
preclib.f: remark #5133: The input stream is empty
cc -O -c timing_.c
cc1: fatal error: timing_.c: Permission denied
compilation terminated.
make: *** [timing_.o] Error 1
Last edited by freshwind on Wed Jul 31, 2013 1:01 pm, edited 1 time in total.

Locked