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 <sgao<at>mst.edu>
Office Phone: (573)-341-6676, FAX:(573)-341-6935
http://www.mst.edu/~sgao
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)
++++++++++++++++++++++++++++++++++++++++++++++++++++
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 <sgao<at>mst.edu>
Office Phone: (573)-341-6676, FAX:(573)-341-6935
http://www.mst.edu/~sgao
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)
++++++++++++++++++++++++++++++++++++++++++++++++++++
-
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 <sgao<at>mst.edu>
Office Phone: (573)-341-6676, FAX:(573)-341-6935
http://www.mst.edu/~sgao
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
-
Hi!
Try compiling the fortran code with the -m32 option.
If you are lucky, this might work, but when I had the same problem, I
had to drop SAC IO support from my application, because of 2 reasons:
(1) My app uses more memory than I can address on 32 bit systems and (2)
I would have had to recompile every other library, which my app depends
on also with -m32. For small programs this is the way to go, but for
large ones this can lead to much frustration.
As far as i know, there is at least a SAC input routine in PQL2 which
compiles on 64 bit Linuxes. I have not tried to use it, but maybe this
would be a solution until SAC is rewritten for 64 bit.
Cheers,
Sebastian
-