LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 08-01-2007, 06:09 PM   #1
anil79@fnal.gov
LQ Newbie
 
Registered: Aug 2007
Posts: 2

Rep: Reputation: 0
Files did well with Unix , don't run with Linux !


I am trying to run certain fortran files on the Linux platform which did well in the UNIX enviornment. The job crashes a long time after the submission with following error message

"segmentation fault" ....

Can anyone suggest a way out ?
 
Old 08-01-2007, 06:19 PM   #2
n.nobbe
LQ Newbie
 
Registered: Jul 2007
Location: Reston, VA
Distribution: Fedora n...
Posts: 2

Rep: Reputation: 0
Migrating your Fortran programs

That's a lot to ask of your Fortran programs when you move them to a different platform and OS, even from Linux to Linux. YMMV.

Re-compile your Fortran source (surely you have the original code! and if it compiles without error, run again.

HTH,
Nick
 
Old 08-01-2007, 08:23 PM   #3
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
Unix and Linux don't have identical system call layouts, so although it may be an ELF file, the binary probably tries to use system call enumerations which don't do the same things on Linux as they do on Unix. You should always recompile when switching machines, even with the same version of the same OS. That's why open-source uses makefiles, and why you don't see a lot of consumer-land proprietary software for Unixes.
ta0kira
 
Old 08-02-2007, 10:46 AM   #4
anil79@fnal.gov
LQ Newbie
 
Registered: Aug 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Yes! The recompilation was completed sucessfully. I am still running the executable formed. Hope it does well.
 
  


Reply

Tags
code, migration


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C/C++ and opening files in UNIX systems (or maybe just Linux ?) yezu Programming 7 04-22-2007 06:58 PM
LXer: How Linux/UNIX Knows which program to run? LXer Syndicated Linux News 0 02-11-2006 12:01 PM
Unix/Xenix programs wonīt run in Linux trupillo Linux - Software 3 05-21-2004 12:13 PM
How to search and delete files in Unix/Linux puzz_1 Linux - General 5 04-09-2004 10:35 AM
Can I run Unix software on Linux? njbrain Linux - Software 10 03-17-2004 12:19 AM


All times are GMT -5. The time now is 05:42 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration