[Pw_forum] Redhat linux PCs ESPRESSO compilation
Miriam Marques
mmarques at staffmail.ed.ac.uk
Fri May 11 17:11:39 CEST 2007
Hello,
I am trying to compile the ESPRESO package in Redhat linux PCs
build system type: i686-pc-linux-gnu, architecture: ia32)
I am using the NagWare f95 compiler (but I have also tried with the
gfortran compiler).
When I write ./configure it seems to work
, but it is unable to detect FFTW libraries. In the make.sys the line
FFT_LIBS is empty as well as the line corresponding to the pgplot
libraries and MPI_LIBS.
Writing locate fftw, I can see that the machines have by default
fftw3, but it
is not recognised by the program. I have tried to indicate where it is
located,
but it does not work.
I do not know if I should install another fftw library. I was
trying to install a fftw-2.1.5 library (I downloaded it from
http://www.fftw.org/)
, but I do not know if it is suitable for Redhat linux.
When using it, the line:
FFT_LIBS = -L/Home/mmarques/fftw-2.1.5/lib -lfftw
appears,
but when executing make all, the error:
make[1]: Entering directory `/phys/linux/mmarques/espresso-3.2/iotk'
cd src ; make libiotk.a
make[2]: Entering directory `/phys/linux/mmarques/espresso-3.2/iotk/src'
cpp -P -traditional -D__FFTW -I../include
-I/Home/mmarques/fftw-2.1.5/include /Home/mmarques/fftw-2.1.5/include
iotk_base.f90 -o iotk_base.F90
cc1: error: output filename specified twice
(null):0: confused by earlier errors, bailing out
make[2]: *** [iotk_base.o] Error 1
make[2]: Leaving directory `/phys/linux/mmarques/espresso-3.2/iotk/src'
make[1]: *** [libiotk.a] Error 2
make[1]: Leaving directory `/phys/linux/mmarques/espresso-3.2/iotk'
make: *** [libiotk] Error 2
appears.
On the other hand, when I use FFT_LIBS="/Home/mmarques/fftw-2.1.5/lib"
the line
checking for library containing fftwnd... no
appears.
and the error when executing make all is:
if test -d iotk ; then \
( cd iotk ; if test "make" = "" ; then make TLDEPS= libiotk.a ; \
else make TLDEPS= libiotk.a ; fi ) ; fi
make[1]: Entering directory `/phys/linux/mmarques/espresso-3.2/iotk'
cd src ; make libiotk.a
make[2]: Entering directory `/phys/linux/mmarques/espresso-3.2/iotk/src'
cpp -P -traditional -D__FFTW -D__USE_INTERNAL_FFTW -I../include
iotk_base.f90 -o iotk_base.F90
f95 -O -D__FFTW -D__USE_INTERNAL_FFTW -I../include -I./ -I../Modules
-I../iotk/src -I../PW -I../PH -I../CPV -c iotk_base.F90 -o
iotk_base.o
Error: iotk_base.F90, line 1: syntax error
detected at end of file
***Malformed statement
[f95 fatal error termination]
make[2]: *** [iotk_base.o] Error 2
make[2]: Leaving directory `/phys/linux/mmarques/espresso-3.2/iotk/src'
make[1]: *** [libiotk.a] Error 2
make[1]: Leaving directory `/phys/linux/mmarques/espresso-3.2/iotk'
make: *** [libiotk] Error 2
Thank you very much for your help,
Miriam.
More information about the users
mailing list