haskell-pkg-janitors / haskell-src

Library for manipulating Haskell source code
http://hackage.haskell.org/package/haskell-src
Other
22 stars 13 forks source link

OOM when building on Circle CI #6

Closed brandon-leapyear closed 5 years ago

brandon-leapyear commented 5 years ago

When upgrading from lts-10.4 to lts-12.24, I'm consistently getting an out of memory error on Circle CI:

      /root/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.4 --builddir=.stack-work/dist/x86_64-linux/Cabal-2.2.0.1 build --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/src/.stack-work/logs/haskell-src-exts-1.20.3.log

    Configuring haskell-src-exts-1.20.3...
    Preprocessing library for haskell-src-exts-1.20.3..
    Building library for haskell-src-exts-1.20.3..
    [ 1 of 18] Compiling Language.Haskell.Exts.Extension ( src/Language/Haskell/Exts/Extension.hs, .stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/Language/Haskell/Exts/Extension.o )
    [ 2 of 18] Compiling Language.Haskell.Exts.ExtScheme ( src/Language/Haskell/Exts/ExtScheme.hs, .stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/Language/Haskell/Exts/ExtScheme.o )
    [ 3 of 18] Compiling Language.Haskell.Exts.SrcLoc ( src/Language/Haskell/Exts/SrcLoc.hs, .stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/Language/Haskell/Exts/SrcLoc.o )
    [ 4 of 18] Compiling Language.Haskell.Exts.Syntax ( src/Language/Haskell/Exts/Syntax.hs, .stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/Language/Haskell/Exts/Syntax.o )

Does this have anything to do with removing the -O2 flag from the cabal file from 1.0.2.0 to 1.0.3.0? If not, do you have any recommendations for this, other than beefing up the Circle CI machine?

brandon-leapyear commented 5 years ago

:sparkles: This is an old work account. Please reference @brandonchinn178 for all future communication :sparkles:


Sorry wrong repo