[CIG-SEISMO] SPECFEM3D install

Bernhard Schuberth mail at bernhard-schuberth.de
Wed Jul 6 09:05:12 PDT 2011


Hi Saleem, hi Daniel,

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.

This is just out of my head, so maybe I am wrong. But perhaps this helps to solve the problem.

Cheers,

Bernhard 



__________________________________

Dr. Bernhard Schuberth
UMR GéoAzur
250 Rue Albert Einstein
06560 Valbonne, France

Phone:	+33-492-94-2623
E-Mail:	mail at bernhard-schuberth.de
Info:	www.bernhard-schuberth.de
	www.geoazur.fr



On Jul 6, 2011, at 5:43 PM, daniel peter wrote:

> Hi Saleem,
> 
> 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 :
> 
> for ifort:
> ./configure F90=ifort MPIF90=/usr/local/openmpi/1.4.3/intel111/x86_64/bin/mpif90
> 
> for gfortran:
> ./configure F90=gfortran MPIF90=/usr/local/openmpi/1.4.3/gcc/x86_64/bin/mpif90
> 
> to see if your mpif90 works, try to compile the little example program given in the manual_SPECFEM3D.pdf, Appendix C:
> 
> program main 
> include ’mpif.h’ 
> integer, parameter :: CUSTOM_MPI_TYPE = MPI_REAL 
> integer ier 
> call MPI_INIT(ier) 
> call MPI_BARRIER(MPI_COMM_WORLD,ier) 
> call MPI_FINALIZE(ier) 
> end 
> 
> 
> save this as test_mpi.f90
> 
> then see if:
> 
> > mpif90 -o test_mpi test_mpi.f90
> 
> works or if you need something like
> 
> > /usr/local/openmpi/1.4.3/intel111/x86_64/bin/mpif90 -o test_mpi test_mpi.f90
> 
> for it to compile. then use this as configuration option 
> 
> ./configure F90=ifort MPIF90=/usr/local/openmpi/1.4.3/intel111/x86_64/bin/mpif90
> 
> hope this helps out a bit.
> 
> best wishes,
> daniel
> 
> 
> 
> 
> 
> 
> On Jul 6, 2011, at 4:39 AM, saleem iqbal wrote:
> 
>> Dear Sir 
>> 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
>> [root at localhost SPECFEM3D]# ./configure FC=ifort MPIFC=mpif90
>> checking whether the Fortran compiler works... yes
>> checking for Fortran compiler default output file name... a.out
>> checking for suffix of executables... 
>> checking whether we are cross compiling... no
>> checking for suffix of object files... o
>> checking whether we are using the GNU Fortran compiler... no
>> checking whether ifort accepts -g... yes
>> configure: running /bin/sh flags.guess
>> checking how to get verbose linking output from ifort... -v
>> 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
>> checking for gcc... gcc
>> checking whether we are using the GNU C compiler... yes
>> checking whether gcc accepts -g... yes
>> checking for gcc option to accept ISO C89... none needed
>> checking for dummy main to link with Fortran libraries... none
>> checking for Fortran name-mangling scheme... lower case, underscore, no extra underscore
>> checking for Fortran flag to compile .f90 files... none
>> checking for Fortran flag needed to accept free-form source... none
>> checking for gcc... (cached) gcc
>> checking whether we are using the GNU C compiler... (cached) yes
>> checking whether gcc accepts -g... (cached) yes
>> checking for gcc option to accept ISO C89... (cached) none needed
>> checking for scotchfarchinit  in -lscotch... no
>> checking whether Scotch is usable... no, using bundled scotch instead
>> checking for flex... flex
>> checking lex output file root... lex.yy
>> checking lex library... none needed
>> checking whether yytext is a pointer... no
>> checking for bison... bison -y
>> checking build system type... i686-pc-linux-gnu
>> checking host system type... i686-pc-linux-gnu
>> checking for the pthreads library -lpthreads... no
>> checking whether pthreads work without any flags... no
>> checking whether pthreads work with -Kthread... no
>> checking whether pthreads work with -kthread... no
>> checking for the pthreads library -llthread... no
>> checking whether pthreads work with -pthread... yes
>> checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
>> checking if more special flags are required for pthreads... no
>> pthread found
>> checking whether mpif.h works... no
>> configure: error: in `/root/Desktop/SPECFEM3D':
>> configure: error: cannot compile a trivial MPI program using mpif90
>> See `config.log' for more details
>> [root at localhost SPECFEM3D]# 
>> 
>> Kindly help me out. An error file is also attached.
>> Hoping for a positive response.
>> Regards 
>> Saleem Iqbal
>> We explore the hidden treasures of the Earth.
>> <Error file.txt>_______________________________________________
>> CIG-SEISMO mailing list
>> CIG-SEISMO at geodynamics.org
>> http://geodynamics.org/cgi-bin/mailman/listinfo/cig-seismo
> 
> _______________________________________________
> CIG-SEISMO mailing list
> CIG-SEISMO at geodynamics.org
> http://geodynamics.org/cgi-bin/mailman/listinfo/cig-seismo

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://geodynamics.org/pipermail/cig-seismo/attachments/20110706/4af93e02/attachment.htm 


More information about the CIG-SEISMO mailing list