Hi, all, I was able to get v10.0 to compile after removing the -fbounds-check. There were still lots of warnings with tdmt_invc_seisan, but the compilation did complete this run.
----- tdmt_invc_seisan ----- gcc -I../INC -o tdmt_invc_seisan tdmt_invc_seisan.c ../LIB/./seisan.a -lm tdmt_invc_seisan.c: In function 'main': tdmt_invc_seisan.c:62:16: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default] tdmt_invc_seisan.c:125:4: warning: incompatible implicit declaration of built-in function 'free' [enabled by default] tdmt_invc_seisan.c:194:4: warning: incompatible implicit declaration of built-in function 'free' [enabled by default] tdmt_invc_seisan.c: In function 'dsubmatrix': tdmt_invc_seisan.c:480:16: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default] tdmt_invc_seisan.c: In function 'free_dsubmatrix': tdmt_invc_seisan.c:495:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default] tdmt_invc_seisan.c: In function 'readhelm': tdmt_invc_seisan.c:783:22: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default] tdmt_invc_seisan.c: In function 'chkform': tdmt_invc_seisan.c:869:13: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default] tdmt_invc_seisan.c:880:16: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default] tdmt_invc_seisan.c:885:16: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default] tdmt_invc_seisan.c:903:16: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default] tdmt_invc_seisan.c:908:16: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default] tdmt_invc_seisan.c:927:16: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default] tdmt_invc_seisan.c:932:16: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default] tdmt_invc_seisan.c:947:16: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default] In file included from tdmt_invc_seisan.c:1049:0: ../INC/nrutil.h: At top level: ../INC/nrutil.h:64:6: warning: conflicting types for 'free_vector' [enabled by default] tdmt_invc_seisan.c:708:1: note: previous implicit declaration of 'free_vector' was here tdmt_invc_seisan.c:1072:0: warning: "SWAP" redefined [enabled by default] tdmt_invc_seisan.c:400:0: note: this is the location of the previous definition Thanks, Seth -----Original Message----- From: Jens Havskov [mailto:[email protected]] On Behalf Of Jens Havskov Sent: Wednesday, July 24, 2013 2:57 AM To: Branden Christensen Cc: gerardo; Carpenter, Seth; yunior; [email protected] Subject: Re: [seisan] HELP ME (ERROR 127) there is clearly a problem with tdmt_invc_seisan, which i have not been able to resolve. however if you compile without the -fbounds-check, it probably compiles, at least here it does. it is a mistake that -fbounds-check is included in the distribution, we only use it locally to continuously check for errrors. jens On Wed, 24 Jul 2013, Branden Christensen wrote: > Carmen and Seth: > > Buenas tardes. > > I tried compiling Seisan v.10 on Ubuntu 11.10 64-bit: > branden@branden:/opt$ uname -a > Linux branden 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC > 2011 > x86_64 x86_64 x86_64 GNU/Linux > branden@branden:/opt$ cat /etc/issue > Ubuntu 11.10 \n \l > > > Following this procedure: > sudo apt-get install gfortran libx11-xcb-dev cd /opt/ sudo mkdir > seismo sudo chown -R branden:branden seismo cd seismo wget > ftp://ftp.geo.uib.no/pub/seismo/SOFTWARE/SEISAN/seisan_v10.0_linux_64b > it.tar.gz > tar -xvf seisan_v10.0_linux_64bit.tar.gz nano COM/SEISAN.bash > CHANGES MADE: export SEISAN_TOP="/opt/seismo" > nano ~/.bashrc > CHANGES MADE: source /opt/seismo/COM/SEISAN.bash source ~/.bashrc > pr make ./all > > > Everything compiled fine for me until tdmt_invc_seisan (just like for > Carmen and Seth): > ... > ... > ... > ----- statstat ----- > gfortran -g -I../INC -fdollar-ok -fbounds-check -fno-automatic -o > statstat statstat.for ../LIB/./seisan.a > ----- stasei ----- > gfortran -g -I../INC -fdollar-ok -fbounds-check -fno-automatic -o > stasei stasei.for ../LIB/./seisan.a > ----- swarm ----- > gfortran -g -I../INC -fdollar-ok -fbounds-check -fno-automatic -o > swarm swarm.for ../LIB/./seisan.a > ----- tersei ----- > gfortran -g -I../INC -fdollar-ok -fbounds-check -fno-automatic -o > tersei tersei.for ../LIB/./seisan.a > ----- tsig ----- > gfortran -g -I../INC -fdollar-ok -fbounds-check -fno-automatic -o tsig > tsig.for ../LIB/./seisan.a > ----- tdmt_invc_seisan ----- > gcc -I../INC -o tdmt_invc_seisan tdmt_invc_seisan.c ../LIB/./seisan.a > -lm > tdmt_invc_seisan.c: In function ?main?: > tdmt_invc_seisan.c:62:16: warning: incompatible implicit declaration > of built-in function ?malloc? [enabled by default] > tdmt_invc_seisan.c:125:4: warning: incompatible implicit declaration > of built-in function ?free? [enabled by default] > tdmt_invc_seisan.c:194:4: warning: incompatible implicit declaration > of built-in function ?free? [enabled by default] > tdmt_invc_seisan.c: In function ?dsubmatrix?: > tdmt_invc_seisan.c:480:16: warning: incompatible implicit declaration > of built-in function ?malloc? [enabled by default] > tdmt_invc_seisan.c: In function ?free_dsubmatrix?: > tdmt_invc_seisan.c:495:2: warning: incompatible implicit declaration > of built-in function ?free? [enabled by default] > tdmt_invc_seisan.c: In function ?readhelm?: > tdmt_invc_seisan.c:775:4: warning: format ?%s?expects argument of type > ?char *?, but argument 6 has type ?char (*)[80]? [-Wformat] > tdmt_invc_seisan.c:783:22: warning: incompatible implicit declaration > of built-in function ?malloc? [enabled by default] > tdmt_invc_seisan.c: In function ?chkform?: > tdmt_invc_seisan.c:869:13: warning: incompatible implicit declaration > of built-in function ?exit? [enabled by default] > tdmt_invc_seisan.c:880:16: warning: incompatible implicit declaration > of built-in function ?exit? [enabled by default] > tdmt_invc_seisan.c:885:16: warning: incompatible implicit declaration > of built-in function ?exit? [enabled by default] > tdmt_invc_seisan.c:903:16: warning: incompatible implicit declaration > of built-in function ?exit? [enabled by default] > tdmt_invc_seisan.c:908:16: warning: incompatible implicit declaration > of built-in function ?exit? [enabled by default] > tdmt_invc_seisan.c:927:16: warning: incompatible implicit declaration > of built-in function ?exit? [enabled by default] > tdmt_invc_seisan.c:932:16: warning: incompatible implicit declaration > of built-in function ?exit? [enabled by default] > tdmt_invc_seisan.c:947:16: warning: incompatible implicit declaration > of built-in function ?exit? [enabled by default] In file included from > tdmt_invc_seisan.c:1049:0: > ../INC/nrutil.h: At top level: > ../INC/nrutil.h:64:6: warning: conflicting types for ?free_vector? > [enabled by default] > tdmt_invc_seisan.c:708:1: note: previous implicit declaration of ?free_vector? > was here > tdmt_invc_seisan.c:1072:0: warning: "SWAP" redefined [enabled by > default] > tdmt_invc_seisan.c:400:0: note: this is the location of the previous > definition > ../LIB/./seisan.a(fmap_subs.o): In function `fpsol_': > /opt/seismo/LIB/fmap_subs.for:269: undefined reference to > `_gfortran_runtime_error_at' > /opt/seismo/LIB/fmap_subs.for:269: undefined reference to > `_gfortran_runtime_error_at' > /opt/seismo/LIB/fmap_subs.for:269: undefined reference to > `_gfortran_runtime_error_at' > /opt/seismo/LIB/fmap_subs.for:269: undefined reference to > `_gfortran_runtime_error_at' > /opt/seismo/LIB/fmap_subs.for:269: undefined reference to > `_gfortran_runtime_error_at' > ../LIB/./seisan.a(fmap_subs.o):/opt/seismo/LIB/fmap_subs.for:269: more > undefined references to `_gfortran_runtime_error_at' follow > collect2: ld returned 1 exit status > make: *** [tdmt_invc_seisan] Error 1 > > > Many of the Google forums I am reading suggest that we are missing > "#include <stdlib.h>" (/usr/include/stdlib.h). > > > Kind Regards, > > > Branden Christensen [email protected] Volcan, Panama > > Follow OSOP > Facebook: http://www.facebook.com/osop.panama > Twitter: @OSOPSA > News Blog: http://www.osop.com.pa/blog/news The Seismo Guys Blog: > http://www.osop.com.pa/blog/the-seismo-guys/ > > "Starships were meant to fly" --Nicki Minaj > > > On Tue, Jul 23, 2013 at 3:57 PM, gerardo <[email protected]> wrote: > Sigo las instrucciones y sale el siguiente mensaje > > posgrado@linux-bbah:~/seismo/LIB> make ./clean > rm -f /*.o > rm -f /seisan.a > > despues de modificar el archivo .bashrc hago lo siguiente > > posgrado@linux-bbah:~/seismo/PRO> li > posgrado@linux-bbah:~/seismo/LIB> make ./all > ------------------------------------------------- > ---- COMPILING SEISAN 9.1 LIBRARIES - > > pero al hacerlo para PRO regresa el texto adjunto > > posgrado@linux-bbah:~/seismo/LIB> pr > posgrado@linux-bbah:~/seismo/PRO> make ./all cd ../LIB; make all; cd > ../PRO > make[1]: se ingresa al directorio `/home/posgrado/seismo/LIB' > ------------------------------------------------- > ---- COMPILING SEISAN 9.1 LIBRARIES ---------------- > ------------------------------------------------- > make[1]: se sale del directorio `/home/posgrado/seismo/LIB' > -------------------------------------------------- > ---- COMPILING SEISAN 9.0.1 PROGRAMS ----------------- > -------------------------------------------------- > ----- tdmt_invc_seisan ----- > gcc -I../INC -o gfortran/tdmt_invc_seisan tdmt_invc_seisan.c > ../LIB/gfortran/seisan.a -lm > tdmt_invc_seisan.c: In function ?main?: > tdmt_invc_seisan.c:62:16: warning: incompatible implicit declaration > of built-in function ?malloc? [enabled by default] > tdmt_invc_seisan.c:125:4: warning: incompatible implicit declaration > of built-in function ?free? [enabled by default] > tdmt_invc_seisan.c:194:4: warning: incompatible implicit declaration > of built-in function ?free? [enabled by default] > tdmt_invc_seisan.c: In function ?dsubmatrix?: > tdmt_invc_seisan.c:480:16: warning: incompatible implicit declaration > of built-in function ?malloc? [enabled by default] > tdmt_invc_seisan.c: In function ?free_dsubmatrix?: > tdmt_invc_seisan.c:495:2: warning: incompatible implicit declaration > of built-in function ?free? [enabled by default] > tdmt_invc_seisan.c: In function ?readhelm?: > tdmt_invc_seisan.c:783:22: warning: incompatible implicit declaration > of built-in function ?malloc? [enabled by default] > tdmt_invc_seisan.c: In function ?chkform?: > tdmt_invc_seisan.c:869:13: warning: incompatible implicit declaration > of built-in function ?exit? [enabled by default] > tdmt_invc_seisan.c:880:16: warning: incompatible implicit declaration > of built-in function ?exit? [enabled by default] > tdmt_invc_seisan.c:885:16: warning: incompatible implicit declaration > of built-in function ?exit? [enabled by default] > tdmt_invc_seisan.c:903:16: warning: incompatible implicit declaration > of built-in function ?exit? [enabled by default] > tdmt_invc_seisan.c:908:16: warning: incompatible implicit declaration > of built-in function ?exit? [enabled by default] > tdmt_invc_seisan.c:927:16: warning: incompatible implicit declaration > of built-in function ?exit? [enabled by default] > tdmt_invc_seisan.c:932:16: warning: incompatible implicit declaration > of built-in function ?exit? [enabled by default] > tdmt_invc_seisan.c:947:16: warning: incompatible implicit declaration > of built-in function ?exit? [enabled by default] In file included from > tdmt_invc_seisan.c:1049:0: > ../INC/nrutil.h: At top level: > ../INC/nrutil.h:64:6: warning: conflicting types for ?free_vector? > [enabled by default] > tdmt_invc_seisan.c:708:1: note: previous implicit declaration of > ?free_vector? was here > tdmt_invc_seisan.c:1072:0: warning: "SWAP" > redefined [enabled by default] > tdmt_invc_seisan.c:400:0: note: this is the location of the previous > definition > ../LIB/gfortran/seisan.a(fmap_subs.o): > In function `fpsol_': > /home/posgrado/seismo/LIB/fmap_subs.for:269: > undefined reference to > `_gfortran_runtime_error_at' > /home/posgrado/seismo/LIB/fmap_subs.for:269: > undefined reference to > `_gfortran_runtime_error_at' > /home/posgrado/seismo/LIB/fmap_subs.for:269: > undefined reference to > `_gfortran_runtime_error_at' > /home/posgrado/seismo/LIB/fmap_subs.for:269: > undefined reference to > `_gfortran_runtime_error_at' > /home/posgrado/seismo/LIB/fmap_subs.for:269: > undefined reference to > `_gfortran_runtime_error_at' > ../LIB/gfortran/seisan.a(fmap_subs.o): > /home/posgrado/seismo/LIB/fmap_subs.for:269: > more undefined references to `_gfortran_runtime_error_at' follow > collect2: error: ld returned 1 exit status > make: *** [gfortran/tdmt_invc_seisan] Error 1 > > > > > _______________________________________________ > seisan mailing list > [email protected] > http://mailman.uib.no/listinfo/seisan > > > > _______________________________________________ seisan mailing list [email protected] http://mailman.uib.no/listinfo/seisan
