Re: [poky] Error while bitbaking core-image-minimal using Poky 5.0.9 (Scarthgap) on VMware

Alexander Kanavin <[email protected]> Thu, 15 May 2025 14:42:35 +0200
Newsgroups org.yoctoproject.lists.poky
Message-ID <CANNYZj9dvakak38fZ2T7e=J6d7O7ZVPm_e=GFxmCLd-wTtnObA@mail.gmail.com>
On Thu, 15 May 2025 at 13:02, srivamsi_malladi via
lists.yoctoproject.org
<[email protected]> wrote:

> Now my questions are
> 1. Regarding the first error, I had to decrease the RAM to 8GB and cores to 2 which cured the error but increased the build time. Is there a better way to handle this without compromising on the build time?

If you run into out of memory issues, do not modify the parameters of
your (virtual) machine. Rather give it everything you can from the
physical hardware. More resources == faster builds. When out of memory
issues do happen, use bitbake settings (BB_NUMBER_THREADS,
PARALLEL_MAKE) to restrict the amount of processes that bitbake starts
at the same time. Especially for C++ code it's good to have at least 2
Gb of RAM per process, so reduce the amount of processes accordingly,
with safety margins.

> 2. Regarding the second error, did this occur because of some problems in my system? Or is this a known error with Poky Scarthgap?

I suspect your build directory became misconfigured after one of the
out of memory fails. It helps to erase build/tmp/ and try again; if it
occurs again, then there might be something else.

Alex