Help with Qt6 Yocto Build Failure (Ptest base )

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Help with Qt6 Yocto Build Failure (Ptest base )

Jump to solution
394 Views
yulyur1
Contributor II

MACHINE ??= 'imx8mp-lpddr4-evk'
DISTRO ?= 'fsl-imx-xwayland'
16 Gb RAM 

Hello everyone,

I’ve been trying to build imx-image-full for quite some time now, but I keep encountering the same error during the build process. The issue seems to occur specifically when compiling the qtbase module in the Yocto build. The error message I’m seeing is:

ninja: build stopped: subcommand failed
ERROR: Task (/home/yulyuri/yoc/sources/meta-qt6/recipes-qt/qt6/qtbase_git.bb:do_install_ptest_base) failed with exit code '1'

I’ve tried multiple solutions found on other forum posts, but they don’t seem to resolve the issue. Some of the steps I’ve taken include:

  • Running bitbake -c clean qtbase and then rebuilding the qtbase module.

  • Trying both Ubuntu 22.04 and 24.04.02 as the host system for building (same issue on both).

  • The issue is the same whether I’m building on my laptop or a different system.

At this point, I’m quite confused because the error persists despite these attempts. Could this be a RAM issue? I’ve heard some users have experienced build failures due to insufficient memory, especially in larger builds like this one. If anyone has encountered a similar issue or has suggestions on how to debug this further, I would greatly appreciate your help!!

Thanks in advance for any insights!

0 Kudos
Reply
1 Solution
346 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi @yulyur1 

This issue is likely due to the insufficient RAM.

You can try to increase RAM or reduce the number of parallel tasks to lower RAM usage, which can be set in local.conf.

Example:

BB_NUMBER_THREADS = "4"
PARALLEL_MAKE = "-j 4"

 

Regards

Harvey

View solution in original post

0 Kudos
Reply
1 Reply
347 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi @yulyur1 

This issue is likely due to the insufficient RAM.

You can try to increase RAM or reduce the number of parallel tasks to lower RAM usage, which can be set in local.conf.

Example:

BB_NUMBER_THREADS = "4"
PARALLEL_MAKE = "-j 4"

 

Regards

Harvey

0 Kudos
Reply