Trouble with ghc on linux x86_64

Bit Connor bit at mutantlemon.com
Fri Nov 14 07:04:22 EST 2008


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

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.

The results are the same using the distro provided packages and with
the binaries from the ghc website.

I also actually managed to compile ghc version 6.10.1 using ghc 6.8.2,
but not completely, "make" got froze during haddock generation for
ghc-6.10.1. There was however a "ghc" binary that was produced in the
directory ghc/dist-stage2/build/ghc/ghc. Running this binary as
--interactive gave the exact same 6.10.1 error above.

Any ideas?

Thanks,
Bit


More information about the Glasgow-haskell-users mailing list