Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with compilation of some Fortran code

Status
Not open for further replies.

phu004

Technical User
Apr 8, 2014
1
NZ
Hi Guys,

I was trying to compile a piece of software written in fortran on my 64bits ubuntu 13.10. I followed the author's instruction from downloaded his independent SAC library (iSACio) from his home page ( But Unfortunately my compilation failed half way through. (Please see the compilation message below. )

Could anyone give me some advice on what I am doing wrong here?

Thanks in advance!

Code:
fos@sstestlab6:~/Downloads/Rftn.Codes.Export$ sudo csh build.it.csh > log2.txt
mkdir: cannot create directory ‘./bin’: File exists
   ask:
   asktxt:
   blank:
   coef8:
   coefsh:
   coord:
   daymo:
   dfftr:
   diffr:
   dot:
   doy:
   fft:
   fsorce:
   g1:
   g2:
   h12:
   iask:
   iniocm:
   juli:
   locast:
   lpyr:
   max:
   minmax:
   npowr2:
   qrbd:
   rdlyrs:
   rotate:
   sacio:
   seisio:
   sinc:
   sit2:
Warning on line 223: local variable test never used
   svdrs:
   yesno:
   zero:
   MAIN pwaveqn:
   window:
   MAIN:
   blank:
   vslow:
   cphs:
   rcvrfn:
   ifmat:
Warning on line 299: local variable test never used
Warning on line 1: local variable eps never used
Warning on line 1: local variable zero never used
Warning on line 1: local variable quartr never used
   qabm:
   vabm:
   MAIN:
Warning on line 205: local variable splt never used
   MAIN:
Warning on line 205: local variable splt never used
   MAIN vstack:
   blank:
   MAIN modstat:
Warning on line 80: local variable fil never used
Warning on line 80: local variable fileout never used
   blank:
   MAIN modstat:
Warning on line 80: local variable fil never used
Warning on line 80: local variable fileout never used
   blank:
   MAIN manyvplot:
   blank:
   MAIN vplot:
Warning on line 37: local variable qp never used
Warning on line 37: local variable qs never used
   MAIN ppstime:
Warning on line 45: local variable qp never used
Warning on line 45: local variable qs never used
   MAIN manyinv:
   rand0:
   cubic:
   jinv:
Warning on line 319: local variable wk never used
Warning on line 319: local variable yesno never used
   getmodl:
   getseis:
Warning on line 50: local variable yesno never used
   jsoln:
   wrtsoln:
Warning on line 26: local variable il never used
   putsyn:
Warning on line 23: local variable yesno never used
   putpartl:
   sacin:
   sacout:
Warning on line 74: local variable user0 never used
Warning on line 74: local variable user1 never used
   minmax:
   partials:
Warning on line 141: local variable rn never used
   spartials:
Warning on line 187: local variable lyroff never used
   qabm:
   vabm:
   delifm:
   delrcv:
Warning on line 536: local variable two never used
   ifmat:
Warning on line 1308: local variable test never used
Warning on line 1010: local variable eps never used
Warning on line 1010: local variable zero never used
Warning on line 1010: local variable quartr never used
   vslow:
   cphs:
   rcvind:
Warning on line 1332: local variable two never used
   rcvrdcn:
Warning on line 1850: local variable rn never used
Warning on line 1850: local variable plyr never used
Warning on line 1850: local variable perta never used
Warning on line 1850: local variable pertb never used
Warning on line 1850: local variable pertr never used
   rcvrfn:
   rcvrtd:
Warning on line 2197: local variable eps never used
Warning on line 2197: local variable two never used
Warning on line 2197: local variable quartr never used
   sfpartials:
Warning on line 2470: inconsistent calling sequences for sfpartials,
	arg 1: here complex variable, previously real variable.
Warning on line 2586: local variable rn never used
Warning on line 2586: local variable lyroff never used
   sfrcvrdcn:
Warning on line 2697: local variable rn never used
Warning on line 2697: local variable plyr never used
Warning on line 2697: local variable perta never used
Warning on line 2697: local variable pertb never used
Warning on line 2697: local variable pertr never used
Warning on line 2697: local variable lyroff never used
   srcvrdcn:
Warning on line 2711: inconsistent calling sequences for sfrcvrdcn,
	arg 1: here real variable, previously complex variable.
   dfftr:
Warning on line 2766: inconsistent calling sequences for dfftr,
	arg 1: here real variable, previously complex variable.
   fft:
   lowcas:
rftn_partials.f:2450:22: error: conflicting types for ‘sfpartials_’
      *                      nlmax, dt, ntmax,
                      ^
rftn_partials.f:155:33: note: previous declaration of ‘sfpartials_’ was here
       nft = 512
                                 ^
rftn_partials.f:2727:22: error: conflicting types for ‘dfftr_’
 c                                              a.shakal, 1/78, 15 jul 80
                      ^
rftn_partials.f:2623:18: note: previous declaration of ‘dfftr_’ was here
       delf = 2. * fny / nft
                  ^
/usr/bin/f77: aborting compilation
make: *** [rftn_partials.o] Error 25
fos@sstestlab6:~/Downloads/Rftn.Codes.Export$
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top