Skip to content

ghc: out of memory, requested 1048576 bytes on openbsd

Hi,

I freshly installed OpenBSD 5.6 on an AMD64 system. I also installed ghc and cabal-install from the OpenBSD package system. The version in OpenBSD 5.6 package tree is:

$ ghc --version The Glorious Glasgow Haskell Compilation System, version 7.6.3

$ cabal --version cabal-install version 1.16.0.2 using version 1.16.0 of the Cabal library

Now, I do a cabal update' and cabal install cabal-install'.

I get this error: ghc: out of memory, requested 1048576 bytes

I am not sure if it is a cabal-install bug or a ghc bug or an OpenBSD bug. So, if you think it is not a ghc bug, please go ahead and close this bug (and accept my apologies..), I will open it against cabal-install or openbsd instead.

Trac metadata
Trac field Value
Version 7.6.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information