Skip to content

Installing stack on xubuntu failed

Summary

Installing stack fails (after keeping hdd activity of host machine at 100% for a dozen hours) with:

idris                            > [ 69 of 115] Compiling Idris.IBC
idris                            > ghc: internal error: Unable to commit 1048576 bytes of memory
idris                            >     (GHC version 8.4.4 for x86_64_unknown_linux)
idris                            >     Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
Completed 73 action(s).

--  While building package idris-1.3.1 using:
      /tmp/stack20592/idris-1.3.1/.stack-work/dist/x86_64-linux/Cabal-2.2.0.1/setup/setup --builddir=.stack-work/dist/x86_64-linux/Cabal-2.2.0.1 build --ghc-options " -fdiagnostics-color=always"
    Process exited with code: ExitFailure (-6)

Steps to reproduce

sudo apt install curl
curl -sSL https://get.haskellstack.org/ |sh

Expected behavior

Installs stack (since I want idris)

Environment

  • GHC version used:

Optional:

  • Operating System: Xubuntu Bionic Beaver on VirtualBox.
  • System Architecture: possibly relevant: vm has 1024MB of base memory
Edited by Ömer Sinan Ağacan
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information