[Pw_forum] compilation error
Paolo Giannozzi
giannozz at nest.sns.it
Thu May 18 09:22:45 CEST 2006
On Wednesday 17 May 2006 21:48, Bhagawan Sahu wrote:
> I am trying to compile espresso-3.1 (release 17th May 2006)
> on 64-bit linux (EM64T) cluster( intel9.1 compiler, mkl8.1).
> ./configure step is successful and created the following
> make.sys file:
which uses icc as external preprocessor, and this doesn't work
because it assumes that // is a C++ comment and cuts whatever
follows. You should use the fortran preprocessor instead. The
first lines of the make.sys file should look like (beware the tabs)
.SUFFIXES :
.SUFFIXES : .o .c .f .f90
.f90.o:
$(MPIF90) $(F90FLAGS) -c $<
.f.o:
$(F77) $(FFLAGS) -c $<
.c.o:
$(CC) $(CFLAGS) -c $<
and the lines
> F90FLAGS = $(FFLAGS) $(FDFLAGS) $(IFLAGS) $(MODFLAGS)
> F90FLAGS_NOOPT = $(FFLAGS_NOOPT) $(FDFLAGS) $(IFLAGS) $(MODFLAGS)
should be
> F90FLAGS = $(FFLAGS) -nomodule -fpp $(FDFLAGS) $(IFLAGS) $(MODFLAGS)
> F90FLAGS_NOOPT = $(FFLAGS_NOOPT) -nomodule -fpp $(FDFLAGS) $(IFLAGS)
$(MODFLAGS)
Paolo
--
Paolo Giannozzi e-mail: giannozz at nest.sns.it
Scuola Normale Superiore Phone: +39/050-509876, Fax:-563513
Piazza dei Cavalieri 7 I-56126 Pisa, Italy
More information about the users
mailing list