On Wed, Oct 22, 2008 at 2:52 PM, Paolo Giannozzi <giannozz at democritos.it> wrote: > Sangamesh B wrote: > >> *checking for /opt/mpich2_107_GNU/bin/mpif90... no* >> >> Why its not detecting mpif90? > > either because it is not there, Its there: # which mpif90 /opt/mpich2_107_GNU/bin/mpif90
# echo $MPIF90 or because it is there and > it doesn't work, It works: # mpif90 samplempi.f -o sample # ./sample node 0 : Hello world or because configure doesn't like the name > with leading path. Put "/opt/mpich2_107_GNU/bin/" first in Removed MPIF90=/opt/mpich2_107_GNU/bin/mpif90 > your path and let configure detect "mpif90". > $PATH is set to MPICH2_GNU. >> configure: WARNING: serial/parallel compiler mismatch detected >> configure: WARNING: parallel compiler uses gfortran, but serial >> compiler is /usr/bin/gfortran >> >> I'm not getting why its telling mismatch? > > again: don't use full paths. I added the warning above for convenience, > to prevent problems in badly installed machines where mpif90 uses a > serial compiler that is not the first found in the path. It is just a > warning, it tells you to pay attention, what do you want more????? > >> Earlier, in the same cluster espresso-3.2 was working fine. I think >> there might be a problem with configure script itself. > > then please find the problem, if you can. I am confident that there > is no problem in the configure.ac script, but it cannot detect all > configurations on all machines. And please note that configure has > correctly recognized the pathscale compiler. It is not configure's > fault if the pathscale compiler is, like 99% of the commercial fortran > compilers, a piece of crap that cannot correctly compile a moderately > complex suite of codes. And in any event: Q-E has 1001 pieces, are you > sure that the one that doesn't work with pathscale is the one you > absolutely need? > After doing the the chamges as suggested by you, also the configure is failing: # ./configure --enable-mpi | tee config_GNU_412_out checking build system type... x86_64-unknown-linux-gnu checking architecture... amd64 checking for Fortran 77 compiler default output file name... a.out checking whether the Fortran 77 compiler works... yes checking whether we are cross compiling... yes checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU Fortran 77 compiler... yes checking whether /usr/bin/gfortran accepts -g... yes checking for mpif90... mpif90 checking whether we are using the GNU Fortran 77 compiler... yes checking whether mpif90 accepts -g... yes checking version of mpif90... unknown, assuming gfortran configure: WARNING: serial/parallel compiler mismatch detected configure: WARNING: parallel compiler mpif90 uses gfortran, but serial compiler is /usr/bin/gfortran setting F90... /usr/bin/gfortran setting MPIF90... mpif90 checking whether we are using the GNU C compiler... yes checking whether /usr/bin/gcc4 accepts -g... yes checking for /usr/bin/gcc4 option to accept ANSI C... none needed setting CC... /usr/bin/gcc4 checking how to run the C preprocessor... /lib/cpp checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for int *... yes checking size of int *... 8 checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking for struct mallinfo.arena... yes checking for /usr/bin/gfortran... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no setting F77... using F90... /usr/bin/gfortran setting FFLAGS... -O setting F90FLAGS... $(FFLAGS) setting FFLAGS_NOOPT... -O0 setting CFLAGS... -O3 setting CPP... /lib/cpp setting CPPFLAGS... setting LD... mpif90 setting LDFLAGS... setting AR... ar setting ARFLAGS... ruv setting ARFLAGS_DYNAMIC...ruv checking whether make sets $(MAKE)... yes checking whether Fortran files must be preprocessed... yes checking how to get verbose linking output from ... configure: WARNING: compilation failed checking for Fortran libraries of ... checking for dummy main to link with Fortran libraries... none checking for Fortran name-mangling scheme... configure: error: cannot compile a simple Fortran program See `config.log' for more details. What you say? > Paolo > -- > Paolo Giannozzi, Democritos and University of Udine, Italy > _______________________________________________ > Pw_forum mailing list > Pw_forum at pwscf.org > http://www.democritos.it/mailman/listinfo/pw_forum >
