Submit a Story  :  IRAF Links  :  Past Polls  :  Calendar  :  Advanced Search  
     iraf.net
FAQ
 Forum FAQForum FAQ   Forum SearchForum Search   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

x86.64 iraf

 
Post new topic   Reply to topic    iraf.net Forum Index -> Systems
View previous topic :: View next topic  
Author Message
yuniraf



Joined: 25 Oct 2006
Posts: 5

PostPosted: Sun Oct 29, 2006 11:53 pm    Post subject: x86.64 iraf Reply with quote

I am running iraf on linux on the 64-bit x86 (AMD64) platform. Everything seems to work fine, except when I try to use "fc" to compile a IRAF/Fortran program.
It gives a large number of warnings all like:

/usr/bin/ld: warning: i386 architecture of input file `/iraf/iraf/unix/bin.redhat/libcompat.a(C_name.o)' is incompatible with i386:x86-64 output

I get basically one line like this one for every library in /iraf/iraf/unix/bin.redhat/
Then it creates a binary but it does not run. That is, it runs but returns the prompt without doing anything.

Is there full support for this platform? What should I do?

Thanks!
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Mon Oct 30, 2006 2:12 am    Post subject: Reply with quote

Compilation is not supported on 64-bit systems however the 32-bit binaries are known to work. What this means is that you'll need to compile your programs on a 32-bit system and move them over when done. Full support for 64-bit systems is on the list of projects but is a fairly big effort due to the amount of testing required even beyond the basic port.

-Mike
Back to top
View user's profile Send private message
labiano



Joined: 02 Nov 2006
Posts: 4

PostPosted: Thu Nov 02, 2006 2:15 pm    Post subject: wrong ELF class: ELFCLASS64 Reply with quote

Hi,

I am running IRAF also on a 64-bit pc. I installed it from the ESO/Scisoft distribution.

I am trying to run xcsao (in the rvsao package) and get the following error:
error while loading shared libraries: libg2c.so.0: wrong ELF class: ELFCLASS64

Anyone knows a way around this?

Thnak you very much!
Alvaro
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Thu Nov 02, 2006 3:43 pm    Post subject: Reply with quote

The error means the binary is trying to load the libg2c shared library and finding only a 64-bit version. There may be some sort of "32-bit compatability" package you can install on your machine to workaround this, otherwise you're best bet is to find a statically linked binary for the package. I may be able to build one later today if you don't have any luck.

-Mike
Back to top
View user's profile Send private message
labiano



Joined: 02 Nov 2006
Posts: 4

PostPosted: Thu Nov 02, 2006 4:03 pm    Post subject: Reply with quote

Hi Mike,

Thank you for your answer.

I have not found a"32-bit compatibility program". So I copied a 32-bit library ifrom another PC in my /usr/lib directory and the problem seems to dissappear.

Now I get :
IRAF rvsao.xcsao 2.3.2 labiano@localhost.localdomain 02-Nov-2006 17:03
ERROR: segmentation violation

but I am not sure if the problem still comes from the libraries or from my data.

Anyway, if you find time to build the library, please let me know.

Thank you very much once again!
Alvaro
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Thu Nov 02, 2006 4:17 pm    Post subject: Reply with quote

I put a statically linked linux binary at http://iraf.net/pub/fitz/x_rvsao.e-LINUX_STATIC

This was built from the latest RVSAO 2.5.3 sources from ftp://cfa-fta.harvard.edu/pub/iraf/rvsao-2.5.3.tar.gz. Just download the file and rename it 'x_rvsao.e' and put it in your package bin directory. If you still get the segvio then you should contact the package author (Doug Mink reads this site occassionally and may notice this message). Hope it helps.

Cheers,
-Mike
Back to top
View user's profile Send private message
labiano



Joined: 02 Nov 2006
Posts: 4

PostPosted: Thu Nov 02, 2006 4:53 pm    Post subject: Reply with quote

Hi,
I cannot access the link for the library.

404 Not Found
The requested URL /pub/fitz/x_rvsao.e-LINUX_STATIC does not exist.
Site Still Under Construction


Thanks!
Alvaro
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Thu Nov 02, 2006 5:04 pm    Post subject: Reply with quote

Sorry, should be fixed now.......
Back to top
View user's profile Send private message
yuniraf



Joined: 25 Oct 2006
Posts: 5

PostPosted: Fri Nov 10, 2006 4:15 pm    Post subject: x86.64 iraf Reply with quote

Thanks for the information. It works...
All we need is to use a 32-bit machine with the same architecture.
Back to top
View user's profile Send private message
labiano



Joined: 02 Nov 2006
Posts: 4

PostPosted: Mon Nov 13, 2006 11:27 am    Post subject: Reply with quote

I still get the segvio. I will contact the rvsao designer and see how can I fix it. Anyway, I found an older computer where it seems to work.

Thanks for all your help!
Alvaro
Back to top
View user's profile Send private message
yara



Joined: 17 Jun 2011
Posts: 1

PostPosted: Fri Jun 17, 2011 12:08 pm    Post subject: libg2c.so.0 for xcsao Reply with quote

Hi, I found this thread by searching from iraf problems with libg2c and although is not quite the problem I'm getting I thought I should post it here anyway.

So my problem is I'm trying to run xcsao in my laptop (32 bit kernel) and I'm getting this:

/scisoft/share/iraf/extern/rvsao/bin.redhat/x_rvsao.e: error while loading shared libraries: libg2c.so.0: cannot open shared object file: No such file or directory

I believe this problem arose after I upgraded my Ubuntu 10.04.

Any ideas on how to solve it?
Some IT people have tried to help me and failed and I'm a bit desperate!

Thanks a lot

yara
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Fri Jun 17, 2011 4:27 pm    Post subject: Reply with quote

I rebuilt the static binary at http://iraf.net/pub/fitz/x_rvsao.e-LINUX_STATIC from the latest RVSAO 2.7.8 sources so I'd suggest you download this and install it in the RVSAO bin.redhat directory. The linux scisoft distribution may also be a little old for your OS and you'll see similar problems with other binaries, chances are good that simply relinking the package on your machine will use the newer libs on your machine and likewise solve the problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    iraf.net Forum Index -> Systems All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2009 phpBB Group
 Copyright © 2005-2011 iraf.net
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.11 seconds