Skip to content

Build of aeson running out of memory in ghc 8.10.4 (pandoc)

Summary

stack install of pandoc cloned this morning on a

Steps to reproduce

I installed the current ghc with "sudo apt install haskell-platform". I installed stack following the instructions on the stack website. I cloned pandoc from project source. I went into the pandoc/ directory and ran: stack setup and then stack install. It initially failed with an out of memory problem and I later restarted stack install and got:

mare:~/repos/pandoc$ stack install
aeson            > configure
aeson            > Configuring aeson-1.5.6.0...
aeson            > build
aeson            > Preprocessing library for aeson-1.5.6.0..
aeson            > Building library for aeson-1.5.6.0..
aeson            > [ 1 of 24] Compiling Data.Aeson.Internal.Functions
aeson            > [ 2 of 24] Compiling Data.Aeson.Parser.UnescapePure
aeson            > [ 3 of 24] Compiling Data.Aeson.Parser.Unescape
aeson            > [ 4 of 24] Compiling Data.Aeson.Types.Generic
aeson            > [ 5 of 24] Compiling Data.Aeson.Types.Internal
aeson            > [ 6 of 24] Compiling Data.Aeson.Parser.Internal
aeson            > ghc: internal error: Unable to commit 1048576 bytes of memory
aeson            >     (GHC version 8.10.4 for x86_64_unknown_linux)
aeson            >     Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug
Progress 1/32   

Expected behavior

It should have built and installed pandoc.

Environment

  • GHC version used: 8.10.4

Optional:

  • Operating System: PRETTY_NAME="Debian GNU/Linux 10 (buster)"

  • System Architecture: 64-bit intel compatible

Edited by Ben Gamari
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information