error when make Linux-x86-64-g95.popt

lifj yon... at gmail.com
Sat Jan 17 02:28:44 CET 2009


Hi, every body

   These days I have been compiling the cp2k program, and I have never
got a successful compilation until now.
   First of all, I downloaded the cp2k.tar.gz on 2009-1-14th, to make
sure it is the newest version.
   secondly, I compiled the  libraries needed with g95, including
lapack, libinit, fftw3, blas, scalapack, atlas, mpich2-1.0.7,
mpiblacs.
   This is the arch file of Linux-x86-64-g95.popt:
CC       = cc
CPP      =
FC       = mpif90
LD       = mpif90
AR       = ar -r
DFLAGS   = -D__G95 -D__FFTSG -D__parallel -D__BLACS -D__SCALAPACK -
D__FFTW3 -D__LIBINT
CPPFLAGS =
FCFLAGS  = $(DFLAGS) -I$(G95_INC) -ffree-form -O2 -ffast-math -
march=opteron -cpp -g
LDFLAGS  = $(FCFLAGS)
LIBS     = /home/lifj/software/cp2k-g95/scalapack-1.8.0/libscalapack.a
\
           /home/lifj/software/cp2k-g95/BLACS/LIB/blacsF77init_MPI-
LINUX-0.a \
           /home/lifj/software/cp2k-g95/BLACS/LIB/blacs_MPI-LINUX-0.a
\
           /home/lifj/software/cp2k-g95/lapack-3.2/lapack_LINUX.a \
           /home/lifj/software/cp2k-g95/lapack-3.2/blas_LINUX.a \
           /home/lifj/software/cp2k-g95/fftw-3.1.2/install/lib/
libfftw3.a \
           /home/lifj/software/cp2k-g95/libint-1.1.4/lib/libderiv.a \
           /home/lifj/software/cp2k-g95/libint-1.1.4/lib/libint.a \
           -lstdc++

OBJECTS_ARCHITECTURE = machine_g95.o

The error information is:

Error: Unclassifiable statement at (1)
 In file /home/lifj/software/cp2k-g95/cp2k/makefiles/../src/
f77_blas_netlib.F:2153

    INTEGER, PARAMETER                       :: DP = KIND(0.0D0),
&
    1
Error: Non-numeric character in statement label at (1)
 In file /home/lifj/software/cp2k-g95/cp2k/makefiles/../src/
f77_blas_netlib.F:2153

    INTEGER, PARAMETER                       :: DP = KIND(0.0D0),
&
    1
Error: Unclassifiable statement at (1)
 In file /home/lifj/software/cp2k-g95/cp2k/makefiles/../src/
f77_blas_netlib.F:2155

    REAL(DP)                                 ::
DCABS1
    1
Error: Non-numeric character in statement label at (1)
 In file /home/lifj/software/cp2k-g95/cp2k/makefiles/../src/
f77_blas_netlib.F:2155

    REAL(DP)                                 ::
DCABS1
    1
Error: Unclassifiable statement at (1)
 In file /home/lifj/software/cp2k-g95/cp2k/makefiles/../src/
f77_blas_netlib.F:2156

    COMPLEX(DP), INTENT(IN)                  ::
Z
    1
Error: Non-numeric character in statement label at (1)
 In file /home/lifj/software/cp2k-g95/cp2k/makefiles/../src/
f77_blas_netlib.F:2156

    COMPLEX(DP), INTENT(IN)                  ::
Z
    1
Error: Unclassifiable statement at (1)
 In file /home/lifj/software/cp2k-g95/cp2k/makefiles/../src/
f77_blas_netlib.F:2158

   END FUNCTION
DCABS1
   1
Error: Non-numeric character in statement label at (1)
 In file /home/lifj/software/cp2k-g95/cp2k/makefiles/../src/
f77_blas_netlib.F:2158

   END FUNCTION
DCABS1
   1
Error: Unclassifiable statement at (1)
 In file /home/lifj/software/cp2k-g95/cp2k/makefiles/../src/
f77_blas_netlib.F:2159

END
INTERFACE
1
Error: Non-numeric character in statement label at (1)
 In file /home/lifj/software/cp2k-g95/cp2k/makefiles/../src/
f77_blas_netlib.F:2159

END
INTERFACE
1
Error: Unclassifiable statement at (1)
 In file /home/lifj/software/cp2k-g95/cp2k/makefiles/../src/
f77_blas_netlib.F:2160

END MODULE
f77_blas_netlib
1
Error: Non-numeric character in statement label at (1)
 In file /home/lifj/software/cp2k-g95/cp2k/makefiles/../src/
f77_blas_netlib.F:2160

END MODULE
f77_blas_netlib
1
Error: Unclassifiable statement at (1)
Error: Unexpected end of file in '/home/lifj/software/cp2k-g95/cp2k/
makefiles/../src/f77_blas_netlib.F'
make[1]: *** [f77_blas_netlib.o] Error 1
make[1]: Leaving directory `/home/lifj/software/cp2k-g95/cp2k/obj/
Linux-x86-64-g95/popt'
make: *** [build] Error 2

So, I tried to compile the pdbg version, the arch file Linux-x86-64-
g95.pdbg is:

CC       = cc
CPP      =
FC       = mpif90
LD       = mpif90
AR       = ar -r
DFLAGS   = -D__G95 -D__FFTSG -D__parallel -D__BLACS -D__SCALAPACK -
D__FFTW3 -D__LIBINT
CPPFLAGS =
FCFLAGS  = $(DFLAGS) -I$(G95_INC) -ffast-math -march=opteron -ffree-
form -cpp -O1 -fbounds-check -ftrace=full -g
LDFLAGS  = $(FCFLAGS)
LIBS     = /home/lifj/software/cp2k-g95/scalapack-1.8.0/libscalapack.a
\
           /home/lifj/software/cp2k-g95/BLACS/LIB/blacsF77init_MPI-
LINUX-0.a \
           /home/lifj/software/cp2k-g95/BLACS/LIB/blacs_MPI-LINUX-0.a
\
           /home/lifj/software/cp2k-g95/lapack-3.2/lapack_LINUX.a \
           /home/lifj/software/cp2k-g95/lapack-3.2/blas_LINUX.a \
           /home/lifj/software/cp2k-g95/fftw-3.1.2/install/lib/
libfftw3.a \
           /home/lifj/software/cp2k-g95/libint-1.1.4/lib/libderiv.a \
           /home/lifj/software/cp2k-g95/libint-1.1.4/lib/libint.a \
           -lstdc++

OBJECTS_ARCHITECTURE = machine_g95.o

and the error information is:

make[1]: Entering directory `/home/lifj/software/cp2k-g95/cp2k/obj/
Linux-x86-64-g95/pdbg'
mpif90  -c -D__G95 -D__FFTSG -D__parallel -D__BLACS -D__SCALAPACK -
D__FFTW3 -D__LIBINT -I -ffast-math -march=opteron -ffree-form -cpp -O1
-fbounds-check -ftrace=full -g -D__COMPILE_ARCH="\"Linux-x86-64-g95\""
-D__COMPILE_DATE="\"Sat Jan 17 09:25:59 CST 2009\"" -
D__COMPILE_HOST="\"localhost.localdomain\"" -D__COMPILE_LASTCVS="\"/
xc_xpbe_hole_t_c_lr.F/1.2/Tue Jan 13 23:07:07 2009//\"" /home/lifj/
software/cp2k-g95/cp2k/makefiles/../src/f77_blas_poison.F
mpif90  -c -D__G95 -D__FFTSG -D__parallel -D__BLACS -D__SCALAPACK -
D__FFTW3 -D__LIBINT -I -ffast-math -march=opteron -ffree-form -cpp -O1
-fbounds-check -ftrace=full -g -D__COMPILE_ARCH="\"Linux-x86-64-g95\""
-D__COMPILE_DATE="\"Sat Jan 17 09:25:59 CST 2009\"" -
D__COMPILE_HOST="\"localhost.localdomain\"" -D__COMPILE_LASTCVS="\"/
xc_xpbe_hole_t_c_lr.F/1.2/Tue Jan 13 23:07:07 2009//\"" /home/lifj/
software/cp2k-g95/cp2k/makefiles/../src/f77_blas_generic.F
mpif90  -c -D__G95 -D__FFTSG -D__parallel -D__BLACS -D__SCALAPACK -
D__FFTW3 -D__LIBINT -I -ffast-math -march=opteron -ffree-form -cpp -O1
-fbounds-check -ftrace=full -g -D__COMPILE_ARCH="\"Linux-x86-64-g95\""
-D__COMPILE_DATE="\"Sat Jan 17 09:25:59 CST 2009\"" -
D__COMPILE_HOST="\"localhost.localdomain\"" -D__COMPILE_LASTCVS="\"/
xc_xpbe_hole_t_c_lr.F/1.2/Tue Jan 13 23:07:07 2009//\"" /home/lifj/
software/cp2k-g95/cp2k/makefiles/../src/f77_blas_extra.F
mpif90  -c -D__G95 -D__FFTSG -D__parallel -D__BLACS -D__SCALAPACK -
D__FFTW3 -D__LIBINT -I -ffast-math -march=opteron -ffree-form -cpp -O1
-fbounds-check -ftrace=full -g -D__COMPILE_ARCH="\"Linux-x86-64-g95\""
-D__COMPILE_DATE="\"Sat Jan 17 09:25:59 CST 2009\"" -
D__COMPILE_HOST="\"localhost.localdomain\"" -D__COMPILE_LASTCVS="\"/
xc_xpbe_hole_t_c_lr.F/1.2/Tue Jan 13 23:07:07 2009//\"" /home/lifj/
software/cp2k-g95/cp2k/makefiles/../src/f77_blas_netlib.F
f95: unrecognized option '-cpp'
cc1: error: unrecognized command line option "-ftrace=full"
make[1]: *** [f77_blas_poison.o] Error 1
make[1]: *** Waiting for unfinished jobs....
f95: unrecognized option '-cpp'
f95: unrecognized option '-cpp'
cc1: error: unrecognized command line option "-ftrace=full"
cc1: error: unrecognized command line option "-ftrace=full"
make[1]: *** [f77_blas_generic.o] Error 1
make[1]: *** [f77_blas_netlib.o] Error 1
f95: unrecognized option '-cpp'
cc1: error: unrecognized command line option "-ftrace=full"
make[1]: *** [f77_blas_extra.o] Error 1
make[1]: Leaving directory `/home/lifj/software/cp2k-g95/cp2k/obj/
Linux-x86-64-g95/pdbg'
make: *** [build] Error 2

Can anybody help me? It is driving me crazy!




More information about the CP2K-user mailing list