Message ID | 20250307075610.2235124-1-martin.jansa@gmail.com |
---|---|
State | New |
Headers | show |
Series | [meta-tensorflow,scarthgap] tensorflow.inc: add write permission to 2 more directories | expand |
Hi, thank you for merging both, the way how you're applying the changes from e-mail still mangles the author and commit message. I've tried to add explicit From: in the e-mail body in hope to avoid "via lists.yoctoproject.org <martin.jansa=gmail.com@lists.yoctoproject.org>" but it didn't really help, instead the From: is still in the merged commit message together with "CAUTION: .." message from your e-mail configuration. meta-tensorflow $ git show -1 --pretty=fuller origin/scarthgap | head -n 14 commit c382865206fe925a02a1cdbdd856e16310bc9dbc Author: Martin Jansa via lists.yoctoproject.org <martin.jansa=gmail.com@lists.yoctoproject.org> AuthorDate: Fri Mar 7 08:56:10 2025 +0100 Commit: Hongxu Jia <hongxu.jia@windriver.com> CommitDate: Fri Mar 7 16:16:58 2025 +0800 tensorflow.inc: add write permission to 2 more directories CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. From: Martin Jansa <martin.jansa@gmail.com> Missing write permission prevents the WORKDIR to be deleted, e.g. when recipe becomes unreachable .... On Fri, Mar 7, 2025 at 8:56 AM <martin.jansa@gmail.com> wrote: > > From: Martin Jansa <martin.jansa@gmail.com> > > Missing write permission prevents the WORKDIR to be deleted, e.g. when recipe becames unreachable > > Removing 41 recipes from the core2-64 sysroot: 100% |##########################################################################################################################################################################| Time: 0:00:21 > Removing 35 recipes from the qemux86_64 sysroot: 100% |########################################################################################################################################################################| Time: 0:00:00 > ERROR: Execution of event handler 'sstate_eventhandler_reachablestamps' failed | ETA: 0:00:07 > Traceback (most recent call last): > File "/OE/build/oe-core/openembedded-core/meta/classes-global/sstate.bbclass", line 1293, in sstate_eventhandler_reachablestamps > bb.utils.remove(workdir, recurse = True) > ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/OE/build/oe-core/bitbake/lib/bb/utils.py", line 751, in remove > subprocess.check_call(cmd + ['rm', '-rf'] + glob.glob(path)) > ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/lib/python3.13/subprocess.py", line 421, in check_call > raise CalledProcessError(retcode, cmd) > subprocess.CalledProcessError: Command '['rm', '-rf', '/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0']' returned non-zero exit status 1. > > ERROR: Command execution failed: Traceback (most recent call last): > File "/OE/build/oe-core/bitbake/lib/bb/command.py", line 123, in runAsyncCommand > self.cooker.updateCache() > ~~~~~~~~~~~~~~~~~~~~~~~^^ > File "/OE/build/oe-core/bitbake/lib/bb/cooker.py", line 1646, in updateCache > bb.event.fire(event, self.databuilder.mcdata[mc]) > ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/OE/build/oe-core/bitbake/lib/bb/event.py", line 224, in fire > fire_class_handlers(event, d) > ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^ > File "/OE/build/oe-core/bitbake/lib/bb/event.py", line 131, in fire_class_handlers > execute_handler(name, handler, event, d) > ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/OE/build/oe-core/bitbake/lib/bb/event.py", line 102, in execute_handler > ret = handler(event, d) > File "/OE/build/oe-core/openembedded-core/meta/classes-global/sstate.bbclass", line 1293, in sstate_eventhandler_reachablestamps > bb.utils.remove(workdir, recurse = True) > ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/OE/build/oe-core/bitbake/lib/bb/utils.py", line 751, in remove > subprocess.check_call(cmd + ['rm', '-rf'] + glob.glob(path)) > ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/lib/python3.13/subprocess.py", line 421, in check_call > raise CalledProcessError(retcode, cmd) > subprocess.CalledProcessError: Command '['rm', '-rf', '/OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0']' returned non-zero exit status 1. > > Summary: There were 2 ERROR messages, returning a non-zero exit code. > > OE qemux86-64@ /OE/build/oe-core $ find /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/ > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/ > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python/schema_py_srcs_no_include_all > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python/schema_py_srcs_no_include_all/schema_generated.py > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/lite/python/schema_py_srcs_no_include_all/__init__.py > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/pip_package > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/pip_package/wheel_house > /OE/build/oe-core/tmp/work/x86_64-linux/tensorflow-native/2.17.0/bazel/output_base/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/pip_package/wheel_house/tensorflow-2.17.0-cp312-cp312-linux_x86_64.whl > > Signed-off-by: Martin Jansa <martin.jansa@gmail.com> > --- > recipes-framework/tensorflow/tensorflow.inc | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/recipes-framework/tensorflow/tensorflow.inc b/recipes-framework/tensorflow/tensorflow.inc > index e48808c..83e2d1a 100644 > --- a/recipes-framework/tensorflow/tensorflow.inc > +++ b/recipes-framework/tensorflow/tensorflow.inc > @@ -61,6 +61,9 @@ export TS_DL_DIR > > do_compile[network] = "1" > > +# Missing write permission prevents the WORKDIR to be deleted, e.g. when recipe becames unreachable > do_compile:append() { > chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/lite/python/conversion_metadata_schema_py_srcs_no_include_all || true > + chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/lite/python/schema_py_srcs_no_include_all || true > + chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/tools/pip_package/wheel_house || true > }
diff --git a/recipes-framework/tensorflow/tensorflow.inc b/recipes-framework/tensorflow/tensorflow.inc index e48808c..83e2d1a 100644 --- a/recipes-framework/tensorflow/tensorflow.inc +++ b/recipes-framework/tensorflow/tensorflow.inc @@ -61,6 +61,9 @@ export TS_DL_DIR do_compile[network] = "1" +# Missing write permission prevents the WORKDIR to be deleted, e.g. when recipe becames unreachable do_compile:append() { chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/lite/python/conversion_metadata_schema_py_srcs_no_include_all || true + chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/lite/python/schema_py_srcs_no_include_all || true + chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/tools/pip_package/wheel_house || true }