[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#965121: pandoc: FTBFS on armel, armhf, mipsel: out of memory



Quoting Jonas Smedegaard (2020-07-16 16:02:53)
> Quoting Mikolaj Konarski (2020-07-16 15:50:53)
> > Hi,
> > 
> > Does disabling optimization help? I have it disabled for these
> > architectures in haskell-lambdahack and it did help in that case.
> 
> I will try. Thanks for the suggestion!

Looking closer, it seems the better approach is to not disable 
optimizations completely but instead tune GCC garbage-collection.

5 years ago, Joachim suggested¹ to apply that generally to Haskell build 
framework but it was suggested that "[t]here are only few Haskell 
packages with this issue" and apparently it ended there.

So I suggest to try change lambdacheck to this:

# Reduce compile-time memory utilization on low-memory architectures
ifneq (,$(filter $(DEB_BUILD_ARCH),mips mipsel))
DEB_SETUP_GHC_CONFIGURE_ARGS += --ghc-options="-optc--param -optcggc-min-expand=5"
endif

Above seems to most common settings.  Some has the threshold more 
relaxed at at 20.  For pandoc I now try include armel and armhf, and 
lower threshold to 5.

 - Jonas


¹ https://bugs.debian.org/783126#10

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

Attachment: signature.asc
Description: signature


Reply to: