Re: Compiler runs out of memory when building a package

2023-08-14 Thread Dima Kogan
Thanks Johannes and Loong Jin.

Neither of the suggestions were sufficient on their own, but together I
think it's working. There are a few other issues that are blocking it
now, but I want to say that I'm past this one.

Thanks!



Re: Compiler runs out of memory when building a package

2023-08-14 Thread Johannes Schauer Marin Rodrigues
Hi,

Quoting Dima Kogan (2023-08-13 22:54:48)
> I'm looking for a suggestion to fix a problem.
> 
> I uploaded a package, and it cleared NEW a few days ago. I now see that
> it fails to build on most 32-bit arches becaues the compiler runs out of
> memory.

I ran into the same problem with my package vcmi. The fix I've been using was
to add this to my d/rules:

export DEB_CXXFLAGS_MAINT_APPEND+=--param ggc-min-expand=5

https://sources.debian.org/src/vcmi/1.1.0%2Bdfsg-1/debian/rules/#L20

Thanks!

cheers, josch

signature.asc
Description: signature


Re: Compiler runs out of memory when building a package

2023-08-13 Thread Chow Loong Jin
On Sun, Aug 13, 2023 at 01:54:48PM -0700, Dima Kogan wrote:
> Hi.
> 
> I'm looking for a suggestion to fix a problem.
> 
> I uploaded a package, and it cleared NEW a few days ago. I now see that
> it fails to build on most 32-bit arches becaues the compiler runs out of
> memory. Logs:
> 
>   https://buildd.debian.org/status/package.php?p=gtsam
> 
> Arbitrary 32-bit log (armhf):
> 
>   
> https://buildd.debian.org/status/fetch.php?pkg=gtsam=armhf=4.2%7E9%2Bdfsg-2=1691926953=0
>

Hi,

We had a similar build failure in slic3r-prusa, and the way we fixed it
was to reduce debug symbols on 32-bit architectures, and disable it on
mips + mipsel.

See [1], [2] and [3] for what was done. Maybe you can try adding those
build flags to gtsam.

[1] 
https://salsa.debian.org/3dprinting-team/slic3r-prusa/-/blob/51a729e5a8bf45285d6e0dab93617c544eec885f/debian/rules#L5-10
[2] https://bugs.debian.org/961107
[3] https://bugs.debian.org/1041870

-- 
Kind regards,
Loong Jin


signature.asc
Description: PGP signature