[Pw_forum] QE 4.0.2: configure error

Sangamesh B forum.san at gmail.com
Tue Oct 21 11:51:09 CEST 2008


On Tue, Oct 21, 2008 at 3:00 PM, Lorenzo Paulatto <paulatto at sissa.it> wrote:
> Sangamesh B ha scritto:
>>   Unexpected syntax: "POINTER or DIMENSION" was expected but found
>> "ALLOCATABLE".
>>
> Dear Sangamesh,
> adding -D__GFORTRAN to the F90FLAGS in make.sys should solve this problem.
>
Added -D_GFORTRAN. Still the error persists:

make[1]: Leaving directory `/opt/espresso-4.0.2/flib'
if test -d PW ; then \
( cd PW ; if test "make" = "" ; then make  TLDEPS= all ; \
else make  TLDEPS= all ; fi ) ; fi
make[1]: Entering directory `/opt/espresso-4.0.2/PW'
test -n "" && ( cd .. ; make -w  || exit 1) || :
/lib/cpp -P --traditional -D__EKO -D__FFTW -D__USE_INTERNAL_FFTW
-D__MPI -D__PARA -I../include  noncol.f90 -o noncol.F90
mpif90 -march=auto -O2 -D__EKO -D__FFTW -D__USE_INTERNAL_FFTW -D__MPI
-D__PARA -I../include  -I./  -I../Modules  -I../iotk/src -I../PW
-I../PH -D__GFORTRAN -c noncol.F90 -o noncol.o
/lib/cpp -P --traditional -D__EKO -D__FFTW -D__USE_INTERNAL_FFTW
-D__MPI -D__PARA -I../include  pwscf.f90 -o pwscf.F90
mpif90 -march=auto -O2 -D__EKO -D__FFTW -D__USE_INTERNAL_FFTW -D__MPI
-D__PARA -I../include  -I./  -I../Modules  -I../iotk/src -I../PW
-I../PH -D__GFORTRAN -c pwscf.F90 -o pwscf.o
...

MODULE scf
       ^
pathf95-855 pathf90: ERROR SCF, File = scf_mod.F90, Line = 10, Column = 8
  The compiler has detected errors in module "SCF".  No module
information file will be created for this module.

     REAL(DP),   allocatable :: of_r(:,:)  ! the charge density in R-space
                 ^
pathf95-197 pathf90: ERROR SCF, File = scf_mod.F90, Line = 48, Column = 18
  Unexpected syntax: "POINTER or DIMENSION" was expected but found
"ALLOCATABLE".
                                ^
pathf95-190 pathf90: ERROR SCF, File = scf_mod.F90, Line = 48, Column = 33
  Component "OF_R" does not have a POINTER attribute so its dimension
must be an explicit-shape array with constant bounds.

     COMPLEX(DP),allocatable :: of_g(:,:)  ! the charge density in G-space
                 ^
pathf95-197 pathf90: ERROR SCF, File = scf_mod.F90, Line = 49, Column = 18
  Unexpected syntax: "POINTER or DIMENSION" was expected but found
"ALLOCATABLE".

......
pathf95-190 pathf90: ERROR SCF, File = scf_mod.F90, Line = 60, Column = 34
  Component "BEC" does not have a POINTER attribute so its dimension
must be an explicit-shape array with constant bounds.

pathf95: PathScale(TM) Fortran Version 2.4 (f14) Tue Oct 21, 2008  15:41:44
pathf95: 677 source lines
pathf95: 21 Error(s), 0 Warning(s), 0 Other message(s), 0 ANSI(s)
pathf95: "explain pathf95-message number" gives more information about
each message
make[1]: *** [scf_mod.o] Error 2
make[1]: Leaving directory `/opt/espresso-4.0.2/PW'
make: *** [pw] Error 2

I've attached here the make.sys and Makefile. Please have a look at it
for compatibilities.

Thanks,
sangamesh
> regards
>
>
> --
> Lorenzo Paulatto
> SISSA  &  DEMOCRITOS (Trieste)
> phone: +39 040 3787 511
> skype: paulatz
> www:   http://people.sissa.it/~paulatto/
>
>
> _______________________________________________
> Pw_forum mailing list
> Pw_forum at pwscf.org
> http://www.democritos.it/mailman/listinfo/pw_forum
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make.sys1
Type: application/octet-stream
Size: 4656 bytes
Desc: not available
URL: <http://lists.quantum-espresso.org/pipermail/users/attachments/20081021/bfb73e3a/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile1
Type: application/octet-stream
Size: 7047 bytes
Desc: not available
URL: <http://lists.quantum-espresso.org/pipermail/users/attachments/20081021/bfb73e3a/attachment-0001.obj>


More information about the users mailing list