Error: Array specification required in ALLOCATE statement
Posted: Thu Mar 24, 2022 7:16 pm
Hi,
I am trying to install vasp 6.3.0 on Ubuntu 16.04 LTS and I encountered the following errors upon compiling:
=========================================
if [ ! -d build/std ] ; then mkdir -p build/std ; fi
cp src/makefile src/.objects src/makedeps.awk makefile.include build/std
make -C build/std VERSION=std check
make[1]: Entering directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std'
exit 0
make[1]: Leaving directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std'
make -C build/std VERSION=std cleandependencies -j1
make[1]: Entering directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std'
rm -f .depend
make[1]: Leaving directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std'
make -C build/std VERSION=std all
make[1]: Entering directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std'
rsync -ru ../../src/lib .
cp makefile.include lib
make -C lib -j1
make[2]: Entering directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std/lib'
make libdmy.a
make[3]: Entering directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std/lib'
make[3]: 'libdmy.a' is up to date.
make[3]: Leaving directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std/lib'
make[2]: Leaving directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std/lib'
rsync -ru ../../src/parser .
cp makefile.include parser
make -C parser -j1
make[2]: Entering directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std/parser'
make libparser.a
make[3]: Entering directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std/parser'
make[3]: 'libparser.a' is up to date.
make[3]: Leaving directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std/parser'
make[2]: Leaving directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std/parser'
rsync -u ../../src/*.F ../../src/*.inc .
rm -f vasp ; make vasp ; cp vasp ../../bin/vasp_std
make[2]: Entering directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std'
mpif90.openmpi -ffree-form -ffree-line-length-none -w -ffpe-summary=invalid,zero,overflow -march=native -O2 -mtune=native -m64 -I/usr/include -I/usr/lib/openmpi/include -c tet.f90
tet.F:523:15:
allocate(energies, int_dos, mold=calculator%grid%energies)
1
Error: Array specification required in ALLOCATE statement at (1)
tet.F:523:25:
allocate(energies, int_dos, mold=calculator%grid%energies)
1
Error: Array specification required in ALLOCATE statement at (1)
tet.F:344:15:
allocate(energies, mold=calculator%grid%energies)
1
Error: Array specification required in ALLOCATE statement at (1)
tet.F:174:18:
allocate(new_grid%energies, new_grid%weights, mold=grid_points)
1
Error: Array specification required in ALLOCATE statement at (1)
tet.F:174:37:
allocate(new_grid%energies, new_grid%weights, mold=grid_points)
1
Error: Array specification required in ALLOCATE statement at (1)
makefile:166: recipe for target 'tet.o' failed
make[2]: *** [tet.o] Error 1
make[2]: Leaving directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std'
cp: cannot stat 'vasp': No such file or directory
makefile:129: recipe for target 'all' failed
make[1]: *** [all] Error 1
make[1]: Leaving directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std'
makefile:13: recipe for target 'std' failed
make: *** [std] Error 2
=========================================
Any advice? makefile.include is also attached. Thank you.
I am trying to install vasp 6.3.0 on Ubuntu 16.04 LTS and I encountered the following errors upon compiling:
=========================================
if [ ! -d build/std ] ; then mkdir -p build/std ; fi
cp src/makefile src/.objects src/makedeps.awk makefile.include build/std
make -C build/std VERSION=std check
make[1]: Entering directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std'
exit 0
make[1]: Leaving directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std'
make -C build/std VERSION=std cleandependencies -j1
make[1]: Entering directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std'
rm -f .depend
make[1]: Leaving directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std'
make -C build/std VERSION=std all
make[1]: Entering directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std'
rsync -ru ../../src/lib .
cp makefile.include lib
make -C lib -j1
make[2]: Entering directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std/lib'
make libdmy.a
make[3]: Entering directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std/lib'
make[3]: 'libdmy.a' is up to date.
make[3]: Leaving directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std/lib'
make[2]: Leaving directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std/lib'
rsync -ru ../../src/parser .
cp makefile.include parser
make -C parser -j1
make[2]: Entering directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std/parser'
make libparser.a
make[3]: Entering directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std/parser'
make[3]: 'libparser.a' is up to date.
make[3]: Leaving directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std/parser'
make[2]: Leaving directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std/parser'
rsync -u ../../src/*.F ../../src/*.inc .
rm -f vasp ; make vasp ; cp vasp ../../bin/vasp_std
make[2]: Entering directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std'
mpif90.openmpi -ffree-form -ffree-line-length-none -w -ffpe-summary=invalid,zero,overflow -march=native -O2 -mtune=native -m64 -I/usr/include -I/usr/lib/openmpi/include -c tet.f90
tet.F:523:15:
allocate(energies, int_dos, mold=calculator%grid%energies)
1
Error: Array specification required in ALLOCATE statement at (1)
tet.F:523:25:
allocate(energies, int_dos, mold=calculator%grid%energies)
1
Error: Array specification required in ALLOCATE statement at (1)
tet.F:344:15:
allocate(energies, mold=calculator%grid%energies)
1
Error: Array specification required in ALLOCATE statement at (1)
tet.F:174:18:
allocate(new_grid%energies, new_grid%weights, mold=grid_points)
1
Error: Array specification required in ALLOCATE statement at (1)
tet.F:174:37:
allocate(new_grid%energies, new_grid%weights, mold=grid_points)
1
Error: Array specification required in ALLOCATE statement at (1)
makefile:166: recipe for target 'tet.o' failed
make[2]: *** [tet.o] Error 1
make[2]: Leaving directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std'
cp: cannot stat 'vasp': No such file or directory
makefile:129: recipe for target 'all' failed
make[1]: *** [all] Error 1
make[1]: Leaving directory '/home/njpjacosalem/soft/VASP/src/vasp.6.3.0/build/std'
makefile:13: recipe for target 'std' failed
make: *** [std] Error 2
=========================================
Any advice? makefile.include is also attached. Thank you.