Cabal install criterion out of memory

自作多情 提交于 2019-12-04 06:32:29

问题


I'm running on a container with 768MB ram and 512 MB swap space. I can't increase either of this. cabal install criterion always gives

Failed during the building phase.
The exception was: ExitFailure (-9)
This may be due to an out-of-memory condition.

during Compiling Criterion.Types. Is there any way around this or do I have to make do without criterion?


回答1:


Set RTS flags on GHC to limit its memory usage (--ghc-options="+RTS -M600M") and avoid running multiple jobs in parallel (-j1).



来源:https://stackoverflow.com/questions/46147137/cabal-install-criterion-out-of-memory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!