Bit Connor wrote:
The system is a xen virtual machine:
Linux 2.6.24-19 SMP x86_64 Dual-Core AMD Opteron(tm) Processor 2212
AuthenticAMD GNU/Linux

With GHC version 6.8.2, ghci gives the error:

$ ghci
GHCi, version 6.8.2: http://www.haskell.org/ghc/  :? for help
ghc-6.8.2: internal error: R_X86_64_32S relocation out of range:
(noname) = 0x7f10a29e56d0

   (GHC version 6.8.2 for x86_64_unknown_linux)
   Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
Aborted

Yes, this is a known bug. Xen doesn't respect the MAP_32BIT flag to mmap(), which GHC on x86_64 relies on.

http://hackage.haskell.org/trac/ghc/ticket/2512

GHC version 6.10.1 gives a similar error:

$ ghci
GHCi, version 6.10.1: http://www.haskell.org/ghc/  :? for help
ghc: internal error: mmap() returned memory outside 2Gb
   (GHC version 6.10.1 for x86_64_unknown_linux)
   Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
Aborted
>
These same 2 results happen on 2 different distros that I've tried.
With both GHC versions, compiling haskell programs sometimes works,
but sometimes hangs during the linking stage.

Compiling and running executables should work fine, only GHCi is affected by the above bug. Could you try -v when linking and see what stage is hanging?

Cheers,
        Simon
_______________________________________________
Glasgow-haskell-users mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to