Hi,<br><br> Today I'm trying to build QE-4.0.2 from GNU compilers. Installed mpich2-1.0.7 with gcc4 and gfortran.<br><br> When I try to configure QE, its failing. The output of configure is:<br><br>[root@deepblue espresso-4.0.2_GNU]# ./configure | tee config_GNU<br>
checking build system type... x86_64-unknown-linux-gnu<br>checking architecture... amd64<br>checking for Fortran 77 compiler default output file name... a.out<br>checking whether the Fortran 77 compiler works... yes<br>checking whether we are cross compiling... yes<br>
checking for suffix of executables...<br>checking for suffix of object files... o<br>checking whether we are using the GNU Fortran 77 compiler... yes<br>checking whether /usr/bin/gfortran accepts -g... yes<br><b>checking for /opt/mpich2_107_GNU/bin/mpif90... no</b><br>
<br>Why its not detecting mpif90?<br><br>checking whether we are using the GNU Fortran 77 compiler... no<br>checking whether accepts -g... no<br>checking version of ... unknown, assuming gfortran<br>configure: WARNING: serial/parallel compiler mismatch detected<br>
configure: WARNING: parallel compiler uses gfortran, but serial compiler is /usr/bin/gfortran<br><br>I'm not getting why its telling mismatch?<br><br>setting F90... /usr/bin/gfortran<br>setting MPIF90...<br>checking whether we are using the GNU C compiler... yes<br>
checking whether /usr/bin/gcc4 accepts -g... yes<br>checking for /usr/bin/gcc4 option to accept ANSI C... none needed<br>setting CC... /usr/bin/gcc4<br>checking how to run the C preprocessor... /usr/bin/gcc4 -E<br>checking for egrep... grep -E<br>
checking for ANSI C header files... yes<br>checking for sys/types.h... yes<br>checking for sys/stat.h... yes<br>checking for stdlib.h... yes<br>checking for string.h... yes<br>checking for memory.h... yes<br>checking for strings.h... yes<br>
checking for inttypes.h... yes<br>checking for stdint.h... yes<br>checking for unistd.h... yes<br>checking for int *... yes<br>checking size of int *... 8<br>checking malloc.h usability... yes<br>checking malloc.h presence... yes<br>
checking for malloc.h... yes<br>checking for struct mallinfo.arena... yes<br>checking for /usr/bin/gfortran... no<br>checking whether we are using the GNU Fortran 77 compiler... no<br>checking whether accepts -g... no<br>
setting F77...<br>using F90... /usr/bin/gfortran<br>setting FFLAGS... -O<br>setting F90FLAGS... $(FFLAGS)<br>setting FFLAGS_NOOPT... -O0<br>setting CFLAGS... -O3<br>setting CPP... cpp<br>setting CPPFLAGS... -P -traditional<br>
setting LD...<br>setting LDFLAGS...<br>setting AR... ar<br>setting ARFLAGS... ruv<br>setting ARFLAGS_DYNAMIC...ruv<br>checking whether make sets $(MAKE)... yes<br>checking whether Fortran files must be preprocessed... yes<br>
checking how to get verbose linking output from ... configure: WARNING: compilation failed<br><br>checking for Fortran libraries of ...<br>checking for dummy main to link with Fortran libraries... none<br>checking for Fortran name-mangling scheme... configure: error: cannot compile a simple Fortran program<br>
See `config.log' for more details.<br><br>Earlier, in the same cluster espresso-3.2 was working fine. I think there might be a problem with configure script itself.<br><br>Thanks,<br>Sangamesh<br><br>On Tue, Oct 21, 2008 at 5:58 PM, O. Baris Malcioglu <<a href="mailto:baris.malcioglu@gmail.com">baris.malcioglu@gmail.com</a>> wrote:<br>
> Sangamesh B wrote:<br>>> Hi,<br>>><br>> Hello Sangamesh,<br>><br>>> Its giving segmentation fault for the given examples.<br>><br>> Some compilers suppress allocate() problems silently.<br>
><br>> This might also mean that you do not have (access to) enough free memory<br>> on the computer you are running example on.<br>><br>><br>> You might either play with compiler flags depending on your compiler or<br>
> try adding something like<br>> if (.not. allocated(some_array_you_are_suspicious_of)) call errore<br>> ('allocate','array not properly allocated',1)<br>><br>> in the routines that are responsible allocating memory space for arrays<br>
> i.e.:<br>> allocate_fft<br>> allocate_locpot<br>> allocate_nlpot<br>> allocate_wfc<br>> ...<br>><br>> Sincerely,<br>><br>> _______________________________<br>> | ``::::%%%%%%%%%HHH|<br>
> | O. Baris Malcioglu ::::::::%%%%%%|<br>> | ``:::::::::%|<br>> | SISSA `````:|<br>> | via Beirut, 2-4 34014 Trieste TS, |<br>
> | ITALY |<br>> | T: +39 040 378 73 74 |<br>> |:. F: +39 +39 040 3787 528 |<br>> |%:::::::::.. |<br>
> |%%%%%%::::::::.. <a href="mailto:mbaris@sissa.it">mbaris@sissa.it</a> |<br>> |HHH%%%%%%%%:::::::::......________________________|<br>> _______________________________________________<br>> Pw_forum mailing list<br>
> <a href="mailto:Pw_forum@pwscf.org">Pw_forum@pwscf.org</a><br>> <a href="http://www.democritos.it/mailman/listinfo/pw_forum">http://www.democritos.it/mailman/listinfo/pw_forum</a><br>><br><br>