Subject: bug#40522: closed (Re: bug#40522: ‘guile3.0-guix’sometimes fails to build on i686 (“Too many heapsections”))

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 11 Oct 2020 14:40:02 +0000

Your bug report

#40522: ‘guile3.0-guix’ sometimes fails to build on i686 (“Too many heap sections”)

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
40522: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=40522
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#40522: ‘guile3.0-guix’sometimes fails to build on i686(“Too many heap sections”)
From: Ludovic Courtès <[email-masked]>
To: [email-masked]
Date: Sun, 11 Oct 2020 16:39:51 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Ludovic Courtès <[email-masked]> skribis:

> ‘guile3.0-guix’ occasionally fails to build on i686-linux:
>
> [ 94%] GUILEC   gnu/services/cuirass.go
> [ 94%] GUILEC   gnu/services/cups.go
> GC Warning: Failed to expand heap by 8388608 bytes
> GC Warning: Failed to expand heap by 8388608 bytes
>
> [...]
>
> GC Warning: Failed to expand heap by 8388608 bytes
> GC Warning: Failed to expand heap by 8388608 bytes
> Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS
> /gnu/store/7ffcr3knh5jrj3lig4qf4fv0iws51l14-bash-minimal-5.0.7/bin/bash: line 7: 28331 Aborted                 XDG_CACHE_HOME=/nowhere host=i686-unknown-linux-gnu srcdir="." ./pre-inst-env /gnu/store/znlp9v4z0pda450bbsfqzppqj2m61sz9-guile-next-3.0.2/bin/guile -L "." -L "." --no-auto-compile -s "."/build-aux/compile-all.scm […]
>
> (From
> <https://berlin.guixsd.org/log/czsdfjykhlc4ngjdva17i4rglpnh86fl-guile3.0-guix-1.0.1-15.0984481>.)

I believe this is fixed by the switch to Guile 3.0.4 in commit
a2991de0f44a5f4db71ddad67e914fe3344a4505 (June 2020), where ‘-O1’ uses
the new “baseline compiler”, which is much less memory-hungry.

Ludo’.

Subject: ‘guile3.0-guix’ sometimes fails to build on i686 (“Too many heap sections”)
From: Ludovic Courtès <[email-masked]>
To: [email-masked]
Date: Thu, 09 Apr 2020 14:04:14 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

‘guile3.0-guix’ occasionally fails to build on i686-linux:

--8<---------------cut here---------------start------------->8---
[ 94%] GUILEC   gnu/services/cuirass.go
[ 94%] GUILEC   gnu/services/cups.go
GC Warning: Failed to expand heap by 8388608 bytes
GC Warning: Failed to expand heap by 8388608 bytes

[...]

GC Warning: Failed to expand heap by 8388608 bytes
GC Warning: Failed to expand heap by 8388608 bytes
Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS
/gnu/store/7ffcr3knh5jrj3lig4qf4fv0iws51l14-bash-minimal-5.0.7/bin/bash: line 7: 28331 Aborted                 XDG_CACHE_HOME=/nowhere host=i686-unknown-linux-gnu srcdir="." ./pre-inst-env /gnu/store/znlp9v4z0pda450bbsfqzppqj2m61sz9-guile-next-3.0.2/bin/guile -L "." -L "." --no-auto-compile -s "."/build-aux/compile-all.scm […]
--8<---------------cut here---------------end--------------->8---

(From
<https://berlin.guixsd.org/log/czsdfjykhlc4ngjdva17i4rglpnh86fl-guile3.0-guix-1.0.1-15.0984481>.)

<https://berlin.guixsd.org/search?query=guile3.0-guix+system%3Ai686-linux>
suggests it happens only occasionally.  I suspect it’s more likely when
doing ‘-j 96’ than when doing ‘-j 4’ because the former requires more
memory.

Ludo’.