Trying to execute a binary created on another machine prints "floating point exception"
I compile a simple program on one linux machine and when I try to execute it on a similar linux machine it just prints "floating point exception"
[gchrupala@pg-219 ~]$ uname -a
Linux pg-219 2.6.22.9-61.fc6 #1 SMP Thu Sep 27 18:48:03 EDT 2007 i686 i686 i386 GNU/Linux
[gchrupala@pg-219 ~]$ ./ghc-new/bin/ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.8.1
[gchrupala@pg-219 ~]$ cat Hello.hs
main = putStrLn "Hello"
[gchrupala@pg-219 ~]$ ./ghc-new/bin/ghc --make Hello.hs
[1 of 1] Compiling Main ( Hello.hs, Hello.o )
Linking Hello ...
[gchrupala@pg-219 ~]$ ./Hello
Hello
[gchrupala@pg-219 ~]$ scp Hello grzegorz@zag:
Hello 100% 366KB 366.4KB/s 00:00
[gchrupala@pg-219 ~]$ ssh grzegorz@zag
[grzegorz@zag ~]$ uname -a
Linux zag.computing.dcu.ie 2.6.12-1.1381_FC3 #1 Fri Oct 21 03:46:55 EDT 2005 i686 i686 i386 GNU/Linux
[grzegorz@zag ~]$ ./Hello
Floating point exception
Trac metadata
Trac field | Value |
---|---|
Version | 6.8.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |