- 29 Jun, 2023 2 commits
-
-
Hongxu Jia authored
The command bazel is a binary of a self-extracting zip file, call patchelf-uninative on it may break it occasionally ... bazel/bazel.real: Input/output error ... Due to commit [89bb76dc bazel.bbclass: Fix build with bazel from sstate-cache] has called patchelf-uninative on the extracted binaries, disable uninative on bazel command Signed-off-by:
Hongxu Jia <hongxu.jia@windriver.com>
-
Hongxu Jia authored
After gcc is upgraded to 13.1, a compile error: |external/boringssl/src/crypto/bytestring/cbb.c:388:14: error: storing the address of local variable 'child' in '*cbb.child' [-Werror=dangling-pointer=] | 388 | cbb->child = out_contents; | | ~~~~~~~~~~~^~~~~~~~~~~~~~ Add -Wno-dangling-pointer to workaround the error ... |tensorflow/lite/kernels/internal/spectrogram.cc:46:22: error: 'uint32_t' was not declared in this scope | 46 | inline int Log2Floor(uint32_t n) { | ^~~~~~~~ |tensorflow/lite/kernels/internal/spectrogram.cc:20:1: note: 'uint32_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'? ... Add '#include <cstdint>' Signed-off-by:
Hongxu Jia <hongxu.jia@windriver.com>
-
- 25 Jun, 2023 1 commit
-
-
Hongxu Jia authored
Signed-off-by:
Hongxu Jia <hongxu.jia@windriver.com>
-
- 02 Jun, 2023 2 commits
-
-
Tomasz Dziendzielski authored
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. Random errors can occur when bazel is taken from sstate-cache and the dynamic loader is no longer available. Setting DYNAMIC_LOADER and letting populate_sysroot_setscene modify the UNINATIVE_LOADER is not enough. That way we just modify the loader of bazel binary, but bazel is also a self-extracting zip file with built-in binaries that need dynamic loader modification to work. Eample error, as you can see it's quite misleading: | An error occurred during the fetch of repository 'local_config_cuda' | Cuda Configuration Error: Invalid cpu_value | Skipping 'tensorflow/lite/tools/benchmark:benchmark_model': no such package '@local_config_cuda//cuda To fix this in do_configure execute bazel version to unpack output_user_root and run patchelf-uninative on the ELF executables. Then change modification time to some future date so that bazel does not see the modification. Signed-off-by:
Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com>
-
Tomasz Dziendzielski authored
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. Using TOPDIR variable breaks the sstate-cache every time build directory changes totally breaking build from sstate-cache among different workspaces. Changing that to TMPDIR that is included in BB_HASHEXCLUDE_COMMON. Another thing is disabling the UNINATIVE_LOADER, causing sstate-cache artifacts not working in different workspaces. On populate_sysroot_setscene patchelf-uninative --set-interpreter with empty argument is ran which does not change the interpreter path and then bazel binary ends up with path to the interpreter that might not exist, since the bazel was taken from sstate-cache. Removing the UNINATIVE_LOADER = "" so that uninative.bbclass can correctly replace the interpreter path and make bazel binary usable. One could think that it will reintroduce the original issue behind disabling uninative, which was some java file corrupted (see commit dd7642b6 ), but I think we don't have this problem anymore and also I don't think it was the correct solution - since the loader is anyway included in the binary, so it wasn't really disabling it, just disabling the yocto functionality around uninative. If the error re-occurs I think different solution should be found. Signed-off-by:
Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com>
-
- 30 May, 2023 1 commit
-
-
Hongxu Jia authored
Signed-off-by:
Hongxu Jia <hongxu.jia@windriver.com>
-
- 07 Apr, 2023 1 commit
-
-
Hongxu Jia authored
Replace qemuarm override to arm, apply the fix to all 32 bit arm BSPs Signed-off-by:
Hongxu Jia <hongxu.jia@windriver.com>
-
- 27 Mar, 2023 1 commit
-
-
Hongxu Jia authored
Drop the revert patch, and fix the error directly |tensorflow/compiler/mlir/quantization/tensorflow/debugging/mlir_dump.cc:93:10: error: could not convert 'dump_file' from 'std::unique_ptr<llvm::raw_fd_ostream>' to 'absl::lts_20220623::StatusOr<std::unique_ptr<llvm::raw_fd_ostream> >' | return dump_file; ^~~~~~~~~ Signed-off-by:
Hongxu Jia <hongxu.jia@windriver.com>
-
- 24 Mar, 2023 3 commits
-
-
Hongxu Jia authored
Signed-off-by:
Hongxu Jia <hongxu.jia@windriver.com>
-
Hongxu Jia authored
Signed-off-by:
Hongxu Jia <hongxu.jia@windriver.com>
-
Hongxu Jia authored
The official tensorflow 2.12.0 is released [1], upgrade it [1] https://github.com/tensorflow/tensorflow/releases Signed-off-by:
Hongxu Jia <hongxu.jia@windriver.com>
-
- 23 Mar, 2023 4 commits
-
-
Hongxu Jia authored
The recipe tensorflow does not support qemuarm, so drop 0001-fix-XNNPACK-build-failure-for-qemuarm.patch Signed-off-by:
Hongxu Jia <hongxu.jia@windriver.com>
-
Hongxu Jia authored
$ find packages-split/ -name libtensorflow_cc.so* packages-split/tensorflow-dbg/usr/lib64/.debug/libtensorflow_cc.so packages-split/tensorflow-dbg/usr/lib64/python3.11/site-packages/tensorflow/.debug/libtensorflow_cc.so.2 packages-split/libtensorflow-c/usr/lib64/libtensorflow_cc.so packages-split/python3-tensorflow/usr/lib64/python3.11/site-packages/tensorflow/libtensorflow_cc.so.2 Package libtensorflow-c provides /usr/lib64/libtensorflow_cc.so and package python3-tensorflow provides /usr/lib64/python3.11/ site-packages/tensorflow/libtensorflow_cc.so.2 The OE build system's shared library resolver incorrectly report the error of multiple shlib providers |ERROR: python3-tensorflow: Multiple shlib providers for libtensorflow_cc.so.2: libtensorflow-c, python3-tensorflow (used by files: tmp-glibc/work/ corei7-64-wrs-linux/tensorflow/2.12.0rc1-r0/packages-split/python3-tensorflow/ usr/lib64/python3.11/site-packages/tensorflow/python/_pywrap_tfe.so) Ignore OE shared library resolver Signed-off-by:
Hongxu Jia <hongxu.jia@eng.windriver.com>
-
Hongxu Jia authored
It does not make sense to run tensorflow on 32 bit arm bsp. Signed-off-by:
Hongxu Jia <hongxu.jia@windriver.com>
-
Hongxu Jia authored
Signed-off-by:
Hongxu Jia <hongxu.jia@windriver.com>
-
- 22 Mar, 2023 1 commit
-
-
Hongxu Jia authored
According to [1][2], adjust default ram and cpu for bazel, use 25% of them for bazel build [1] https://bazel.build/reference/command-line-reference#flag--local_ram_resources [2] https://bazel.build/reference/command-line-reference#flag--local_cpu_resources Signed-off-by:
Hongxu Jia <hongxu.jia@eng.windriver.com>
-
- 21 Mar, 2023 2 commits
-
-
Hongxu Jia authored
For arm64 bsp, run 'bitbake lib32-tensorflow lib32-tensorflow-lite' caused mutilple compile failures, it does not make sense to build lib32-tensorflow, make recipe tensorflow not be built for multilib Signed-off-by:
Hongxu Jia <hongxu.jia@eng.windriver.com>
-
Hongxu Jia authored
In commit [8235508f tensorflow: split sub packages], it split sub packages python3-tensorflow out of package tensorflow. This commit corrects the python3 runtime depends of packages python3-tensorflow Signed-off-by:
Hongxu Jia <hongxu.jia@eng.windriver.com>
-
- 15 Mar, 2023 6 commits
-
-
Hongxu Jia authored
The tensorflow 2.12 has supported python 3.11, remove old python3 Signed-off-by:
Hongxu Jia <hongxu.jia@eng.windriver.com>
-
Hongxu Jia authored
Signed-off-by:
Hongxu Jia <hongxu.jia@eng.windriver.com>
-
Hongxu Jia authored
Signed-off-by:
Hongxu Jia <hongxu.jia@eng.windriver.com>
-
Hongxu Jia authored
Drop obsolete patch: - 0001-support-to-compat-python-3.11.patch Signed-off-by:
Hongxu Jia <hongxu.jia@eng.windriver.com>
-
Hongxu Jia authored
Remove python 3.10 requirement checking, tensorflow 2.12 has supported python 3.11, remove old python 3.10 Refresh patches: - 0001-add-yocto-toolchain-to-support-cross-compiling.patch - 0001-support-32-bit-x64-and-arm-for-yocto.patch Drop obsolete patches: - 0003-Support-python-3.11-changes.patch - 0004-protobuf-fix-build-with-Python-3.11.patch - 0005-cpython-support-Python-3.11.patch - 0006-wrapt-support-Python-3.11.patch Add -Wno-stringop-overflow to CFLAGS to workaround gcc error Signed-off-by:
Hongxu Jia <hongxu.jia@eng.windriver.com>
-
Hongxu Jia authored
Backport patches from python 3.11 to add a new standard library module, `tomllib`, for parsing TOML. The implementation is based on Tomli (https://github.com/hukkin/tomli ). Signed-off-by:
Hongxu Jia <hongxu.jia@eng.windriver.com>
-
- 15 Dec, 2022 6 commits
-
-
Hongxu Jia authored
Improve 0001-HttpDownloader-save-download-tarball-to-distdir.patch to fix download failure of tensorflow 2.11.0 Issue: LINUXEXEC-24074 (LOCAL REV: NOT UPSTREAM) -- will send to upstream Signed-off-by:
Hongxu Jia <hongxu.jia@eng.windriver.com>
-
Hongxu Jia authored
In tensorflow build, it downloads a full list of files, and Bazel won't cache the downloaded archive. But for Yocto, in order to support offline build ,we need to cache downloaded archive, so hardcode go SDKS list files rather than fetch from internet Issue: LINUXEXEC-24074 (LOCAL REV: NOT UPSTREAM) -- will send to upstream Signed-off-by:
Hongxu Jia <hongxu.jia@eng.windriver.com>
-
Hongxu Jia authored
Issue: LINUXEXEC-24074 (LOCAL REV: NOT UPSTREAM) -- will send to upstream Signed-off-by:
Hongxu Jia <hongxu.jia@eng.windriver.com>
-
Hongxu Jia authored
Issue: LINUXEXEC-24074 (LOCAL REV: NOT UPSTREAM) -- will send to upstream Signed-off-by:
Hongxu Jia <hongxu.jia@eng.windriver.com>
-
Hongxu Jia authored
Issue: LINUXEXEC-24074 (LOCAL REV: NOT UPSTREAM) -- will send to upstream Signed-off-by:
Hongxu Jia <hongxu.jia@eng.windriver.com>
-
Hongxu Jia authored
Drop two backported patches: - 0001-Fix-Python-3.11-compatibility-problems-for-JAX-XLA.patch - 0002-Update-pybind11-to-2.10.0.patch Refresh two patches: - 0001-support-musl.patch - 0001-support-32-bit-x64-and-arm-for-yocto.patch Issue: LINUXEXEC-24074 (LOCAL REV: NOT UPSTREAM) -- will send to upstream Signed-off-by:
Hongxu Jia <hongxu.jia@eng.windriver.com>
-
- 25 Nov, 2022 1 commit
-
-
Hongxu Jia authored
Other than print mess of warning message during bitbake parsing, directly skip tensorflow recipe if python3.10 is not used, in this situation, there will be no warning message if tensorflow is not explicitly built $ bitbake tensorflow ERROR: Nothing PROVIDES 'tensorflow' tensorflow was skipped: We shouldn't have multilib variants for tensorflow tensorflow was skipped: The official TensorFlow is tested and supported under Python 3.7-3.10 Please add the following to local.conf DISTRO_FEATURES:append = ' tensorflow' DISTRO_FEATURES_NATIVE:append = ' tensorflow' DISTRO_FEATURES_NATIVESDK:append = ' tensorflow' It will apply python3 3.10.6 recipe Signed-off-by:
Hongxu Jia <hongxu.jia@eng.windriver.com>
-
- 18 Nov, 2022 3 commits
-
-
Hongxu Jia authored
Add a checking tensorflow recipe to warn when tensorflow not in DISTRO_FEATURES and PYTHON_BASEVERSION version is not 3.10 ... WARNING:meta-tensorflow/recipes-framework/tensorflow/tensorflow-lite_2.10.0.bb: The official TensorFlow is tested and supported under Python 3.7-3.10 Please add DISTRO_FEATURES += 'tensorflow' to local.conf It will apply python3 3.10.6 recipe WARNING:meta-tensorflow/recipes-framework/tensorflow/tensorflow-lite_2.10.0.bb: The official TensorFlow is tested and supported under Python 3.7-3.10 Please add the following to local.conf PYTHON_BASEVERSION:class-target = '3.10' PYTHON_BASEVERSION:class-native = '3.10' PYTHON_BASEVERSION:class-nativesdk = '3.10' It will apply python3 modules for 3.10 ... Signed-off-by:
Hongxu Jia <hongxu.jia@eng.windriver.com>
-
Hongxu Jia authored
The official TensorFlow is tested and supported Python 3.7-3.10 [1][2] Add python3 3.10 back for tensorflow In order to distinguish with python3 3.11 in oe-core, add required distro features `tensorflow' to python3 3.10.6 recipe. Set the following in local.conf to apply python3 3.10.6 DISTRO_FEATURES += "tensorflow" PYTHON_BASEVERSION:class-target = "3.10" PYTHON_BASEVERSION:class-native = "3.10" PYTHON_BASEVERSION:class-nativesdk = "3.10" [1] https://www.tensorflow.org/install [2] https://www.tensorflow.org/install/source#tested_build_configurations Signed-off-by:
Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by:
Hongxu Jia <hongxu.jia@eng.windriver.com>
-
Hongxu Jia authored
The SafeConfigParser class will be renamed to ConfigParser in Python 3.12 [1]. This alias will be removed in future versions.So we can use ConfigParser directly instead. [1] https://github.com/python/cpython/issues/89336 Signed-off-by:
Hongxu Jia <hongxu.jia@windriver.com>
-
- 14 Nov, 2022 3 commits
-
-
Hongxu Jia authored
The python 3.11 has removed long-deprecated inspect methods [1], use collections.namedtuple to instead [1] https://github.com/python/cpython/commit/d89fb9a5a610a257014d112bdceef73d7df14082 Signed-off-by:
Hongxu Jia <hongxu.jia@windriver.com>
-
Hongxu Jia authored
After python3 in Yocto was upgraded to 3.11, the result of `importlib.import_module('distutils.sysconfig').get_python_inc()' does not right, but the result of `importlib.import_module('sysconfig').get_path('include')' is OK $ ../recipe-sysroot-native/usr/bin/python3-native/python3 >>> import importlib; import importlib.util; >>> importlib.import_module('distutils.sysconfig').get_python_inc() '/tmp-glibc/work/x86_64-linux/tensorflow-native/2.10.0-r0/recipe-sysroot-native/tmp-glibc/work/x86_64-linux/tensorflow-native/2.10.0-r0/recipe-sysroot-native/usr/include/python3.11' >>> importlib.import_module('sysconfig').get_path('include') '/tmp-glibc/work/x86_64-linux/tensorflow-native/2.10.0-r0/recipe-sysroot-native/usr/include/python3.11' Signed-off-by:
Hongxu Jia <hongxu.jia@windriver.com>
-
Hongxu Jia authored
Backport patches from upstream to fix Python 3.11 compatibility problems Signed-off-by:
Hongxu Jia <hongxu.jia@windriver.com>
-
- 10 Nov, 2022 3 commits
-
-
Hongxu Jia authored
... |external/XNNPACK/src/qs8-igemm/gen/4x8c4-minmax-rndnu-aarch32-neondot-ld64.S:140: Error: selected processor does not support `vsdot.s8 q8,q2,d0[0]' in ARM mode ... Does not support 32 bit ARM with Neon DotProduct Signed-off-by:
Hongxu Jia <hongxu.jia@windriver.com>
-
Hongxu Jia authored
... external/XNNPACK/src/f32-f16-vcvt/gen/vcvt-neonfp16-x16.c:36:28: error: incompatible types when initializing type 'uint16x8_t' using type 'int' 36 | const uint16x8_t vh0 = vreinterpretq_u16_f16(vcombine_f16(vcvt_f16_f32(vf0), vcvt_f16_f32(vf1))); | ^~~~~~~~~~~~~~~~~~~~~ ... See [1][2] for details [1] https://github.com/tensorflow/tensorflow/issues/54268 [2] https://github.com/tensorflow/tensorflow/pull/54316/commits/abae5a1e556b4e595a84e9a25fb1e9e86d7cbd6b Signed-off-by:
Hongxu Jia <hongxu.jia@windriver.com>
-
Kai Kang authored
Signed-off-by:
Kai Kang <kai.kang@windriver.com>
-