Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 08-01-2007, 07:09 PM   #1
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, 07:19 PM   #2
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.

Old 08-01-2007, 09:23 PM   #3
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.
Old 08-02-2007, 11:46 AM   #4
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.


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 07:58 PM
LXer: How Linux/UNIX Knows which program to run? LXer Syndicated Linux News 0 02-11-2006 01:01 PM
Unix/Xenix programs wonīt run in Linux trupillo Linux - Software 3 05-21-2004 01:13 PM
How to search and delete files in Unix/Linux puzz_1 Linux - General 5 04-09-2004 11:35 AM
Can I run Unix software on Linux? njbrain Linux - Software 10 03-17-2004 01:19 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:46 PM.

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