Page 1 of 1

vasp.5.4.4 parser issues

Posted: Fri Jul 14, 2017 10:23 am
by call_me_Al
Hi all,

Having some issues with installing VASP 5.4.4 mpi version, it seems to be due to the parser, or lack thereof.

The parser inputs are left as such

Code: Select all

# For the parser library
CXX_PARS   = g++

LIBS       += parser                                
LLIBS	   += -Lparser -lparser -lstdc++
then the error message pops up when I make:

Code: Select all

/usr/bin/ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status
make[2]: *** [vasp] Error 1
any ideas?

Re: vasp.5.4.4 parser issues

Posted: Wed Jul 18, 2018 10:09 am
by admin
With vasp.5.4.4 the error is repoduced if the makefile.include contains following lines

Code: Select all

CXX_PARS   = g++-5
LLIBS      += -Lparser -lparser -lstdc++
#LIBS       += parser        
In that case the makefile links agains the parser library, which is not compiled due to last line resulting in the error message you posted.
However, if last line is uncommented, i.e. following lines are used

Code: Select all

CXX_PARS   = g++-5
LLIBS      += -Lparser -lparser -lstdc++
LIBS       += parser        
The parser library is compiled at the very first part of the compilation, which is indicated by following output after "make std"

Code: Select all

g++ -D YY_parse_DEBUG=1 -c sites.cpp -o sites.o
g++ -D YY_parse_DEBUG=1 -c functions.cpp -o functions.o
g++ -D YY_parse_DEBUG=1 -c radial.cpp -o radial.o
g++ -D YY_parse_DEBUG=1 -c basis.cpp -o basis.o
g++ -D YY_parse_DEBUG=1 -c lex.yy.c -o lex.yy.o
g++ -D YY_parse_DEBUG=1 -c locproj.tab.c -o locproj.tab.o
g++ -D YY_parse_DEBUG=1 -c yywrap.c -o yywrap.o
rm -f libparser.a
ar vq libparser.a sites.o functions.o radial.o basis.o lex.yy.o locproj.tab.o yywrap.o locproj.tab.h
ar: creating libparser.a
a - sites.o
a - functions.o
a - radial.o
a - basis.o
a - lex.yy.o
a - locproj.tab.o
a - yywrap.o
a - locproj.tab.h