Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile fail in Circle CI 2.0 (out of memory error) #56

Open
waddlaw opened this issue Jul 23, 2018 · 6 comments
Open

Compile fail in Circle CI 2.0 (out of memory error) #56

waddlaw opened this issue Jul 23, 2018 · 6 comments

Comments

@waddlaw
Copy link

waddlaw commented Jul 23, 2018

I'm using Circle Ci (and stack).
locally build is fine. But, get following error message in the Circle CI.

--  While building custom Setup.hs for package mmark-0.0.5.6 using:
      /root/.stack/setup-exe-cache/x86_64-linux-nopie/Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.3 --builddir=.stack-work/dist/x86_64-linux-nopie/Cabal-2.2.0.1 build lib:mmark --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
    Process exited with code: ExitFailure (-9) (THIS MAY INDICATE OUT OF MEMORY)
    Logs have been written to: /root/project/.stack-work/logs/mmark-0.0.5.6.log

    Configuring mmark-0.0.5.6...
    Preprocessing library for mmark-0.0.5.6..
    Building library for mmark-0.0.5.6..
    [1 of 9] Compiling Text.MMark.Parser.Internal.Type ( Text/MMark/Parser/Internal/Type.hs, .stack-work/dist/x86_64-linux-nopie/Cabal-2.2.0.1/build/Text/MMark/Parser/Internal/Type.o )
    [2 of 9] Compiling Text.MMark.Parser.Internal ( Text/MMark/Parser/Internal.hs, .stack-work/dist/x86_64-linux-nopie/Cabal-2.2.0.1/build/Text/MMark/Parser/Internal.o )
    [3 of 9] Compiling Text.MMark.Type  ( Text/MMark/Type.hs, .stack-work/dist/x86_64-linux-nopie/Cabal-2.2.0.1/build/Text/MMark/Type.o )
    [4 of 9] Compiling Text.MMark.Trans ( Text/MMark/Trans.hs, .stack-work/dist/x86_64-linux-nopie/Cabal-2.2.0.1/build/Text/MMark/Trans.o )
    [5 of 9] Compiling Text.MMark.Util  ( Text/MMark/Util.hs, .stack-work/dist/x86_64-linux-nopie/Cabal-2.2.0.1/build/Text/MMark/Util.o )
    [6 of 9] Compiling Text.MMark.Render ( Text/MMark/Render.hs, .stack-work/dist/x86_64-linux-nopie/Cabal-2.2.0.1/build/Text/MMark/Render.o )
    [7 of 9] Compiling Text.MMark.Parser ( Text/MMark/Parser.hs, .stack-work/dist/x86_64-linux-nopie/Cabal-2.2.0.1/build/Text/MMark/Parser.o )
Exited with code 1

Reproduce this repo.

@mrkkrp
Copy link
Member

mrkkrp commented Sep 14, 2018

This is caused by a regression in GHC, please see: https://ghc.haskell.org/trac/ghc/ticket/14974.

@waddlaw
Copy link
Author

waddlaw commented Sep 15, 2018

Thank you for the information!

@gvolpe
Copy link

gvolpe commented Jan 11, 2019

Hi there! Have you found any workaround?

I'm trying to set up my Circle CI build and I hit the same issue. Build info:

  • docker image: fpco/stack-build
  • stack-1.9.3
  • ghc-8.6.3

EDIT: It is unrelated to the package mmark.

Thanks!

@gvolpe
Copy link

gvolpe commented Jan 12, 2019

Just in case someone finds this useful. I got it working by running stack test -j1 instead.

@mrkkrp
Copy link
Member

mrkkrp commented Jan 12, 2019

I usually use a special docker image that has pre-built mmark.

@sjakobi
Copy link
Contributor

sjakobi commented Mar 2, 2021

Build time and memory usage has significantly gone up again with GHC 9.0.1. I've filed https://gitlab.haskell.org/ghc/ghc/-/issues/19471 for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants