Yocto build fail (vulkan-validation-layers)

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

Yocto build fail (vulkan-validation-layers)

跳至解决方案
1,153 次查看
intosite
Contributor II

Running bitbake imx-image-multimedia, all passes but vulkan-validation-layers keeps failing. Unsure how to proceed.

Tried to bitbake vulkan-validation-layers -c clean, but still getting same error

ERROR: Task (/opt/yocto/imx-6.6.52-2.2.0-build/sources/poky/meta/recipes-graphics/vulkan/vulkan-validation-layers_1.3.275.0.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1669 tasks of which 1668 didn't need to be rerun and 1 failed.

Attached the log file.

0 项奖励
回复
1 解答
1,133 次查看
Harvey021
NXP TechSupport
NXP TechSupport

A few suggestions for you.

1> The error log indicates that insufficient system resources caused the compilation to terminate. So, suggest to check the number of CPU cores and memory of your HOST, as well as the number of parallel compilations, etc.

2> Follow up the section Host Setup> Yocto User Guide, like the version of Ubuntu, Host packages.

3> Try bitbake vulkan-validation-layers -c cleanall when you clean the one, then rebuild it.

 

Regards

Harvey

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,087 次查看
intosite
Contributor II

Thanks. 

Running on a 6core 12thread intel with 16GB ram.

Managed to get it to work by adding this to the local.conf

BB_NUMBER_THREADS = "2"
PARALLEL_MAKE = "-j2" 

 

0 项奖励
回复
1,134 次查看
Harvey021
NXP TechSupport
NXP TechSupport

A few suggestions for you.

1> The error log indicates that insufficient system resources caused the compilation to terminate. So, suggest to check the number of CPU cores and memory of your HOST, as well as the number of parallel compilations, etc.

2> Follow up the section Host Setup> Yocto User Guide, like the version of Ubuntu, Host packages.

3> Try bitbake vulkan-validation-layers -c cleanall when you clean the one, then rebuild it.

 

Regards

Harvey

0 项奖励
回复