Subject: bug#48131: build failure: 1.3.0rc1 on Debian i386 with guile-2.2

From: Ludovic Courtès <[email-masked]>
Date: Sun, 02 May 2021 23:59:47 +0200

Hi!

Vagrant Cascadian <[email-masked]> skribis:

> On 2021-04-30, Vagrant Cascadian wrote:
>> I've been unable to build version 1.3.0rc1 for i386 on Debian:
>>
>>   [ 70%] GUILEC   gnu/packages/direct-connect.go
>>   [ 70%] GUILEC   gnu/packages/disk.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
>>   make[3]: *** [Makefile:6871: make-go] Aborted
>>
>>
>> Debian is still using guile-2.2, so I'm guessing this is not a
>> particularly well tested codepath anymore...
>
> But strangely enough, it built fine on debian's build machines on all
> supported architectures:
>
>   https://buildd.debian.org/status/package.php?p=guix&suite=experimental

Guile 3.0’s compiler with ‘-O1’ (which is what we use for package files)
uses much less memory than 2.2¹.  The amount of memory may also be a
function of the number of threads used (‘-j’).  So it could be that the
build failed on a machine with less memory or more cores.

Ludo’.

¹ https://wingolog.org/archives/2020/06/03/a-baseline-compiler-for-guile