Skip to content

Instantly share code, notes, and snippets.

@fragamus
Created May 30, 2020 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fragamus/10770e6733de0b39aebecf27ef22cb12 to your computer and use it in GitHub Desktop.
Save fragamus/10770e6733de0b39aebecf27ef22cb12 to your computer and use it in GitHub Desktop.
RUN git clone --branch ghc-8.4 https://github.com/ghcjs/ghcjs.git
WORKDIR ghcjs
RUN git submodule update --init --recursive
RUN ./utils/makePackages.sh
RUN ./utils/makeSandbox.sh
RUN cabal install
ENV PATH /ghcjs/.cabal-sandbox/bin:$PATH
WORKDIR /
RUN ghcjs-boot -v2
RUN /ghcjs/utils/makePackages.sh
RUN /ghcjs/utils/makeSandbox.sh
RUN cabal install
[265 of 515] Compiling OptCoercion ( compiler/types/OptCoercion.hs, dist/dist-sandbox-7ee1db
b5/build/OptCoercion.o )
cabal: Leaving directory '/ghcjs/lib/ghc-api-ghcjs'
Configuring lens-4.16.1...
Building lens-4.16.1...
Installed lens-4.16.1
cabal: Error: some packages failed to install:
ghc-api-ghcjs-8.4.0-KV34DiOHSOb29DFfD7c86E failed during the building phase.
The exception was:
ExitFailure (-9)
This may be due to an out-of-memory condition.
ghcjs-8.4.0.1-44yshEszyepIkVxfZIjQrc depends on ghcjs-8.4.0.1 which failed to
install.
haddock-api-ghcjs-2.20.0-E6JBraOR8x2fg2ogQS8eB depends on
haddock-api-ghcjs-2.20.0 which failed to install.
The command '/bin/sh -c cabal install' returned a non-zero code: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment