Aurelien Jarno <aurel...@aurel32.net> writes: > On 2017-01-05 14:00, Gaudenz Steinlin wrote: >> >> Hi >> >> Aurelien Jarno <aurel...@aurel32.net> writes: >> >> > On 2016-12-30 10:06, Emilio Pozuelo Monfort wrote: >> >> On 29/12/16 20:56, Gaudenz Steinlin wrote: >> > >> > The problem is indeed a memory issue, not that the buildd doesn't have >> > enough memory, but just that you can allocate only 2GB per process on a >> > 32-bit MIPS machine. As Emilio said, the above GCC flag should help to >> > reduce the memory usage by running the garbage collector more often. >> > >> > However gcc 6.3 seems to have improved the situation a bit, so I given >> > back the packages, I hope they will build now. Otherwise I have a patch >> > ready to change the GCC defaults. That said GCC upstream consider it's a >> > bug in the garbage collector [1], so that should be fixed instead and the >> > patch should be considered as a temporary workaround. >> > >> >> Aurelien thanks for taking care and resheduling the build. Unfortunately >> this did not solve the problem. But setting the following variables >> solves the virtual memory issue for me on the mipsel porterbox (eller): >> >> export DEB_CFLAGS_MAINT_APPEND= --param ggc-min-expand=10 -O1 >> export DEB_CXXFLAGS_MAINT_APPEND= --param ggc-min-expand=10 -O1 >> export DEB_CFLAGS_MAINT_STRIP= -O2 >> export DEB_CXXFLAGS_MAINT_STRIP= -O2 > > Thanks for testing that. > > I have found that the issue is also workarounded by keeping -O2 and > --param ggc-min-expand=5, which is a quite aggressive value. The patch I > have for GCC reduced the value to 30 (which corresponds to disabling the > heuristics). Also note that the build failure actually only concern the > testsuite, the code itself builds without any change.
Thanks for the hint. I'll try another upload with --param ggc-min-expand=5. Unfortunately there is no easy way to disable the testsuite build without also disabling some debug binaries that are part of the binary packages. Gaudenz -- PGP: 836E 4F81 EFBB ADA7 0852 79BF A97A 7702 BAF9 1EF5