<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Saleem, hi Daniel,<div><br></div><div>I encountered the same problem quite a while ago, and if I remember correctly, it was related to the usage of the ifort option "-e95". It seems that some MPI installation do use some old declaration of the form "CHARACTER*8" or similar, which are treated as errors when -e95 is set. However, in the most recent versions of flags.guess, this option was not used any more.</div><div><br></div><div>This is just out of my head, so maybe I am wrong. But perhaps this helps to solve the problem.</div><div><br></div><div>Cheers,</div><div><br></div><div>Bernhard </div><div><div><br></div><div><br></div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div>__________________________________</div><div><div><br></div><div>Dr. Bernhard Schuberth</div><div>UMR GéoAzur</div><div>250 Rue Albert Einstein</div><div>06560 Valbonne, France</div><div><br></div><div>Phone:<span class="Apple-tab-span" style="white-space: pre; ">        </span>+33-492-94-2623</div><div>E-Mail:<span class="Apple-tab-span" style="white-space: pre; ">        </span><a href="mailto:mail@bernhard-schuberth.de">mail@bernhard-schuberth.de</a></div><div>Info:<span class="Apple-tab-span" style="white-space: pre; ">        </span><a href="http://www.bernhard-schuberth.de">www.bernhard-schuberth.de</a></div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span><a href="http://www.geoazur.fr">www.geoazur.fr</a></div><div><br></div></div></span><br class="Apple-interchange-newline">
</div>
<br><div><div>On Jul 6, 2011, at 5:43 PM, daniel peter wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Saleem,<div><br></div><div>probably your mpif90 option is not correct. check your installation of MPI wrappers and fortran compilers, then try to change the configuration options accordingly. sometimes it helps to use absolute paths, like :</div><div><br></div><div>for ifort:</div><div><div>./configure F90=ifort MPIF90=/usr/local/openmpi/1.4.3/intel111/x86_64/bin/mpif90</div></div><div><br></div><div>for gfortran:</div><div>./configure F90=gfortran MPIF90=/usr/local/openmpi/1.4.3/gcc/x86_64/bin/mpif90</div><div><br></div><div>to see if your mpif90 works, try to compile the little example program given in the manual_SPECFEM3D.pdf, Appendix C:</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Helvetica; ">program main<span style="font: 12.0px Helvetica"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Helvetica; ">include ’mpif.h’<span style="font: 12.0px Helvetica"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Helvetica; ">integer, parameter :: CUSTOM_MPI_TYPE = MPI_REAL<span style="font: 12.0px Helvetica"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Helvetica; ">integer ier<span style="font: 12.0px Helvetica"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Helvetica; ">call MPI_INIT(ier)<span style="font: 12.0px Helvetica"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Helvetica; ">call MPI_BARRIER(MPI_COMM_WORLD,ier)<span style="font: 12.0px Helvetica"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Helvetica; ">call MPI_FINALIZE(ier)<span style="font: 12.0px Helvetica"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Helvetica; ">end<span style="font: 12.0px Helvetica"> </span></div></div><div><span style="font: 12.0px Helvetica"><br></span></div><div><br></div><div>save this as test_mpi.f90</div><div><br></div><div>then see if:</div><div><br></div><div>> mpif90 -o test_mpi test_mpi.f90</div><div><br></div><div>works or if you need something like</div><div><br></div><div>> /usr/local/openmpi/1.4.3/intel111/x86_64/bin/mpif90 -o test_mpi test_mpi.f90</div><div><br></div><div>for it to compile. then use this as configuration option </div><div><br></div><div>./configure F90=ifort MPIF90=/usr/local/openmpi/1.4.3/intel111/x86_64/bin/mpif90</div><div><br></div><div>hope this helps out a bit.</div><div><br></div><div>best wishes,</div><div>daniel</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br><div><div>On Jul 6, 2011, at 4:39 AM, saleem iqbal wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><table cellspacing="0" cellpadding="0" border="0" style="position: static; z-index: auto; "><tbody><tr><td valign="top" style="font: inherit;"><font class="Apple-style-span" face="arial" size="2">Dear Sir </font><div style="font-family: arial; font-size: 10pt; ">I am Saleem Iqbal from Pakistan. I downloaded the SPECFEM3D from your website. Thanks alot for making it freely available at your site. I tried to install the software on a system with ifort and mpif90 compilers but failed the following is displayed when i try to configure</div><div><div><font class="Apple-style-span" face="arial" size="2">[root@localhost SPECFEM3D]# ./configure FC=ifort MPIFC=mpif90</font></div><div><font class="Apple-style-span" face="arial" size="2">checking whether the Fortran compiler works... yes</font></div><div><font class="Apple-style-span" face="arial" size="2">checking for Fortran compiler default output file name... a.out</font></div><div><font class="Apple-style-span" face="arial" size="2">checking for suffix of executables... </font></div><div><font class="Apple-style-span" face="arial" size="2">checking whether we are cross compiling... no</font></div><div><font class="Apple-style-span" face="arial" size="2">checking for suffix of object files... o</font></div><div><font class="Apple-style-span" face="arial" size="2">checking whether we are using the GNU Fortran compiler... no</font></div><div><font class="Apple-style-span" face="arial" size="2">checking whether ifort accepts -g... yes</font></div><div><font class="Apple-style-span" face="arial" size="2">configure: running /bin/sh flags.guess</font></div><div><font class="Apple-style-span" face="arial" size="2">checking how to get verbose linking output from ifort... -v</font></div><div><font class="Apple-style-span" face="arial" size="2">checking for Fortran libraries of ifort... -L/opt/intel/composerxe-2011.2.137/compiler/lib/ia32 -L/opt/intel/composerxe-2011.2.137/mkl/lib/ia32 -L/opt/intel/composerxe-2011.2.137/compiler/lib/ia32/ -L/opt/intel/composerxe-2011.2.137/mkl/lib/ia32/ -L/usr/lib/gcc/i386-redhat-linux/4.1.1/ -L/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../ -L/lib/ -L/usr/lib -lifport -lifcore -limf -lsvml -lm -lipgo -lirc -lirc_s -ldl</font></div><div><font class="Apple-style-span" face="arial" size="2">checking for gcc... gcc</font></div><div><font class="Apple-style-span" face="arial" size="2">checking whether we are using the GNU C compiler... yes</font></div><div><font class="Apple-style-span" face="arial" size="2">checking whether gcc accepts -g... yes</font></div><div><font class="Apple-style-span" face="arial" size="2">checking for gcc option to accept ISO C89... none needed</font></div><div><font class="Apple-style-span" face="arial" size="2">checking for dummy main to link with Fortran libraries... none</font></div><div><font class="Apple-style-span" face="arial" size="2">checking for Fortran name-mangling scheme... lower case, underscore, no extra underscore</font></div><div><font class="Apple-style-span" face="arial" size="2">checking for Fortran flag to compile .f90 files... none</font></div><div><font class="Apple-style-span" face="arial" size="2">checking for Fortran flag needed to accept free-form source... none</font></div><div><font class="Apple-style-span" face="arial" size="2">checking for gcc... (cached) gcc</font></div><div><font class="Apple-style-span" face="arial" size="2">checking whether we are using the GNU C compiler... (cached) yes</font></div><div><font class="Apple-style-span" face="arial" size="2">checking whether gcc accepts -g... (cached) yes</font></div><div><font class="Apple-style-span" face="arial" size="2">checking for gcc option to accept ISO C89... (cached) none needed</font></div><div><font class="Apple-style-span" face="arial" size="2">checking for scotchfarchinit in -lscotch... no</font></div><div><font class="Apple-style-span" face="arial" size="2">checking whether Scotch is usable... no, using bundled scotch instead</font></div><div><font class="Apple-style-span" face="arial" size="2">checking for flex... flex</font></div><div><font class="Apple-style-span" face="arial" size="2">checking lex output file root... lex.yy</font></div><div><font class="Apple-style-span" face="arial" size="2">checking lex library... none needed</font></div><div><font class="Apple-style-span" face="arial" size="2">checking whether yytext is a pointer... no</font></div><div><font class="Apple-style-span" face="arial" size="2">checking for bison... bison -y</font></div><div><font class="Apple-style-span" face="arial" size="2">checking build system type... i686-pc-linux-gnu</font></div><div><font class="Apple-style-span" face="arial" size="2">checking host system type... i686-pc-linux-gnu</font></div><div><font class="Apple-style-span" face="arial" size="2">checking for the pthreads library -lpthreads... no</font></div><div><font class="Apple-style-span" face="arial" size="2">checking whether pthreads work without any flags... no</font></div><div><font class="Apple-style-span" face="arial" size="2">checking whether pthreads work with -Kthread... no</font></div><div><font class="Apple-style-span" face="arial" size="2">checking whether pthreads work with -kthread... no</font></div><div><font class="Apple-style-span" face="arial" size="2">checking for the pthreads library -llthread... no</font></div><div><font class="Apple-style-span" face="arial" size="2">checking whether pthreads work with -pthread... yes</font></div><div><font class="Apple-style-span" face="arial" size="2">checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE</font></div><div><font class="Apple-style-span" face="arial" size="2">checking if more special flags are required for pthreads... no</font></div><div><font class="Apple-style-span" face="arial" size="2">pthread found</font></div><div><font class="Apple-style-span" face="arial" size="2">checking whether mpif.h works... no</font></div><div><font class="Apple-style-span" face="arial" size="2">configure: error: in `/root/Desktop/SPECFEM3D':</font></div><div><font class="Apple-style-span" face="arial" size="2">configure: error: cannot compile a trivial MPI program using mpif90</font></div><div><font class="Apple-style-span" face="arial" size="2">See `config.log' for more details</font></div><div><font class="Apple-style-span" face="arial" size="2">[root@localhost SPECFEM3D]# </font></div><div style="font-family: arial; font-size: 10pt; "><br></div>Kindly help me out. An error file is also attached.</div><div>Hoping for a positive response.</div><div>Regards </div><div>Saleem Iqbal<br><div style="font-family: arial; font-size: 10pt; "><strong><font style="BACKGROUND-COLOR:#ff0000;"><font color="#0000bf">We explore the hidden treasures of the Earth</font>.</font></strong></div></div></td></tr></tbody></table><span><Error file.txt></span>_______________________________________________<br>CIG-SEISMO mailing list<br><a href="mailto:CIG-SEISMO@geodynamics.org">CIG-SEISMO@geodynamics.org</a><br><a href="http://geodynamics.org/cgi-bin/mailman/listinfo/cig-seismo">http://geodynamics.org/cgi-bin/mailman/listinfo/cig-seismo</a><br></blockquote></div><br></div></div>_______________________________________________<br>CIG-SEISMO mailing list<br><a href="mailto:CIG-SEISMO@geodynamics.org">CIG-SEISMO@geodynamics.org</a><br>http://geodynamics.org/cgi-bin/mailman/listinfo/cig-seismo<br></blockquote></div><br></div></div></body></html>