Help with Qt6 Yocto Build Failure (Ptest base )

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Help with Qt6 Yocto Build Failure (Ptest base )

跳至解决方案
420 次查看
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 项奖励
回复
1 解答
372 次查看
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 项奖励
回复
1 回复
373 次查看
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 项奖励
回复