[Pw_forum] New user dealing with compilation error

Chin-Cheng Su chincheng37 at hotmail.com
Mon Jun 5 17:51:36 CEST 2006

Hi all,

Lately I downloaded Quantum-Espresso v3.1 to my PC, which has the following 

     PC Machine: Intel P-4
     Operating System: Microsoft Windows XP
     Unixlike Environment in Windows: cygwin
     Compiler: GNU g95 & gcc

, and after ./configure was successfully done the file make.sys was also 
generated with following content
# make.sys.  Generated from make.sys.in by configure.

# compilation rules

.SUFFIXES : .o .c .f .f90

	$(MPIF90) $(F90FLAGS) -c $<

	$(F77) $(FFLAGS) -c $<

	$(CC) $(CFLAGS) -c $<

CC             = gcc
MPICC          = gcc
CFLAGS         = -O3 -fomit-frame-pointer $(DFLAGS) $(IFLAGS)
CPP            = cpp
CPPFLAGS       = -P -traditional $(DFLAGS) $(IFLAGS)
F90            = g95
MPIF90         = g95
F77            = g95
MPIF77         = g95
FFLAGS         = -O3 -cpp
FFLAGS_NOOPT   = -O0 -cpp
LD             = g95
LDFLAGS        =
AR             = ar
ARFLAGS        = ruv
RANLIB         = echo
BLAS_LIBS      =  -lblas
LAPACK_LIBS    =  -llapack
FFT_LIBS       =
MPI_LIBS       =
MASS_LIBS      =

# -----------------------------
# application-specific settings

# See include/defs.h.README for a list of precompilation options
# (possible arguments to -D or -U) and their meaning
FDFLAGS        = $(DFLAGS)
IFLAGS         = -I../include
MODFLAGS       = -I. -I../Modules -I../PW -I../PH -I../iotk/src -I../CPV

LIBOBJS        = ../flib/ptools.a ../flib/flib.a ../clib/clib.a 
# LIBS must contain the location of all needed external libraries
# MYLIB can be one of the following (depending on LIBS):
# blas       : compile the local copy of blas routines
# lapack     : compile the local copy of lapack routines
# blas_and_lapack : all of the above - use this for a quick test
#              or if you don't have an optimized blas/lapack library
# lapack_ibm : compile only lapack routines not present in IBM ESSL
#              use this together with IBM ESSL
# lapack_t3e : compile only lapack routines not present in T3E scilib
#              use this together with T3E scilib
# lapack_mkl : compile only lapack routines not present in Intel MKL
#              use this together with Intel MKL
MYLIB          =

Then I typed make all, lots of messages were presented and the last message 
block is as follows,

a - iotk_xtox.o
a - iotk_xtox_interf.o
echo libiotk.a
make[2]: Leaving directory 
make[1]: Leaving directory 
( cd Modules ; if test "make" = "" ; then make - --unix TLDEPS= all ; \
else make - --unix TLDEPS= all ; fi )
make[1]: Entering directory 
g95 -O3 -cpp -D__LINUX -D__G95 -D__FFTW -D__USE_INTERNAL_FFTW -I../include  
-I../Modules -I../PW -I../PH -I../iotk/src -I../CPV -c atom.f90
In file atom.f90:14

  USE kinds,      ONLY : DP
Fatal Error: Can't open module file 'kinds.mod' at (1) for reading: No such 
or directory
make[1]: *** [atom.o] Error 1
make[1]: Leaving directory 
make: *** [mods] Error 2

Does anyone know how to pass through it? Thanks to your kind help.



Express yourself instantly with MSN Messenger! Download today - it's FREE! 

More information about the users mailing list