Installation problem: Can't open module file

1,292 views
Skip to first unread message

janos...@googlemail.com

unread,
Aug 9, 2011, 12:36:27 PM8/9/11
to cp2k
Dear all,

I try to compile cp2k in parallel but there is a problem I can not
cope with:

I get the following error message:


/home/daru/bin/cp2k/makefiles/../src/machine.F:36.85:

emory, m_iargc, m_abort, m_chdir, m_loc_r, m_loc_c, m_mov,
m_memory_details

1
Fatal Error: Can't open module file 'machine_gfortran.mod' for reading
at (1): No such file or directory


some details:
I use a modified arch file:
CC = cc
CPP =

FC = gfortran44
LD = gfortran44

AR = ar -r

CPPFLAGS =
DFLAGS = -D__GFORTRAN -D__FFTW3 -D__parallel -D__BLACS -D__SCALAPACK
-D__FFTSG\
-I/home/daru/bin/mpich2-install/include/\
-I/home/daru/bin/fftw-3.2.2/api/\

FCFLAGS = -O2 -ffast-math -funroll-loops -ftree-vectorize -ffree-form
$(DFLAGS)
LDFLAGS = $(FCFLAGS)
LIBS = /home/daru/bin/lib/blacsCinit_MPI-LINUX-1.a\
/home/daru/bin/lib/blacsF77init_MPI-LINUX-1.a\
/home/daru/bin/lib/blacs_MPI-LINUX-1.a\
/home/daru/bin/lib/libfftw3.a\
/home/daru/bin/lib/libmpl.a\
/home/daru/bin/lib/libscalapack.a\
/home/daru/bin/lib/blas_LINUX.a\
/home/daru/bin/lib/lapack_LINUX.a\
-lmpi\
OBJECTS_ARCHITECTURE = machine_gfortran.o

(I had to add some -I, without that it didn't find mpif.h and fftw3.f)
I use gfortran4.4, fftw-3.2.2, lapack-3.3.0, mpich2-1.3.2,
scalapack-1.8.0
I do the compiling on an AMD Opteron 6174 processors., on RadHat OS.


I'm rather starter with compiling so any suggestion is very much
appreciated!

Janos

Alin Marin Elena

unread,
Aug 9, 2011, 12:44:53 PM8/9/11
to cp...@googlegroups.com
Hi Janos,

it may be the extra \ on this line -lmpi\

regards,
Alin

--
Without Questions there are no Answers!
_____________________________________________________________________
Alin Marin ELENA
Advanced Molecular Simulation Research Laboratory
School of Physics, University College Dublin
----
Ardionsamblú Móilíneach Saotharlann Taighde
Scoil na Fisice, An Coláiste Ollscoile, Baile Átha Cliath

-----------------------------------------------------------------------------------
http://alin.elenaworld.net
______________________________________________________________________

signature.asc

janos...@googlemail.com

unread,
Aug 9, 2011, 7:53:11 PM8/9/11
to cp2k
Dear Alin,

Thank you for your fast reply.
Unfortunately without that slash I get the following error:

/home/daru/bin/cp2k/makefiles/../arch/daru_Linux-ia64-gfortran.popt:
28: *** commands commence before first target. Stop.

have nice day,

Janos


On Aug 9, 6:44 pm, Alin Marin Elena <alinm.el...@gmail.com> wrote:
> Hi Janos,
>
> it may be the extra \ on this line            -lmpi\
>
> regards,
> Alin
>
>  signature.asc
> < 1KViewDownload

Carlos Campana

unread,
Aug 9, 2011, 8:24:04 PM8/9/11
to cp...@googlegroups.com
Janos,
Your problems so far are not related to cp2k at all but to your
makefile not being properly prepared. Just google the error you get
and there will be plenty of hints about what the problem could be. Did
you check the syntax of line 28 in your makefile?
It is my personal view that one should exhaust all potential sources
of information before turning to this list. This will maximize the
number of cp2k-relevant questions in this service while ensuring (or
at least, increasing the chances) that the cp2k gods will be listening
at the time when they are really needed.
Cheers,
Carlos

> --
> You received this message because you are subscribed to the Google Groups "cp2k" group.
> To post to this group, send email to cp...@googlegroups.com.
> To unsubscribe from this group, send email to cp2k+uns...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cp2k?hl=en.
>
>

Alin Marin Elena

unread,
Aug 10, 2011, 3:42:30 AM8/10/11
to cp...@googlegroups.com
Hi Janos,


Strange... can you add as an attachments this file?
/home/daru/bin/cp2k/makefiles/../arch/daru_Linux-ia64-gfortran.popt

also...
why don't you use the wrapper mpif90 for compiling and linking? Usually makes
your life easier when comes to get the mpi headers and libs correctly...

Alin

signature.asc
Reply all
Reply to author
Forward
0 new messages