<div dir="ltr">Hi There,<div><br></div><div style>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.</div><div style><br></div><div style>
I am having trouble getting specfem to work on my computer (<span style="font-family:'Lucida Grande';font-size:11px">OS X 10.8.4 (12E55))</span></div><div style>I have specfem1d working fine, However I cant even seam to get the example file working, let alone scotch.</div>
<div style>would it be worth me getting linux installed on my computer.<br></div><div style><br></div><div style>I have printed the output of me compiling and the output of me trying to "make all"</div><div style>
<br></div><div style>Thanks very much</div><div style>Anton<br></div><div style><br></div><div style><br></div><div style><br></div><div style><div>sc-math-291151:SPECFEM2D agul013$ ./configure FC=gfortran</div><div>checking whether the Fortran compiler works... yes</div>
<div>checking for Fortran compiler default output file name... a.out</div><div>checking for suffix of executables... </div><div>checking whether we are cross compiling... no</div><div>checking for suffix of object files... o</div>
<div>checking whether we are using the GNU Fortran compiler... yes</div><div>checking whether gfortran accepts -g... yes</div><div>configure: running /bin/sh flags.guess</div><div>checking build system type... x86_64-apple-darwin12.4.0</div>
<div>checking host system type... x86_64-apple-darwin12.4.0</div><div>checking how to get verbose linking output from gfortran... -v</div><div>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</div>
<div>checking for gcc... gcc</div><div>checking whether we are using the GNU C compiler... yes</div><div>checking whether gcc accepts -g... yes</div><div>checking for gcc option to accept ISO C89... none needed</div><div>
checking for dummy main to link with Fortran libraries... none</div><div>checking for Fortran name-mangling scheme... unknown</div><div>configure: WARNING: unknown Fortran name-mangling scheme</div><div>checking for Fortran flag to compile .f90 files... none</div>
<div>checking for Fortran flag needed to accept free-form source... none</div><div>checking for Fortran flag to compile preprocessed .F files... none</div><div>checking how to define symbols for preprocessed Fortran... -D</div>
<div>checking for gcc... (cached) gcc</div><div>checking whether we are using the GNU C compiler... (cached) yes</div><div>checking whether gcc accepts -g... (cached) yes</div><div>checking for gcc option to accept ISO C89... (cached) none needed</div>
<div>checking how to run the C preprocessor... gcc -E</div><div>checking for grep that handles long lines and -e... /usr/bin/grep</div><div>checking for egrep... /usr/bin/grep -E</div><div>checking for ANSI C header files... yes</div>
<div>checking for sys/types.h... yes</div><div>checking for sys/stat.h... yes</div><div>checking for stdlib.h... yes</div><div>checking for string.h... yes</div><div>checking for memory.h... yes</div><div>checking for strings.h... yes</div>
<div>checking for inttypes.h... yes</div><div>checking for stdint.h... yes</div><div>checking for unistd.h... yes</div><div>checking emmintrin.h usability... yes</div><div>checking emmintrin.h presence... yes</div><div>checking for emmintrin.h... yes</div>
<div>checking xmmintrin.h usability... yes</div><div>checking xmmintrin.h presence... yes</div><div>checking for xmmintrin.h... yes</div><div>checking for scotchfarchinit  in -lscotch... no</div><div>checking whether Scotch is usable... no, using bundled scotch instead</div>
<div>checking for flex... flex</div><div>checking lex output file root... lex.yy</div><div>checking lex library... none needed</div><div>checking whether yytext is a pointer... no</div><div>checking for bison... bison -y</div>
<div>configure: creating ./config.status</div><div>config.status: creating Makefile</div><div>config.status: creating src/meshfem2D/Makefile</div><div>config.status: creating src/specfem2D/Makefile</div><div>config.status: creating setup/constants.h</div>
<div>config.status: creating setup/precision.h</div><div>config.status: creating src/meshfem2D/scotch_5.1.12b/src/Makefile.inc</div><div>config.status: creating setup/config.h</div><div>config.status: setup/config.h is unchanged</div>
<div>------------------------------------------------------------------------------------------------------------</div><div>sc-math-291151:SPECFEM2D agul013$ make all</div><div>make -C src/meshfem2D</div><div>echo "Not using bundled Scotch"</div>
<div>Not using bundled Scotch</div><div>gcc -c -g -O2  -I../../setup -o ../../obj/param_reader.o ../shared/param_reader.c</div><div>../shared/param_reader.c:110: error: ‘FC_FUNC_’ declared as function returning a function</div>
<div>../shared/param_reader.c: In function ‘FC_FUNC_’:</div><div>../shared/param_reader.c:115: error: ‘filename’ undeclared (first use in this function)</div><div>../shared/param_reader.c:115: error: (Each undeclared identifier is reported only once</div>
<div>../shared/param_reader.c:115: error: for each function it appears in.)</div><div>../shared/param_reader.c:115: error: ‘length’ undeclared (first use in this function)</div><div>../shared/param_reader.c:122: error: ‘ierr’ undeclared (first use in this function)</div>
<div>../shared/param_reader.c: At top level:</div><div>../shared/param_reader.c:130: error: ‘FC_FUNC_’ declared as function returning a function</div><div>../shared/param_reader.c:130: error: redefinition of ‘FC_FUNC_’</div>
<div>../shared/param_reader.c:110: error: previous definition of ‘FC_FUNC_’ was here</div><div>../shared/param_reader.c:136: error: ‘FC_FUNC_’ declared as function returning a function</div><div>../shared/param_reader.c:136: error: redefinition of ‘FC_FUNC_’</div>
<div>../shared/param_reader.c:110: error: previous definition of ‘FC_FUNC_’ was here</div><div>../shared/param_reader.c: In function ‘FC_FUNC_’:</div><div>../shared/param_reader.c:149: error: ‘name’ undeclared (first use in this function)</div>
<div>../shared/param_reader.c:149: error: ‘name_len’ undeclared (first use in this function)</div><div>../shared/param_reader.c:181: error: ‘ierr’ undeclared (first use in this function)</div><div>../shared/param_reader.c:223: error: ‘string_read’ undeclared (first use in this function)</div>
<div>../shared/param_reader.c:223: error: ‘string_read_len’ undeclared (first use in this function)</div><div>../shared/param_reader.c: At top level:</div><div>../shared/param_reader.c:243: error: ‘FC_FUNC_’ declared as function returning a function</div>
<div>../shared/param_reader.c:243: error: redefinition of ‘FC_FUNC_’</div><div>../shared/param_reader.c:110: error: previous definition of ‘FC_FUNC_’ was here</div><div>../shared/param_reader.c: In function ‘FC_FUNC_’:</div>
<div>../shared/param_reader.c:256: error: ‘name’ undeclared (first use in this function)</div><div>../shared/param_reader.c:256: error: ‘name_len’ undeclared (first use in this function)</div><div>../shared/param_reader.c:306: error: ‘ierr’ undeclared (first use in this function)</div>
<div>../shared/param_reader.c:332: error: ‘string_read’ undeclared (first use in this function)</div><div>../shared/param_reader.c:332: error: ‘string_read_len’ undeclared (first use in this function)</div><div>../shared/param_reader.c: At top level:</div>
<div>../shared/param_reader.c:352: error: ‘FC_FUNC_’ declared as function returning a function</div><div>../shared/param_reader.c:352: error: redefinition of ‘FC_FUNC_’</div><div>../shared/param_reader.c:110: error: previous definition of ‘FC_FUNC_’ was here</div>
<div>../shared/param_reader.c: In function ‘FC_FUNC_’:</div><div>../shared/param_reader.c:387: error: ‘ierr’ undeclared (first use in this function)</div><div>../shared/param_reader.c:395: error: ‘string_read’ undeclared (first use in this function)</div>
<div>../shared/param_reader.c:395: error: ‘string_read_len’ undeclared (first use in this function)</div><div>make[1]: *** [../../obj/param_reader.o] Error 1</div><div>make: *** [xmeshfem2D] Error 2</div><div>------------------------------------------------------------------------------------------------</div>
</div></div>