Some packages, like haskell-src-exts, needs a lot of memory during compilation.
Unfortunately, this amount of memory is not available on all platforms,
and error: "virtual memory exhausted: Cannot allocate memory." could appear.

In this case possible solution could be using ggc-min-expand.
This parameter specifies the minimum percentage by which the
garbage collector’s heap should be allowed to expand between collections.
Tuning this may improve compilation speed; it has no effect on code generation.


Read more about this here:
http://hostingfu.com/article/compiling-with-gcc-on-low-memory-vps


Regards,
Dejan



________________________________________
From: Joachim Breitner [[email protected]]
Sent: Monday, November 24, 2014 2:39 PM
To: Dejan Latinovic; [email protected]
Subject: Re: [Pkg-haskell-maintainers] Bug#770830: haskell-src-exts: FTBFS for 
mips/mipsel, virtual memory exhausted

Hi,


Am Montag, den 24.11.2014, 13:23 +0000 schrieb Dejan Latinovic:
> Package: haskell-src-exts
> Version: 1.14.0.1-1
> Tags: sid patch
> Severity: important
> Justification: FTBFS
> User: [email protected]
> Usertags: mips-patch
>
>
> Packge haskell-src-exts FTBFS for mips and mipsel with an error:
> virtual memory exhausted: Cannot allocate memory.
>
> https://buildd.debian.org/status/logs.php?pkg=haskell-src-exts&ver=1.14.0.1-1&suite=sid
>
> Patch that fixes this issue is attached.
> With this patch I was able to successfully built
> haskell-src-exts for both mips and mipsel.
>
>
> Could you please consider including this patch?

great, thanks for the patch.

Could you explain a bit what it does, and why it works, so that when in
5 years someone looks as the code knows why it is there?

Greetings,
Joachim


--
Joachim "nomeata" Breitner
Debian Developer
  [email protected] | ICQ# 74513189 | GPG-Keyid: F0FBF51F
  JID: [email protected] | http://people.debian.org/~nomeata

--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to