From: "Kemal R. Shakir" <[email protected]> Using BB_NUMBER_THREADS to set variables causes an "basehash value changed" error when BB_NUMBER_THREADS is changed between successive builds.
Fixes: ERROR: When reparsing .../meta-ti/recipes-ti/ipc/ti-ipc-rtos_git.bb.do_configure, the basehash value changed from 63897a188012cedde03f756b5dbbfa70 to 13b80bf4f4327c367bd201eb4aa32ad7. The metadata is not deterministic and this needs to be fixed. ERROR: When reparsing .../meta-ti/recipes-ti/ipc/ti-ipc-rtos_git.bb.do_compile, the basehash value changed from 2fb59a7db2a2f69d2c25c06c1b6a4245 to 314c664cc040afae2800fcc378dd9ae0. The metadata is not deterministic and this needs to be fixed. Steps to reproduce: BB_NUMBER_THREADS="3" bitbake ti-ipc-rtos BB_NUMBER_THREADS="4" bitbake -c cleansstate osal-rtos BB_NUMBER_THREADS="5" bitbake ti-ipc-rtos Reported here: https://e2e.ti.com/support/processors/f/791/p/825142/3059419 Patch from Kemal R. Shakir Reported-by: Matthew McKee (e-mail unknown) [Luca: add detailed commit message] Tested-by: Luca Ceresoli <[email protected]> Signed-off-by: Luca Ceresoli <[email protected]> --- I'm having the same problem and found this patch solving it on e2e.ti.com, but it does not appear on any git branch nor in the meta-ti mailing list. I tested it on the thud branch and fixes the problem. Can it be applied to both thud and future branches? Thanks --- classes/ti-pdk.bbclass | 2 +- recipes-ti/ipc/ti-ipc-rtos.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/ti-pdk.bbclass b/classes/ti-pdk.bbclass index f0e6f2d2738a..5f78bafa94b5 100644 --- a/classes/ti-pdk.bbclass +++ b/classes/ti-pdk.bbclass @@ -68,7 +68,7 @@ TI_PDK_DOXYGEN_SUPPORT ?= "1" TI_PDK_XDC_ARGS ?= "${TI_PDK_LIMIT_SOCS}" -PARALLEL_XDC = "--jobs=${BB_NUMBER_THREADS}" +PARALLEL_XDC = "--jobs=${@oe.utils.cpu_count()}" PARALLEL_MAKE = "" def get_doxygen_support(d): diff --git a/recipes-ti/ipc/ti-ipc-rtos.inc b/recipes-ti/ipc/ti-ipc-rtos.inc index dcd6309fe2ab..1b21375edd33 100644 --- a/recipes-ti/ipc/ti-ipc-rtos.inc +++ b/recipes-ti/ipc/ti-ipc-rtos.inc @@ -89,7 +89,7 @@ EXTRA_OEMAKE = "\ XDC_INSTALL_DIR="${XDC_INSTALL_DIR}" \ BIOS_INSTALL_DIR="${SYSBIOS_INSTALL_DIR}" \ ${IPC_TARGETS} \ - JOBS="--jobs=${BB_NUMBER_THREADS}" \ + JOBS="--jobs=${@oe.utils.cpu_count()}" \ JAVA_TOOL_OPTIONS=-Xss2560k \ " EXTRA_OEMAKE_append_am65xx = " PDK_INSTALL_DIR=${PDK_INSTALL_DIR}" -- 2.24.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12534): https://lists.yoctoproject.org/g/meta-ti/message/12534 Mute This Topic: https://lists.yoctoproject.org/mt/64369908/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
