-
Notifications
You must be signed in to change notification settings - Fork 9
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
Possible memory leak while building from source #14
Comments
As a temporary solution you can decrease GHC optimization level to -O0 in Monaba.cabal |
Didn't work, but it seems to work when I use stackage |
Hmm, it works for me when I use cabal and latest packages with GHC 7.10.2 following my readme. |
What Linux distribution are you using to build Monaba with cabal? |
gentoo |
That's strange, tried several times (even asked to a friend of mine to try buidling) and got almost the same errors (dependencies failing, memory leak, and so on). |
I got memory leaking too, but -O0 always helped. Don't know how to fix it another way yet. |
I updated dependencies versions according to yesod scaffold example, not sure if it helps |
Gonna test on a Digital Ocean droplet. |
Welp, this time everything went well. |
Let it be open to remind me that memory leak isn't fixed, -O0 still isn't a good way |
Ok, if something like that happens again, I'll report it here. |
@ahushh the option -O0 should be on the documentation then |
When I try to compile/build from source, using either
stackage
andcabal
, the process halts when it reaches the following step[25 of 32] Compiling Handler.Admin.Board ( Handler/Admin/Board.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Handler/Admin/Board.o )
.I'm currently with 8GB of RAM, SSD, and 2GB of swap (file), and the building process consumes everything before halting (high I/O, system lagging etc).
The text was updated successfully, but these errors were encountered: