mbox

cmake: Disable parallelism

Message ID 1453461019-7680-1-git-send-email-daniel.weismueller@ipfire.org
State Accepted
Commit 92e4521572f0a5a6411ce74a7a70b9b65dcebb26
Headers

Message

Daniel Weismueller Jan. 22, 2016, 10:10 p.m. UTC
  Building cmake uses a high amount of memory (>2G) and
fails to build on my system. Using less processes reduces
memory usage and lets the build succeed.

Signed-off-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
---
 lfs/cmake | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
  

Comments

Michael Tremer Jan. 22, 2016, 10:48 p.m. UTC | #1
Hello Daniel,

thanks for this build fix.

There might be others as well as someone has recently reported on the
bugtracker that too much memory is used during the first build.

Best,
-Michael

On Fri, 2016-01-22 at 12:10 +0100, Daniel Weismüller wrote:
> Building cmake uses a high amount of memory (>2G) and
> fails to build on my system. Using less processes reduces
> memory usage and lets the build succeed.
> 
> Signed-off-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
> ---
>  lfs/cmake | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/lfs/cmake b/lfs/cmake
> index e3d2119..a9ada50 100644
> --- a/lfs/cmake
> +++ b/lfs/cmake
> @@ -32,9 +32,7 @@ DL_FROM    = $(URL_IPFIRE)
>  DIR_APP    = $(DIR_SRC)/$(THISAPP)
>  TARGET     = $(DIR_INFO)/$(THISAPP)
>  
> -ifeq "$(MACHINE)" "armv5tel"
> -	MAKETUNING = -j2
> -endif
> +MAKETUNING = -j2
>  
>  ####################################################################
> ###########
>  # Top-level Rules