Part Number: PROCESSOR-SDK-AM65X
Hello,
There appears to be an issue with certain TI recipes caching the BB_NUMBER_THREADS variable in a way that causes the taskhash/basehash value check to fail if BB_NUMBER_THREADS is changed in the conf/local.conf file in between builds. I can reproduce this issue with the following recipes ti-ipc-examples-linux ti-ipc-rtos osal-rtos and common-csl-ip-rtos, but I believe it can affect all recipes that include the ti-pdk.bbclass or ti-ipc-rtos.inc files. This issue seems to persist even if you run cleanall on the affected package, which I thought would clean up the sstate cache for the packages and fix the issue but doesn't seem to be the case.
To reproduce the issue with one package, set up a fresh Yocto directory with the oe-layertool-setup.sh pointing to the 05.03.00.07 or 06.00.00.07 configuration file per the Building the SDK documentation. Proceed through the Building the SDK documentation steps but stop at "$ MACHINE=am57xx-evm bitbake arago-base-tisdk-image". Instead, run the following:
MACHINE=am65xx-evm bitbake osal-rtos
MACHINE=am65xx-evm bitbake -f -c cleanall osal-rtos
Edit your conf/local.conf and change BB_NUMBER_THREADS to 4 and run the following:
MACHINE=am65xx-evm bitbake osal-rtos
This should cause errors similar to the following log:
ERROR: When reparsing /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_configure, the basehash value changed from 1696c51b9be80e9e8d65fcda7212df44 to e886dbd2f2dc9f27211a3f4d4fcea3ce. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_compile, the basehash value changed from 06b9f5aae08ea444f75eaf2edb9a4870 to a867128f5eba46962ce3393e39b62f02. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_configure, the basehash value changed from 1696c51b9be80e9e8d65fcda7212df44 to e886dbd2f2dc9f27211a3f4d4fcea3ce. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_compile, the basehash value changed from 06b9f5aae08ea444f75eaf2edb9a4870 to a867128f5eba46962ce3393e39b62f02. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_configure, the basehash value changed from 1696c51b9be80e9e8d65fcda7212df44 to e886dbd2f2dc9f27211a3f4d4fcea3ce. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_compile, the basehash value changed from 06b9f5aae08ea444f75eaf2edb9a4870 to a867128f5eba46962ce3393e39b62f02. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_configure, the basehash value changed from 1696c51b9be80e9e8d65fcda7212df44 to e886dbd2f2dc9f27211a3f4d4fcea3ce. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_compile, the basehash value changed from 06b9f5aae08ea444f75eaf2edb9a4870 to a867128f5eba46962ce3393e39b62f02. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_configure, the basehash value changed from 1696c51b9be80e9e8d65fcda7212df44 to e886dbd2f2dc9f27211a3f4d4fcea3ce. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_compile, the basehash value changed from 06b9f5aae08ea444f75eaf2edb9a4870 to a867128f5eba46962ce3393e39b62f02. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_configure, the basehash value changed from 1696c51b9be80e9e8d65fcda7212df44 to e886dbd2f2dc9f27211a3f4d4fcea3ce. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_compile, the basehash value changed from 06b9f5aae08ea444f75eaf2edb9a4870 to a867128f5eba46962ce3393e39b62f02. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_configure, the basehash value changed from 1696c51b9be80e9e8d65fcda7212df44 to e886dbd2f2dc9f27211a3f4d4fcea3ce. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_compile, the basehash value changed from 06b9f5aae08ea444f75eaf2edb9a4870 to a867128f5eba46962ce3393e39b62f02. The metadata is not deterministic and this needs to be fixed.
ERROR: osal-rtos-01.00.00.15A-r0.0 do_configure: Taskhash mismatch c25e0a356da49bba18b84084631ca6ed versus 80255794a8f05d198c56e9efc517019b for /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_configure
ERROR: Taskhash mismatch c25e0a356da49bba18b84084631ca6ed versus 80255794a8f05d198c56e9efc517019b for /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_configure
ERROR: When reparsing /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_configure, the basehash value changed from 1696c51b9be80e9e8d65fcda7212df44 to e886dbd2f2dc9f27211a3f4d4fcea3ce. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_compile, the basehash value changed from 06b9f5aae08ea444f75eaf2edb9a4870 to a867128f5eba46962ce3393e39b62f02. The metadata is not deterministic and this needs to be fixed.
ERROR: osal-rtos-01.00.00.15A-r0.0 do_compile: Taskhash mismatch ef81f3d87a029932c97e03be6da58b4d versus 6010db069ee864382103af946c91a3ae for /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_compile
ERROR: Taskhash mismatch ef81f3d87a029932c97e03be6da58b4d versus 6010db069ee864382103af946c91a3ae for /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_compile
ERROR: When reparsing /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_configure, the basehash value changed from 1696c51b9be80e9e8d65fcda7212df44 to e886dbd2f2dc9f27211a3f4d4fcea3ce. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_compile, the basehash value changed from 06b9f5aae08ea444f75eaf2edb9a4870 to a867128f5eba46962ce3393e39b62f02. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_configure, the basehash value changed from 1696c51b9be80e9e8d65fcda7212df44 to e886dbd2f2dc9f27211a3f4d4fcea3ce. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_compile, the basehash value changed from 06b9f5aae08ea444f75eaf2edb9a4870 to a867128f5eba46962ce3393e39b62f02. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_configure, the basehash value changed from 1696c51b9be80e9e8d65fcda7212df44 to e886dbd2f2dc9f27211a3f4d4fcea3ce. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_compile, the basehash value changed from 06b9f5aae08ea444f75eaf2edb9a4870 to a867128f5eba46962ce3393e39b62f02. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_configure, the basehash value changed from 1696c51b9be80e9e8d65fcda7212df44 to e886dbd2f2dc9f27211a3f4d4fcea3ce. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_compile, the basehash value changed from 06b9f5aae08ea444f75eaf2edb9a4870 to a867128f5eba46962ce3393e39b62f02. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_configure, the basehash value changed from 1696c51b9be80e9e8d65fcda7212df44 to e886dbd2f2dc9f27211a3f4d4fcea3ce. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_compile, the basehash value changed from 06b9f5aae08ea444f75eaf2edb9a4870 to a867128f5eba46962ce3393e39b62f02. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_configure, the basehash value changed from 1696c51b9be80e9e8d65fcda7212df44 to e886dbd2f2dc9f27211a3f4d4fcea3ce. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /home/mmckee/dev/am6/oe-layersetup/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_compile, the basehash value changed from 06b9f5aae08ea444f75eaf2edb9a4870 to a867128f5eba46962ce3393e39b62f02. The metadata is not deterministic and this needs to be fixed.
If you 'cleanall' on the osal-rtos recipe and try to rebuild it, the errors will happen again. The variable change that causes the errors can be confirmed with 'bitbake-diffsigs -t osal-rtos do_configure' or with other task and package names:
$ MACHINE=am65xx-evm bitbake-diffsigs -t osal-rtos do_configure
NOTE: Starting bitbake server...
WARNING: Layer meta-processor-sdk should set LAYERSERIES_COMPAT_meta-processor-sdk in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer browser-layer should set LAYERSERIES_COMPAT_browser-layer in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer meta-processor-sdk should set LAYERSERIES_COMPAT_meta-processor-sdk in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer browser-layer should set LAYERSERIES_COMPAT_browser-layer in its conf/layer.conf file to list the core layer names it is compatible with.
basehash changed from 1696c51b9be80e9e8d65fcda7212df44 to e886dbd2f2dc9f27211a3f4d4fcea3ce
Variable BB_NUMBER_THREADS value changed from '3' to '4'
Is there a way to clear the cache for affected packages so that changing BB_NUMBER_THREADS doesn't cause this issue? Also, can an internal issue be created to fix this in the recipes?
Thanks,
Matt McKee