[CIG-SEISMO] help with installing specfem2d on MAC

Anton Gulley gullant at gmail.com
Tue Aug 6 19:41:13 PDT 2013


Hi There,

I am a PhD from the University of Auckland, New Zealand and I hope to use
specfem to simulate some synthetic seismograms in a fault zone.

I am having trouble getting specfem to work on my computer (OS X 10.8.4
(12E55))
I have specfem1d working fine, However I cant even seam to get the example
file working, let alone scotch.
would it be worth me getting linux installed on my computer.

I have printed the output of me compiling and the output of me trying to
"make all"

Thanks very much
Anton



sc-math-291151:SPECFEM2D agul013$ ./configure FC=gfortran
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 build system type... x86_64-apple-darwin12.4.0
checking host system type... x86_64-apple-darwin12.4.0
checking how to get verbose linking output from gfortran... -v
checking for Fortran libraries of gfortran...
 -L/usr/local/lib/gcc/i686-apple-darwin8/4.2.3
-L/usr/local/lib/gcc/i686-apple-darwin8/4.2.3/../../.. -lgfortranbegin
-lgfortran
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... unknown
configure: WARNING: unknown Fortran name-mangling scheme
checking for Fortran flag to compile .f90 files... none
checking for Fortran flag needed to accept free-form source... none
checking for Fortran flag to compile preprocessed .F files... none
checking how to define symbols for preprocessed Fortran... -D
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
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
------------------------------------------------------------------------------------------------------------
sc-math-291151:SPECFEM2D agul013$ make all
make -C src/meshfem2D
echo "Not using bundled Scotch"
Not using bundled Scotch
gcc -c -g -O2  -I../../setup -o ../../obj/param_reader.o
../shared/param_reader.c
../shared/param_reader.c:110: error: ‘FC_FUNC_’ declared as function
returning a function
../shared/param_reader.c: In function ‘FC_FUNC_’:
../shared/param_reader.c:115: error: ‘filename’ undeclared (first use in
this function)
../shared/param_reader.c:115: error: (Each undeclared identifier is
reported only once
../shared/param_reader.c:115: error: for each function it appears in.)
../shared/param_reader.c:115: error: ‘length’ undeclared (first use in this
function)
../shared/param_reader.c:122: error: ‘ierr’ undeclared (first use in this
function)
../shared/param_reader.c: At top level:
../shared/param_reader.c:130: error: ‘FC_FUNC_’ declared as function
returning a function
../shared/param_reader.c:130: error: redefinition of ‘FC_FUNC_’
../shared/param_reader.c:110: error: previous definition of ‘FC_FUNC_’ was
here
../shared/param_reader.c:136: error: ‘FC_FUNC_’ declared as function
returning a function
../shared/param_reader.c:136: error: redefinition of ‘FC_FUNC_’
../shared/param_reader.c:110: error: previous definition of ‘FC_FUNC_’ was
here
../shared/param_reader.c: In function ‘FC_FUNC_’:
../shared/param_reader.c:149: error: ‘name’ undeclared (first use in this
function)
../shared/param_reader.c:149: error: ‘name_len’ undeclared (first use in
this function)
../shared/param_reader.c:181: error: ‘ierr’ undeclared (first use in this
function)
../shared/param_reader.c:223: error: ‘string_read’ undeclared (first use in
this function)
../shared/param_reader.c:223: error: ‘string_read_len’ undeclared (first
use in this function)
../shared/param_reader.c: At top level:
../shared/param_reader.c:243: error: ‘FC_FUNC_’ declared as function
returning a function
../shared/param_reader.c:243: error: redefinition of ‘FC_FUNC_’
../shared/param_reader.c:110: error: previous definition of ‘FC_FUNC_’ was
here
../shared/param_reader.c: In function ‘FC_FUNC_’:
../shared/param_reader.c:256: error: ‘name’ undeclared (first use in this
function)
../shared/param_reader.c:256: error: ‘name_len’ undeclared (first use in
this function)
../shared/param_reader.c:306: error: ‘ierr’ undeclared (first use in this
function)
../shared/param_reader.c:332: error: ‘string_read’ undeclared (first use in
this function)
../shared/param_reader.c:332: error: ‘string_read_len’ undeclared (first
use in this function)
../shared/param_reader.c: At top level:
../shared/param_reader.c:352: error: ‘FC_FUNC_’ declared as function
returning a function
../shared/param_reader.c:352: error: redefinition of ‘FC_FUNC_’
../shared/param_reader.c:110: error: previous definition of ‘FC_FUNC_’ was
here
../shared/param_reader.c: In function ‘FC_FUNC_’:
../shared/param_reader.c:387: error: ‘ierr’ undeclared (first use in this
function)
../shared/param_reader.c:395: error: ‘string_read’ undeclared (first use in
this function)
../shared/param_reader.c:395: error: ‘string_read_len’ undeclared (first
use in this function)
make[1]: *** [../../obj/param_reader.o] Error 1
make: *** [xmeshfem2D] Error 2
------------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://geodynamics.org/pipermail/cig-seismo/attachments/20130807/22eb4ce1/attachment.html>


More information about the CIG-SEISMO mailing list