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

Re: as: out of memory allocating 4072 bytes after a total of 546328576 bytes



On Thu, Nov 15, 2018 at 8:07 AM Mathieu Malaterre <malat@debian.org> wrote:
>
> On Wed, Nov 14, 2018 at 3:35 PM YunQiang Su <wzssyqa@gmail.com> wrote:
> >
> > YunQiang Su <wzssyqa@gmail.com> 于2018年11月14日周三 下午10:29写道:
> > >
> > > With read as(1), I see
> > >
> > > --reduce-memory-overheads
> > > This option reduces GAS 's memory requirements, at the expense of
> > > making the assembly processes slower. Currently this switch is a
> > > synonym for --hash-size=4051, but in the future it may have other
> > > effects as well.
> > >
> > > I guess you can have a try.
> >
> > If you need pass this option from gcc, you can use
> >    -Wa,option
> >
> > https://gcc.gnu.org/onlinedocs/gcc/Assembler-Options.html#Assembler-Options
>
> Thanks for the suggestion ! That looked promising, however this did
> not turn out well:
>
> https://buildd.debian.org/status/fetch.php?pkg=openvdb&arch=mips&ver=5.2.0-2&stamp=1542229604&raw=0
>
> As a side note, the message went from:
>
> as: out of memory allocating 4072 bytes after a total of 546328576 bytes
>
> to
>
> as: out of memory allocating 4072 bytes after a total of 557305856 bytes
>
> So I would even be tempted to report a bug to gcc/gas...

So it turns out that simply using -g1 seems to fix all the symptoms on
mips/mipsel (virtual memory exhausted: Cannot allocate memory
). Found it reference in:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890237

OpenVDB is now building fine on mips/el.


>
>
> > > Mathieu Malaterre <malat@debian.org> 于2018年11月9日周五 下午5:14写道:
> > > >
> > > > Hi mips guru,
> > > >
> > > > Could someone please comment on:
> > > >
> > > > https://buildd.debian.org/status/fetch.php?pkg=openvdb&arch=mips&ver=5.2.0-1&stamp=1541130852&raw=0
> > > >
> > > > Is there a set of flags to use to reduce memory usage on 32bits system
> > > > ? For reference I am using : --param ggc-min-expand=10 -O1
> > > >
> > > > Thanks much
> > > >
> > >
> > >
> > > --
> > > YunQiang Su
> >
> >
> >
> > --
> > YunQiang Su


Reply to: