Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 874E3C3ABC9 for ; Thu, 15 May 2025 11:02:18 +0000 (UTC) Subject: Error while bitbaking core-image-minimal using Poky 5.0.9 (Scarthgap) on VMware To: poky@lists.yoctoproject.org From: srivamsi_malladi@trimble.com X-Originating-Location: Cologne, North Rhine-Westphalia, DE (80.154.9.237) X-Originating-Platform: Windows Chrome 136 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Thu, 15 May 2025 04:02:17 -0700 Message-ID: <7iAm.1747306937631397189.DLQB@lists.yoctoproject.org> Content-Type: multipart/alternative; boundary="i7UX7cie2kwP0JGw4rnw" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 15 May 2025 11:02:18 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/poky/message/13618 --i7UX7cie2kwP0JGw4rnw Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello all, TL;DR: I ran into a couple of errors and fixed them with the help of Gemini= . I would like to know if there are any better solutions to solve these err= ors. I am absolutely new to the Yocto project and Poky, so I thought I will so a= 'hello world' kind of thing with Poky. For that, I setup a VMware with Ubu= ntu 22.04 LTS and with 27.7GB RAM and 16 cores hardware config. My host com= puter is a i9-13th gen with 32GB RAM running Windows. I chose the really hi= gh (max actually) RAM and cores thinking I would have a really fast VM, but= due to the problems I ran into, I realized more RAM, mores cores !=3D more= performance. So, following is the problem I ran into. When I bitbake core-image-minimal in terminal, I got an error saying do_com= pile failed on gcc 13.0.1 and when I looked at the log, it said error x86_6= 4-poky-linux-g++: fatal error: Killed signal terminated program cc1plus. After spending some time on Google and some forums, I found that my VM migh= t be fighting with my host PC for resources and in this process, the tasks = that bitbake wants to run (compiling gcc in this case) are not able to get = enough PC resources due to which cc1plus got terminated which is needed in = the process. I tried reducing the RAM to 16GB and cores to 8 and then to 4, the error st= ill remained. After reducing the RAM to 8GB and cores to 2, gcc could final= ly compile, but I ran into another error. When I run bitbake core-image-minimal, I get an error and following are the= contents of the corresponding log file >=20 >=20 >=20 > DEBUG: Executing python function extend_recipe_sysroot >=20 >=20 >=20 > NOTE: Direct dependencies are > ['/home/ubuntu2204/work/poky/meta/recipes-devtools/quilt/quilt-native_0.6= 7.bb:do_populate_sysroot'] >=20 >=20 >=20 >=20 > NOTE: Installed into sysroot: [] >=20 >=20 >=20 > NOTE: Skipping as already exists in sysroot: ['quilt-native'] >=20 >=20 >=20 > DEBUG: Python function extend_recipe_sysroot finished >=20 >=20 >=20 > DEBUG: Executing python function do_patch >=20 >=20 >=20 > DEBUG: Executing python function patch_do_patch >=20 >=20 >=20 > DEBUG: Searching for > 0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch in paths: >=20 >=20 >=20 > /home/ubuntu2204/work/poky/meta/recipes-devtools/createrepo-c/createrepo-= c-1.0.4/poky >=20 >=20 >=20 >=20 > /home/ubuntu2204/work/poky/meta/recipes-devtools/createrepo-c/createrepo-= c/poky >=20 >=20 >=20 >=20 > /home/ubuntu2204/work/poky/meta/recipes-devtools/createrepo-c/files/poky >=20 >=20 >=20 > /home/ubuntu2204/work/poky/meta/recipes-devtools/createrepo-c/createrepo-= c-1.0.4/ >=20 >=20 >=20 >=20 > /home/ubuntu2204/work/poky/meta/recipes-devtools/createrepo-c/createrepo-= c/ >=20 >=20 >=20 >=20 > /home/ubuntu2204/work/poky/meta/recipes-devtools/createrepo-c/files/ >=20 >=20 >=20 > /home/ubuntu2204/work/poky/meta/recipes-devtools/createrepo-c/createrepo-= c-1.0.4/x86-64 >=20 >=20 >=20 >=20 > /home/ubuntu2204/work/poky/meta/recipes-devtools/createrepo-c/createrepo-= c/x86-64 >=20 >=20 >=20 >=20 > /home/ubuntu2204/work/poky/meta/recipes-devtools/createrepo-c/files/x86-6= 4 >=20 >=20 >=20 >=20 > /home/ubuntu2204/work/poky/meta/recipes-devtools/createrepo-c/createrepo-= c-1.0.4/ >=20 >=20 >=20 >=20 > /home/ubuntu2204/work/poky/meta/recipes-devtools/createrepo-c/createrepo-= c/ >=20 >=20 >=20 >=20 > /home/ubuntu2204/work/poky/meta/recipes-devtools/createrepo-c/files/ >=20 >=20 >=20 > DEBUG: Using > /home/ubuntu2204/work/poky/meta/recipes-devtools/createrepo-c/createrepo-= c/0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch > for 0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch >=20 >=20 >=20 > DEBUG: Searching for 0001-include-rpm-rpmstring.h.patch in paths: >=20 >=20 >=20 > /home/ubuntu2204/work/poky/meta/recipes-devtools/createrepo-c/createrepo-= c-1.0.4/poky >=20 >=20 >=20 >=20 > /home/ubuntu2204/work/poky/meta/recipes-devtools/createrepo-c/createrepo-= c/poky >=20 >=20 >=20 >=20 > /home/ubuntu2204/work/poky/meta/recipes-devtools/createrepo-c/files/poky >=20 >=20 >=20 > /home/ubuntu2204/work/poky/meta/recipes-devtools/createrepo-c/createrepo-= c-1.0.4/ >=20 >=20 >=20 >=20 > /home/ubuntu2204/work/poky/meta/recipes-devtools/createrepo-c/createrepo-= c/ >=20 >=20 >=20 >=20 > /home/ubuntu2204/work/poky/meta/recipes-devtools/createrepo-c/files/ >=20 >=20 >=20 > /home/ubuntu2204/work/poky/meta/recipes-devtools/createrepo-c/createrepo-= c-1.0.4/x86-64 >=20 >=20 >=20 >=20 > /home/ubuntu2204/work/poky/meta/recipes-devtools/createrepo-c/createrepo-= c/x86-64 >=20 >=20 >=20 >=20 > /home/ubuntu2204/work/poky/meta/recipes-devtools/createrepo-c/files/x86-6= 4 >=20 >=20 >=20 >=20 > /home/ubuntu2204/work/poky/meta/recipes-devtools/createrepo-c/createrepo-= c-1.0.4/ >=20 >=20 >=20 >=20 > /home/ubuntu2204/work/poky/meta/recipes-devtools/createrepo-c/createrepo-= c/ >=20 >=20 >=20 >=20 > /home/ubuntu2204/work/poky/meta/recipes-devtools/createrepo-c/files/ >=20 >=20 >=20 > DEBUG: Using > /home/ubuntu2204/work/poky/meta/recipes-devtools/createrepo-c/createrepo-= c/0001-include-rpm-rpmstring.h.patch > for 0001-include-rpm-rpmstring.h.patch >=20 >=20 >=20 > NOTE: Applying patch > '0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch' > (../meta/recipes-devtools/createrepo-c/createrepo-c/0001-Do-not-set-PYTHO= N_INSTALL_DIR-by-running-python.patch) >=20 >=20 >=20 >=20 > ERROR: Applying patch > '0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch' on target > directory > '/home/ubuntu2204/work/poky/build/tmp/work/x86_64-linux/createrepo-c-nati= ve/1.0.4/git' >=20 >=20 >=20 >=20 > CmdError('quilt --quiltrc > /home/ubuntu2204/work/poky/build/tmp/work/x86_64-linux/createrepo-c-nativ= e/1.0.4/recipe-sysroot-native/etc/quiltrc > push', 0, 'stdout: >=20 >=20 >=20 > stderr: /bin/sh: 1: quilt: not found >=20 >=20 >=20 > ') >=20 >=20 >=20 > DEBUG: Python function patch_do_patch finished >=20 >=20 >=20 > DEBUG: Python function do_patch finished >=20 >=20 I asked Gemini about the error and it suggested installing quilt. But it wa= s already installed. Then I gave it the whole log file and then it explained that quilt-native i= s available in sysroot but not in PATH and so asked me to create a new laye= r with do_patch:prepend() where I should add the bindir (which should be /u= sr/bin in the sysroot) to PATH. This fixed the error. 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 wa= y to handle this without compromising on the build time? 2. Regarding the second error, did this occur because of some problems in m= y system? Or is this a known error with Poky Scarthgap? Thanks & Regards, Srivamsi Malladi. --i7UX7cie2kwP0JGw4rnw Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Hello all,
 
TL;DR: I ran into a couple of errors and fixed them with the help of G= emini. I would like to know if there are any better solutions to solve thes= e errors.
 
I am absolutely new to the Yocto project and Poky, so I thought I will= so a 'hello world' kind of thing with Poky. For that, I setup a VMware wit= h Ubuntu 22.04 LTS and with 27.7GB RAM and 16 cores hardware config. My hos= t computer is a i9-13th gen with 32GB RAM running Windows. I chose the real= ly high (max actually) RAM and cores thinking I would have a really fast VM= , but due to the problems I ran into, I realized more RAM, mores cores !=3D= more performance. So, following is the problem I ran into.
 
When I bitbake core-image-minimal in terminal, I got an error saying <= em>do_compile failed on gcc 13.0.1 and when I looked at the log, it sa= id error x86_64-poky-l= inux-g++: fatal error: Killed signal terminated program cc1plus.=
After spending some time on Google and some forums, I found that my VM= might be fighting with my host PC for resources and in this process, the t= asks that bitbake wants to run (compiling gcc in this case) are not able to= get enough PC resources due to which cc1plus got terminated which is neede= d in the process.
I tried reducing the RAM to 16GB and cores to 8 and then to 4, the err= or still remained. After reducing the RAM to 8GB and cores to 2, gcc could = finally compile, but I ran into another error.
 

When I run bitbake core-image= -minimal, I get an error and following are the contents of the correspondin= g log file

DEBUG: Executing python function extend_recipe_sysr= oot

NOTE: Direct dependencies are ['/home/ubuntu2204/wo= rk/poky/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroo= t']

NOTE: Installed into sysroot: []

NOTE: Skipping as already exists in sysroot: ['quil= t-native']

DEBUG: Python function extend_recipe_sysroot finish= ed

DEBUG: Executing python function do_patch

DEBUG: Executing python function patch_do_patch

DEBUG: Searching for 0001-Do-not-set-PYTHON_INSTALL= _DIR-by-running-python.patch in paths:

    /home/ubuntu2204/work/poky/meta/recip= es-devtools/createrepo-c/createrepo-c-1.0.4/poky

    /home/ubuntu2204/work/poky/meta/recip= es-devtools/createrepo-c/createrepo-c/poky

    /home/ubuntu2204/work/poky/meta/recip= es-devtools/createrepo-c/files/poky

    /home/ubuntu2204/work/poky/meta/recip= es-devtools/createrepo-c/createrepo-c-1.0.4/

    /home/ubuntu2204/work/poky/meta/recip= es-devtools/createrepo-c/createrepo-c/

    /home/ubuntu2204/work/poky/meta/recip= es-devtools/createrepo-c/files/

    /home/ubuntu2204/work/poky/meta/recip= es-devtools/createrepo-c/createrepo-c-1.0.4/x86-64

    /home/ubuntu2204/work/poky/meta/recip= es-devtools/createrepo-c/createrepo-c/x86-64

    /home/ubuntu2204/work/poky/meta/recip= es-devtools/createrepo-c/files/x86-64

    /home/ubuntu2204/work/poky/meta/recip= es-devtools/createrepo-c/createrepo-c-1.0.4/

    /home/ubuntu2204/work/poky/meta/recip= es-devtools/createrepo-c/createrepo-c/

    /home/ubuntu2204/work/poky/meta/recip= es-devtools/createrepo-c/files/

DEBUG: Using /home/ubuntu2204/work/poky/meta/recipe= s-devtools/createrepo-c/createrepo-c/0001-Do-not-set-PYTHON_INSTALL_DIR-by-= running-python.patch for 0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-pyth= on.patch

DEBUG: Searching for 0001-include-rpm-rpmstring.h.p= atch in paths:

    /home/ubuntu2204/work/poky/meta/recip= es-devtools/createrepo-c/createrepo-c-1.0.4/poky

    /home/ubuntu2204/work/poky/meta/recip= es-devtools/createrepo-c/createrepo-c/poky

    /home/ubuntu2204/work/poky/meta/recip= es-devtools/createrepo-c/files/poky

    /home/ubuntu2204/work/poky/meta/recip= es-devtools/createrepo-c/createrepo-c-1.0.4/

    /home/ubuntu2204/work/poky/meta/recip= es-devtools/createrepo-c/createrepo-c/

    /home/ubuntu2204/work/poky/meta/recip= es-devtools/createrepo-c/files/

    /home/ubuntu2204/work/poky/meta/recip= es-devtools/createrepo-c/createrepo-c-1.0.4/x86-64

    /home/ubuntu2204/work/poky/meta/recip= es-devtools/createrepo-c/createrepo-c/x86-64

    /home/ubuntu2204/work/poky/meta/recip= es-devtools/createrepo-c/files/x86-64

    /home/ubuntu2204/work/poky/meta/recip= es-devtools/createrepo-c/createrepo-c-1.0.4/

    /home/ubuntu2204/work/poky/meta/recip= es-devtools/createrepo-c/createrepo-c/

    /home/ubuntu2204/work/poky/meta/recip= es-devtools/createrepo-c/files/

DEBUG: Using /home/ubuntu2204/work/poky/meta/recipe= s-devtools/createrepo-c/createrepo-c/0001-include-rpm-rpmstring.h.patch for= 0001-include-rpm-rpmstring.h.patch

NOTE: Applying patch '0001-Do-not-set-PYTHON_INSTAL= L_DIR-by-running-python.patch' (../meta/recipes-devtools/createrepo-c/creat= erepo-c/0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch)<= /p>

ERROR: Applying patch '0001-Do-not-set-PYTHON_INSTA= LL_DIR-by-running-python.patch' on target directory '/home/ubuntu2204/work/= poky/build/tmp/work/x86_64-linux/createrepo-c-native/1.0.4/git'

CmdError('quilt --quiltrc /home/ubuntu2204/work/pok= y/build/tmp/work/x86_64-linux/createrepo-c-native/1.0.4/recipe-sysroot-nati= ve/etc/quiltrc push', 0, 'stdout: 

stderr: /bin/sh: 1: quilt: not found

')

DEBUG: Python function patch_do_patch finished

DEBUG: Python function do_patch finished

I asked Gemini about the error and it suggested installing quilt. But = it was already installed.
Then I gave it the whole log file and then it explained that quilt-nat= ive is available in sy= sroot but not in do_patch:prepend()where I should = add the bindir = (which should be /usr/bin in the sysroot) to PATH.
This fixed t= he error.
 
Now my quest= ions are
1. Regarding= the first error, I had to decrease the RAM to 8GB and cores to 2 which cur= ed the error but increased the build time. Is there a better way to handle = this without compromising on the build time?
2. Regarding the secon= d error, did this occur because of some problems in my system? Or is this a= known error with Poky Scarthgap?
 
Thanks &= Regards,
Srivamsi Mal= ladi.
 
 
 
 
 
 

 

--i7UX7cie2kwP0JGw4rnw--