[SAC-HELP] sacio.a for 64 bit Linux

Brian Savage savage at uri.edu
Wed Jan 14 13:33:26 PST 2009


Steve,

Try compiling the fortran code with the -m32 option.

Cheers
Brian Savage
savage!@uri.edu


On Jan 14, 2009, at  3:18 PM , Gao, Stephen S. wrote:

> Hi SAC experts,
>
> We have just obtained an X86-64 Redhat Linux server and I would  
> like to install SAC on it. SAC itself works fine on the 64 bit  
> machine but the lib/sacio.a file that came with the package cannot  
> be compiled with FORTRAN codes.
>
> Please help.
>
> Thanks.
>
> Steve
>
> ----------------------------
>
> Here is the error message when "make" was typed:
>
> g77 -g readsac.f -o readsac.exe \
> /home/sgao/subs/wsac1gao.f \
> /home/sgao/soft/sac/lib/sacio.a
>
> /usr/bin/ld: warning: i386 architecture of input file `/home/sgao/ 
> soft/sac/lib/sacio.a(getfhv.o)' is incompatible with i386:x86-64  
> output
> /usr/bin/ld: warning: i386 architecture of input file `/home/sgao/ 
> soft/sac/lib/sacio.a(rsac1.o)' is incompatible with i386:x86-64 output
> ....
>
>
> A *.exe file was created by when I tried to run it, it produced a  
> Segmentation fault.
>
>
> =======================================
> Stephen S. Gao, PhD,
> Associate Professor of Geophysics,
> Department of Geological Sciences and Engineering,
> Missouri University of Science & Technology (MST)
> 129 McNutt Hall, Rolla, Missouri 65409,
> E-mail: sgao at mst.edu <mailto:sgao at mst.edu>
> Office Phone: (573)-341-6676, FAX:(573)-341-6935
> http://www.mst.edu/~sgao
> http://mars.device.mst.edu/GG <http://mars.device.mst.edu/GG>   
> (Geology & Geophysics at MST)
>
> ---------------------------------------------------------------------- 
> ----------------------
> MST History:
> 1870-1964: Missouri School of Mines and Metallurgy (MSM)
> 1964-2007: University of Missouri-Rolla (UMR)
> 2008------: Missouri University of Science & Technology (MST)
> ++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>
> _______________________________________________
> sac-help mailing list
> sac-help at iris.washington.edu
> http://www.iris.washington.edu/mailman/listinfo/sac-help




More information about the sac-help mailing list