Changing BB_NUMBER_THREADS between successive builds causes a "basehash
value changed" error. Fix by using vardepsexclude since the parallelism is
supposed to not modify the build result.

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 ti-ipc-examples-linux
  BB_NUMBER_THREADS="4" bitbake -c cleansstate osal-rtos
  BB_NUMBER_THREADS="5" bitbake ti-ipc-rtos ti-ipc-examples-linux

Reported here: https://e2e.ti.com/support/processors/f/791/p/825142/3059419
Reported-by: Matthew McKee (e-mail unknown)
Suggested-by: Khem Raj <raj.k...@gmail.com>
Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net>
---
 classes/ti-pdk.bbclass         | 2 ++
 recipes-ti/ipc/ti-ipc-rtos.inc | 1 +
 2 files changed, 3 insertions(+)

diff --git a/classes/ti-pdk.bbclass b/classes/ti-pdk.bbclass
index f0e6f2d2738a..203f26c498f2 100644
--- a/classes/ti-pdk.bbclass
+++ b/classes/ti-pdk.bbclass
@@ -84,6 +84,7 @@ EXTRA_OEMAKE = " \
     ${@get_doxygen_support(d)} \
 "
 
+do_configure[vardepsexclude] = "PARALLEL_XDC"
 do_configure() {
     BUILD_DIR=${B}/`get_build_dir_bash`
 
@@ -113,6 +114,7 @@ do_configure() {
 
 }
 
+do_compile[vardepsexclude] = "PARALLEL_XDC"
 do_compile() {
 
     if [ "${TI_PDK_XDCMAKE}" == "1" ]
diff --git a/recipes-ti/ipc/ti-ipc-rtos.inc b/recipes-ti/ipc/ti-ipc-rtos.inc
index dcd6309fe2ab..3935568a4ed8 100644
--- a/recipes-ti/ipc/ti-ipc-rtos.inc
+++ b/recipes-ti/ipc/ti-ipc-rtos.inc
@@ -84,6 +84,7 @@ IPC_TARGETS_am65xx = "\
     ti.targets.arm.elf.R5F="${M4_TOOLCHAIN_INSTALL_DIR}" \
 "
 
+EXTRA_OEMAKE[vardepsexclude] = "BB_NUMBER_THREADS"
 EXTRA_OEMAKE = "\
     PLATFORM=${PLATFORM} \
     XDC_INSTALL_DIR="${XDC_INSTALL_DIR}" \
-- 
2.24.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12537): 
https://lists.yoctoproject.org/g/meta-ti/message/12537
Mute This Topic: https://lists.yoctoproject.org/mt/64753917/21656
Group Owner: meta-ti+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to