[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 
specifications,

     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 :
.SUFFIXES : .o .c .f .f90

.f90.o:
	$(MPIF90) $(F90FLAGS) -c $<

.f.o:
	$(F77) $(FFLAGS) -c $<

.c.o:
	$(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
F90FLAGS       = $(FFLAGS) $(FDFLAGS) $(IFLAGS) $(MODFLAGS)
F90FLAGS_NOOPT = $(FFLAGS_NOOPT) $(FDFLAGS) $(IFLAGS) $(MODFLAGS)
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
DFLAGS         = -D__LINUX -D__G95 -D__FFTW -D__USE_INTERNAL_FFTW
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 
../iotk/src/libiotk.a
# LIBS must contain the location of all needed external libraries
LIBS           = $(LAPACK_LIBS) $(BLAS_LIBS) $(FFT_LIBS) $(MPI_LIBS) 
$(MASS_LIBS)
# 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
libiotk.a
make[2]: Leaving directory 
`/cygdrive/c/DFTpackages/PWSCF/Test/espresso-3.1/iotk
/src'
make[1]: Leaving directory 
`/cygdrive/c/DFTpackages/PWSCF/Test/espresso-3.1/iotk
'
( cd Modules ; if test "make" = "" ; then make - --unix TLDEPS= all ; \
else make - --unix TLDEPS= all ; fi )
make[1]: Entering directory 
`/cygdrive/c/DFTpackages/PWSCF/Test/espresso-3.1/Mod
ules'
g95 -O3 -cpp -D__LINUX -D__G95 -D__FFTW -D__USE_INTERNAL_FFTW -I../include  
-I.
-I../Modules -I../PW -I../PH -I../iotk/src -I../CPV -c atom.f90
In file atom.f90:14

  USE kinds,      ONLY : DP
                                    1
Fatal Error: Can't open module file 'kinds.mod' at (1) for reading: No such 
file
or directory
make[1]: *** [atom.o] Error 1
make[1]: Leaving directory 
`/cygdrive/c/DFTpackages/PWSCF/Test/espresso-3.1/Modu
les'
make: *** [mods] Error 2

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

Yours,

Chin

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/




More information about the users mailing list