MPI_comm Error when Compilation Error 7.0.5
Posted: Thu Feb 07, 2013 7:09 am
Dear ALL:
In order to compile 7.0.5, I use the following configure:
./configure CC=mpicc CXX=mpicxx FC=mpif90 --prefix=/home/ML/software/abinit-7.0.5 --enable-mpi=yes --enable-mpi-io=yes --with-mpi-prefix=/home/ML/software/mpich3 --with-fft-flavor="fftw3" --enable-gw-dpc --with-fft-incs="-I/home/ML/software/fftw/include" --with-fft-libs="-L/home/ML/software/fftw/lib -lfftw3"
Usually, it works pretty well, and at the step of configure, it does not contain any error.
However, when make mj4, there is a problem like this:
Error: Name 'mpi_comm' at (1) is an ambiguous reference to 'mpi_comm' from current program unit
Makefile:843: recipe for target `accrho.o' failed
make[5]: *** [accrho.o] Error 1
make[5]: *** Waiting for unfinished jobs....
applypot.F90:78.57:
integer :: max1o,max2o,max3o,m1o,m2o,m3o,mpi_comm,nproc,iproc
1
Error: Name 'mpi_comm' at (1) is an ambiguous reference to 'mpi_comm' from current program unit
applypot.F90:251.55:
MPI_double_precision,mpi_comm,ierr)
1
Error: Name 'mpi_comm' at (1) is an ambiguous reference to 'mpi_comm' from current program unit
applypot.F90:431.55:
MPI_double_precision,mpi_comm,ierr)
1
Error: Name 'mpi_comm' at (1) is an ambiguous reference to 'mpi_comm' from current program unit
Makefile:843: recipe for target `applypot.o' failed
make[5]: *** [applypot.o] Error 1
make[5]: Leaving directory `/home/ML/software/abinit-7.0.5/src/52_fft_mpi_noabirule'
Makefile:802: recipe for target `all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/ML/software/abinit-7.0.5/src'
Makefile:1321: recipe for target `all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/ML/software/abinit-7.0.5'
Makefile:1243: recipe for target `all' failed
make[2]: Leaving directory `/home/ML/software/abinit-7.0.5'
Makefile:1843: recipe for target `multi' failed
make[1]: *** [multi] Error 2
make[1]: Leaving directory `/home/ML/software/abinit-7.0.5'
Makefile:1840: recipe for target `mj4' failed
make: *** [mj4] Error 2
Any suggestion? The system is cygwin in win7 64bit.
Thank you very much for any kind of help and suggestions!!!
In order to compile 7.0.5, I use the following configure:
./configure CC=mpicc CXX=mpicxx FC=mpif90 --prefix=/home/ML/software/abinit-7.0.5 --enable-mpi=yes --enable-mpi-io=yes --with-mpi-prefix=/home/ML/software/mpich3 --with-fft-flavor="fftw3" --enable-gw-dpc --with-fft-incs="-I/home/ML/software/fftw/include" --with-fft-libs="-L/home/ML/software/fftw/lib -lfftw3"
Usually, it works pretty well, and at the step of configure, it does not contain any error.
However, when make mj4, there is a problem like this:
Error: Name 'mpi_comm' at (1) is an ambiguous reference to 'mpi_comm' from current program unit
Makefile:843: recipe for target `accrho.o' failed
make[5]: *** [accrho.o] Error 1
make[5]: *** Waiting for unfinished jobs....
applypot.F90:78.57:
integer :: max1o,max2o,max3o,m1o,m2o,m3o,mpi_comm,nproc,iproc
1
Error: Name 'mpi_comm' at (1) is an ambiguous reference to 'mpi_comm' from current program unit
applypot.F90:251.55:
MPI_double_precision,mpi_comm,ierr)
1
Error: Name 'mpi_comm' at (1) is an ambiguous reference to 'mpi_comm' from current program unit
applypot.F90:431.55:
MPI_double_precision,mpi_comm,ierr)
1
Error: Name 'mpi_comm' at (1) is an ambiguous reference to 'mpi_comm' from current program unit
Makefile:843: recipe for target `applypot.o' failed
make[5]: *** [applypot.o] Error 1
make[5]: Leaving directory `/home/ML/software/abinit-7.0.5/src/52_fft_mpi_noabirule'
Makefile:802: recipe for target `all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/ML/software/abinit-7.0.5/src'
Makefile:1321: recipe for target `all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/ML/software/abinit-7.0.5'
Makefile:1243: recipe for target `all' failed
make[2]: Leaving directory `/home/ML/software/abinit-7.0.5'
Makefile:1843: recipe for target `multi' failed
make[1]: *** [multi] Error 2
make[1]: Leaving directory `/home/ML/software/abinit-7.0.5'
Makefile:1840: recipe for target `mj4' failed
make: *** [mj4] Error 2
Any suggestion? The system is cygwin in win7 64bit.
Thank you very much for any kind of help and suggestions!!!