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 

Problems with 64-bit Fedora SPP

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



Joined: 09 Dec 2005
Posts: 17
Location: Smithsonian Astrophysical Observatory

PostPosted: Fri Nov 30, 2007 10:43 pm    Post subject: Problems with 64-bit Fedora SPP Reply with quote

I just got a new computer today, a dual processor, dual core Sun machine running 64-bin Fedora Linux. When I try compiling one of my SPP packages on it, the files complie OK, but I get lots and lots of messages like this when linking:

/usr/bin/ld: warning: i386 architecture of input file '/data/oir/IRAF2.13//iraf.pkg/noao/bin.redhat/libsmw.a(shdr.o)' is incompatible with i386:x86-64 output

Is there something I can set? Or do I need a whole new set of IRAF binaries? The old executables worked fine, but I need to fix some bugs/add some features.

-Doug Mink
Back to top
View user's profile Send private message Visit poster's website
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Fri Nov 30, 2007 10:51 pm    Post subject: Reply with quote

Compilation on 64-bit systems is not yet supported, you'll have to use pre-built 32-bit binaries for both the core system and external packages.

With proper compatability libraries installed on your machine and much munging of compile time flags to add a '-m32' option, it is sometimes possibles to build 32-bit binaries on a 64-bit machine but this is not something for mere muggles to attempt.

-Mike


Last edited by fitz on Sat Dec 01, 2007 4:55 am; edited 1 time in total
Back to top
View user's profile Send private message
dougmink



Joined: 09 Dec 2005
Posts: 17
Location: Smithsonian Astrophysical Observatory

PostPosted: Sat Dec 01, 2007 4:51 am    Post subject: Reply with quote

fitz wrote:

With proper compatability libraries installed on your machine and much munging of compile time flags to add a '-m32' option, it is sometimes possibles to build 32-bit binaries on a 64-bit machine but this is not something for mere muggles to attempt.


Then I guess I'll just have to see whether I'm still an IRAF wizard.

-Doug
Back to top
View user's profile Send private message Visit poster's website
nelly



Joined: 07 Dec 2007
Posts: 8

PostPosted: Wed Jan 30, 2008 9:06 pm    Post subject: compilation problems on a 64-bit machine Reply with quote

Hi, I am a new iraf user, using a new DELL 64-bit computer , and running iraf-2.12.2 which is installed on the department server. everything works so far, expect when I compile routines using 'fc' I have compilation errors, similar to the ones that Doug has reported. (at the end the file gets compiled, but when I run it , i get the message 'segmentation fault'.)

This is the error message:
'/usr/bin/ld: warning: i386 architecture of input file `/iraf/iraf/unix/bin.redhat/libos.a(zraloc.o)' is incompatible with i386:x86-64 output '

I don't really understand Mike's answer about adding a -m32 option. Can anyone please help explain more in details, what can be done? or does anyone have some new clues about what to be done???

Thank you!
Nelly
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Thu Jan 31, 2008 2:30 am    Post subject: Reply with quote

For compilation using 'fc', you would do something like:

Code:
cl> fc -/m32 mytask.f


where the '/' is used to passthru the -m32 flag to the underlying compilers. The earlier comments about this being non-trivial referred mostly to the need to install 32-bit GCC libraries alongside the default 64-bit compiler. Depending on what you're building there may be other dependencies as well, but try the above first and hope for the best.

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



Joined: 07 Dec 2007
Posts: 8

PostPosted: Thu Jan 31, 2008 10:55 pm    Post subject: Reply with quote

Thanks Mike for your reply!!

this works, problem solved!
in fact it seems to work without the '/' as well!

Nelly
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.10 seconds