Bug 11636

Summary: 32bit x86 piglit builds fail on Ubuntu 17.04 host
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Joshua Lock <joshuagloe>
Component: graphicsAssignee: Jussi Kukkonen <jku>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, ross.burton
Version: 2.4   
Target Milestone: 2.4 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on:    
Bug Blocks: 11608    

Description Joshua Lock 2017-06-08 14:52:04 UTC
When building piglit for i586 and x32 targets on Ubuntu 17.04 do_compile fails.

Logs at: https://bugzilla.yoctoproject.org/attachment.cgi?id=3803
https://bugzilla.yoctoproject.org/attachment.cgi?id=3804
Comment 1 Jussi Kukkonen 2017-06-08 15:16:12 UTC
> cc1: out of memory allocating 383299568 bytes after a total of 4548345856 bytes

> internal compiler error: Killed (program cc1)


So running out of memory. 4.5 Gb does sound excessive.
Comment 2 Jussi Kukkonen 2017-06-09 12:06:46 UTC
> > cc1: out of memory allocating 383299568 bytes after a total of 4548345856 bytes
> 
> > internal compiler error: Killed (program cc1)
> 
> So running out of memory. 4.5 Gb does sound excessive.

Well, I kept an eye on a normal build and ... it does seem to use Gigabytes of memory. Did the VM have less memory than autobuilders typically do?
Comment 3 Jussi Kukkonen 2017-06-09 12:08:52 UTC
(In reply to comment #2)
> Did the VM have less memory than autobuilders typically do?

That might have been a meaningless question: piglit probably isn't part of any autobuilder images (unless there's a world build).
Comment 4 Joshua Lock 2017-06-09 12:19:16 UTC
According to the blocked bug # 11608 this is during a nightly-world: 

"Ubuntu17.04 past all test-matrix except nightly-world, you said that this issue is because the host is running out of memory and OOMing the webkit build, but the host has 32Gb of RAM."
Comment 5 Jussi Kukkonen 2017-06-13 19:33:53 UTC
Closing as not a bug: the test machine had less swap than the current autobuilder instances and run out of memory. Both piglit and especially webkit have very high peak memory usage: 32 GB may not be enough for a world build if large values of PARALLEL_MAKE are used.