[CIG-SEISMO] specfem2d: mpif90 mac problem

Andrea Cortis Andrea.Cortis at iongeo.com
Tue Feb 26 15:26:29 PST 2013


Dear Developers,

I am encountering some problem with the installation of specfem2d on my mac machine.

I am using the version 4.6.2 for the gfortran (and mpif90) compiler.

I can compile fine with the config options:

./configure FC=gfortran

and run the compiled files with no problem.

When I use the mpif90 options, however, I get the following errors. Could you please advise? Many thanks in advance!

Best regards,

Andrea Cortis


acortis02-d:SPECFEM2D-7.0.0 acortis$ ./configure FC=gfortran MPIFC=mpif90 --with-mpi
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... yes
checking whether gfortran accepts -g... yes
configure: running /bin/sh flags.guess
checking how to get verbose linking output from gfortran... -v
checking for Fortran libraries of gfortran...  -L/sw/lib/gcc4.6/lib/gcc/x86_64-apple-darwin11.2.0/4.6.2 -L/sw/lib/gcc4.6/lib/gcc/x86_64-apple-darwin11.2.0/4.6.2/../../.. -lgfortran -lquadmath -lm
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 how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/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 emmintrin.h usability... yes
checking emmintrin.h presence... yes
checking for emmintrin.h... yes
checking xmmintrin.h usability... yes
checking xmmintrin.h presence... yes
checking for xmmintrin.h... yes
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
sed: 1: "scotch_5.1.12b/src/scot ...": bad flag in substitute command: '/'
sed: 1: "scotch_5.1.12b/src/libs ...": bad flag in substitute command: '/'
sed: 1: "scotch_5.1.12b/src/libs ...": bad flag in substitute command: '/'
checking whether mpif.h works... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/meshfem2D/Makefile
config.status: creating src/specfem2D/Makefile
config.status: creating setup/constants.h
config.status: creating setup/precision.h
config.status: creating src/meshfem2D/scotch_5.1.12b/src/Makefile.inc
config.status: creating setup/config.h
config.status: setup/config.h is unchanged

 acortis02-d:SPECFEM2D-7.0.0 acortis$ make all
(cd src/meshfem2D; make )
(echo "Using bundled Scotch")
Using bundled Scotch
(cd "scotch_5.1.12b/src"; make)
(cd libscotch ;      make VERSION=5 RELEASE=1 PATCHLEVEL=12 scotch && make install)
rm -f *~ *.o lib*.a parser_yy.c parser_ly.h parser_ll.c *scotch.h *scotchf.h y.output dummysizes
make CC="gcc" CCD="gcc" \
scotch.h \
scotchf.h \
libscotch.a \
libscotcherr.a \
libscotcherrexit.a
gcc -O3 -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_RENAME_PARSER -DSCOTCH_PTHREAD -Drestrict=__restrict -DSCOTCH_VERSION=5 -DSCOTCH_RELEASE=1 -DSCOTCH_PATCHLEVEL=12 dummysizes.c -o dummysizes -lz -lm -lrt -lpthread
ld: library not found for -lrt
collect2: ld returned 1 exit status
make[4]: *** [dummysizes] Error 1
make[3]: *** [scotch] Error 2
make[2]: *** [scotch] Error 2
make[1]: *** [scotch] Error 2
make: *** [xmeshfem2D] Error 2


_____________________________
Andrea Cortis, Ph.D.

Research Geophysicist
Quantitative Interpretation
ION GX Technology

andrea.cortis at iongeo.com<mailto:andrea.cortis at iongeo.com>
+1-281-781-1064

2105 CityWest Blvd., Suite 900
Houston, TX, 77042, USA
www.iongeo.com
_____________________________




________________________________

This email and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please immediately notify the sender and delete the original.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://geodynamics.org/pipermail/cig-seismo/attachments/20130226/439e5cdb/attachment.htm 


More information about the CIG-SEISMO mailing list