error making vasp.4.lib makefile

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


Moderators: Global Moderator, Moderator

Locked
Message
Author
ezaztaw
Newbie
Newbie
Posts: 9
Joined: Sat Jan 23, 2010 3:21 am

error making vasp.4.lib makefile

#1 Post by ezaztaw » Tue Jan 26, 2010 1:04 am

Hi,

I am trying to make vasp.4.lib using makefile.linux_gfortran compiler.

It is giving me an error that it cannot remove libdmy.a, No such file or directory. But it creates a file at the end.

If you can find the bug that will be great.
Thanks in advance,

Tawhid



gcc -E -P -C preclib.F >preclib.f
gfortran -O1 -ffree-form -c preclib.f
cc -O -c timing_.c
cc -O -c derrf_.c
cc -O -c dclock_.c
gcc -E -P -C diolib.F >diolib.f
gfortran -O1 -ffree-form -c diolib.f
gcc -E -P -C dlexlib.F >dlexlib.f
gfortran -O1 -ffree-form -c dlexlib.f
gcc -E -P -C drdatab.F >drdatab.f
gfortran -O1 -ffree-form -c drdatab.f
gfortran -O1 -c lapack_double.f
gfortran -O1 -c linpack_double.f
gfortran -O1 -c lapack_atlas.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
Last edited by ezaztaw on Tue Jan 26, 2010 1:04 am, edited 1 time in total.

ezaztaw
Newbie
Newbie
Posts: 9
Joined: Sat Jan 23, 2010 3:21 am

error making vasp.4.lib makefile

#2 Post by ezaztaw » Tue Jan 26, 2010 1:37 am

I also tried with a ifort compiler, and got this error

.SUFFIXES: .inc .f .F
#-----------------------------------------------------------------------
# Makefile for Portland Group F90/HPF compiler
# the makefile was tested only under Linux on Intel platforms
# however it might work on other platforms as well
#
# this release of vasp.4.lib contains lapack v2.0
# this can be compiled with pgf90 compiler if the option -O1 is used
#
# Mind: one user reported that he had to copy preclib.F diolib.F
# dlexlib.F and drdatab.F to the directory vasp.4.4, compile the files
# there and link them directly into vasp
# for no obvious reason these files could not be linked from the library
#
#-----------------------------------------------------------------------

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

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

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


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

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

# files which do not require autodouble
lapack_min.o: lapack_min.f
$(FC) $(FFLAGS) $(NOFREE) -c lapack_min.f
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
"Makefile" 58L, 1821C written
[tezaz@co-login vasp.4.lib]$ make
gcc -E -P -C preclib.F >preclib.f
ifort -O0 -FI -FR -c preclib.f
cc -O -c timing_.c
cc -O -c derrf_.c
cc -O -c dclock_.c
gcc -E -P -C diolib.F >diolib.f
ifort -O0 -FI -FR -c diolib.f
gcc -E -P -C dlexlib.F >dlexlib.f
ifort -O0 -FI -FR -c dlexlib.f
gcc -E -P -C drdatab.F >drdatab.f
ifort -O0 -FI -FR -c drdatab.f
ifort -O0 -FI -c lapack_double.f
fortcom: Info: lapack_double.f, line 10019: This directive is not supported on this platform.
*DIR$ NOVECTOR
------^
fortcom: Info: lapack_double.f, line 10183: This directive is not supported on this platform.
CDEC$ NOVECTOR
---------------^
fortcom: Info: lapack_double.f, line 15767: This directive is not supported on this platform.
*DIR$ NOVECTOR
------^
fortcom: Info: lapack_double.f, line 20289: This directive is not supported on this platform.
CDEC$ NOVECTOR
---------------^
fortcom: Info: lapack_double.f, line 20303: This directive is not supported on this platform.
CDEC$ NOVECTOR
------------------^
fortcom: Info: lapack_double.f, line 20330: This directive is not supported on this platform.
CDEC$ NOVECTOR
---------------^
ifort -O0 -FI -c linpack_double.f
ifort -O0 -FI -c lapack_atlas.f
fortcom: Info: lapack_atlas.f, line 12704: This directive is not supported on this platform.
*DIR$ NOVECTOR
------^
fortcom: Info: lapack_atlas.f, line 12868: This directive is not supported on this platform.
CDEC$ NOVECTOR
---------------^
fortcom: Info: lapack_atlas.f, line 18865: This directive is not supported on this platform.
CDEC$ NOVECTOR
---------------^
fortcom: Info: lapack_atlas.f, line 18879: This directive is not supported on this platform.
CDEC$ NOVECTOR
------------------^
fortcom: Info: lapack_atlas.f, line 18906: This directive is not supported on this platform.
CDEC$ NOVECTOR
---------------^
fortcom: Info: lapack_atlas.f, line 20236: This directive is not supported on this platform.
*DIR$ NOVECTOR
------^
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
Last edited by ezaztaw on Tue Jan 26, 2010 1:37 am, edited 1 time in total.

ezaztaw
Newbie
Newbie
Posts: 9
Joined: Sat Jan 23, 2010 3:21 am

error making vasp.4.lib makefile

#3 Post by ezaztaw » Tue Jan 26, 2010 5:47 am

fixed that with
rm -f libdmy.a
Last edited by ezaztaw on Tue Jan 26, 2010 5:47 am, edited 1 time in total.

Locked