Yocto build fail (vulkan-validation-layers)

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

Yocto build fail (vulkan-validation-layers)

Jump to solution
1,171 Views
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 Kudos
Reply
1 Solution
1,151 Views
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

View solution in original post

0 Kudos
Reply
2 Replies
1,105 Views
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 Kudos
Reply
1,152 Views
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 Kudos
Reply