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

2018-11-14 Thread Mathieu Malaterre
On Wed, Nov 14, 2018 at 3:35 PM YunQiang Su  wrote:
>
> YunQiang Su  于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=mips=5.2.0-2=1542229604=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...



> > Mathieu Malaterre  于2018年11月9日周五 下午5:14写道:
> > >
> > > Hi mips guru,
> > >
> > > Could someone please comment on:
> > >
> > > https://buildd.debian.org/status/fetch.php?pkg=openvdb=mips=5.2.0-1=1541130852=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



Re: Bug#913709: boost1.67: intermitent FTBFS on mips64el: build hangs

2018-11-14 Thread Emilio Pozuelo Monfort
Hi Giovanni,

On 14/11/2018 10:29, Giovanni Mascellani wrote:
> Hi,
> 
> Il 14/11/18 09:56, Emilio Pozuelo Monfort ha scritto:
>> Your package fails to build quite often on mips64el, where the build gets
>> killed due to inactivity:
>>
>> Cannot find class named 'action'
>> Cannot find class named 'action'
>> Cannot find class named 'file-target'
>> Cannot find class named 'generator'
>> Cannot find class named 'generator'
>> Cannot find class named 'std::bad_cast'
>> E: Build killed with signal TERM after 150 minutes of inactivity
>>
>> This  may be due to an actual hang, or something just taking so long
>> that causes the build to get killed.
> 
> Thanks for bringing this up. Actually, I was concerned about the same
> thing, but I do not really know what is the way forward here.
> 
> The "Cannot find class" messages are harmless: they are produced on all
> architectures and are not fatal. It is not a compiler that produces
> them, but a documentation postprocessor. So the worse that can happen is
> that some internal links in the documentation are broken or ignored.
> 
> Looking at [1] and comparing with [2] it seems that the compilation
> takes much longer when compiled on a "Loongson 3A" machine then when
> compiled on a "Cavium Octeon III" machine. MIPS porters, is this
> sensible? The longer compilation time (apparently ~8.5h vs ~4.75h)
> triggers the build node timeout. However this is probably a close call,
> because version 1.67.0-6 managed to finish even when building on a
> weaker machine.
> 
>  [1] https://buildd.debian.org/status/logs.php?pkg=boost1.67=mips64el
>  [2]
> https://wiki.debian.org/MIPSPort?action=show=mips64el#Build_daemons_.26_porter_boxes
> 
> I am not sure of what is the way forward here: can larger packages, like
> boost, be forced to compile on stronger machines? Or can the timeout be
> raised for larger packages? Or is there anything that can I due within
> the package compilation script to avoid triggering timeout? (although
> this last road seems to be risky, as it might then prevent triggering
> the timeout for an actually stuck build process). In line of principle
> even the current situation can somewhat be tolerated, since it is enough
> to reschedule the build until it gets a strong machine. However, that
> does not seem optimal.

Yeah, it's not.

Some questions which may help solve this:

- What is happening when the build hangs? Is xsltproc still running, just being
too slow / taking way too long?
- Note that the inactivity timeout gets triggered only if there are no new lines
printed in the timeout period. So can xsltproc or whatever is getting killed be
made more verbose?
- Is this just generating documentation? The -doc package is architecture: all,
can't we just skip building the docs on binary-arch builds?

Cheers,
Emilio



Re: Bug#913709: boost1.67: intermitent FTBFS on mips64el: build hangs

2018-11-14 Thread Giovanni Mascellani
Hi,

Il 14/11/18 18:16, Emilio Pozuelo Monfort ha scritto:
> Some questions which may help solve this:
> 
> - What is happening when the build hangs? Is xsltproc still running, just 
> being
> too slow / taking way too long?

I believe so, since apparently, even on the slow builders, given enough
time it completes successfully. I haven't checked this first-hand, though.

> - Note that the inactivity timeout gets triggered only if there are no new 
> lines
> printed in the timeout period. So can xsltproc or whatever is getting killed 
> be
> made more verbose?

I can try. But probably the third one is the most important point.

> - Is this just generating documentation? The -doc package is architecture: 
> all,
> can't we just skip building the docs on binary-arch builds?

Fair point. That's definitely might be something to fix in the
packaging. I'll try to check this thing. However, I will be away out of
town and without my usual computing resources for a few days (more or
less until next Tuesday), so I am not sure if I will be able to do this
quickly.

Thanks, Giovanni.
-- 
Giovanni Mascellani 
Postdoc researcher - Université Libre de Bruxelles



signature.asc
Description: OpenPGP digital signature


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

2018-11-14 Thread YunQiang Su
YunQiang Su  于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

> Mathieu Malaterre  于2018年11月9日周五 下午5:14写道:
> >
> > Hi mips guru,
> >
> > Could someone please comment on:
> >
> > https://buildd.debian.org/status/fetch.php?pkg=openvdb=mips=5.2.0-1=1541130852=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



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

2018-11-14 Thread YunQiang Su
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.
Mathieu Malaterre  于2018年11月9日周五 下午5:14写道:
>
> Hi mips guru,
>
> Could someone please comment on:
>
> https://buildd.debian.org/status/fetch.php?pkg=openvdb=mips=5.2.0-1=1541130852=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



Re: Bug#913709: boost1.67: intermitent FTBFS on mips64el: build hangs

2018-11-14 Thread Giovanni Mascellani
Hi,

Il 14/11/18 09:56, Emilio Pozuelo Monfort ha scritto:
> Your package fails to build quite often on mips64el, where the build gets
> killed due to inactivity:
> 
> Cannot find class named 'action'
> Cannot find class named 'action'
> Cannot find class named 'file-target'
> Cannot find class named 'generator'
> Cannot find class named 'generator'
> Cannot find class named 'std::bad_cast'
> E: Build killed with signal TERM after 150 minutes of inactivity
> 
> This  may be due to an actual hang, or something just taking so long
> that causes the build to get killed.

Thanks for bringing this up. Actually, I was concerned about the same
thing, but I do not really know what is the way forward here.

The "Cannot find class" messages are harmless: they are produced on all
architectures and are not fatal. It is not a compiler that produces
them, but a documentation postprocessor. So the worse that can happen is
that some internal links in the documentation are broken or ignored.

Looking at [1] and comparing with [2] it seems that the compilation
takes much longer when compiled on a "Loongson 3A" machine then when
compiled on a "Cavium Octeon III" machine. MIPS porters, is this
sensible? The longer compilation time (apparently ~8.5h vs ~4.75h)
triggers the build node timeout. However this is probably a close call,
because version 1.67.0-6 managed to finish even when building on a
weaker machine.

 [1] https://buildd.debian.org/status/logs.php?pkg=boost1.67=mips64el
 [2]
https://wiki.debian.org/MIPSPort?action=show=mips64el#Build_daemons_.26_porter_boxes

I am not sure of what is the way forward here: can larger packages, like
boost, be forced to compile on stronger machines? Or can the timeout be
raised for larger packages? Or is there anything that can I due within
the package compilation script to avoid triggering timeout? (although
this last road seems to be risky, as it might then prevent triggering
the timeout for an actually stuck build process). In line of principle
even the current situation can somewhat be tolerated, since it is enough
to reschedule the build until it gets a strong machine. However, that
does not seem optimal.

Thanks, Giovanni.
-- 
Giovanni Mascellani 
Postdoc researcher - Université Libre de Bruxelles



signature.asc
Description: OpenPGP digital signature


Bug#913709: boost1.67: intermitent FTBFS on mips64el: build hangs

2018-11-14 Thread Emilio Pozuelo Monfort
Source: boost1.67
Version: 1.67.0-9
Severity: serious

Hi,

Your package fails to build quite often on mips64el, where the build gets
killed due to inactivity:

Cannot find class named 'action'
Cannot find class named 'action'
Cannot find class named 'file-target'
Cannot find class named 'generator'
Cannot find class named 'generator'
Cannot find class named 'std::bad_cast'
E: Build killed with signal TERM after 150 minutes of inactivity

This  may be due to an actual hang, or something just taking so long
that causes the build to get killed.

Cheers,
Emilio

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (800, 'unstable'), (700, 'experimental'), (650, 'testing'), (500, 
'unstable-debug'), (500, 'testing-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf

Kernel: Linux 4.18.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8), LANGUAGE=en_GB:en 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled