<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [flexbuild v24.12][imx8mpevk] debian build failed in ml(tflite_ethosu_delegate) in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2026241#M232910</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Seems the build env is not isolated with host...&lt;/SPAN&gt;&lt;BR /&gt;---&amp;gt;Yes, from your tests, it looks like the containers still rely on the host environment. This is very strange. Let me try to test under different WSL Ubuntu version.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/245264"&gt;@Edward_desplaines&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209297"&gt;@yoooh8668&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/43469"&gt;@charleshuang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To remove the ML feature,&amp;nbsp; set the&lt;STRONG&gt; PKG_GROUPS_ML:n&lt;/STRONG&gt; here&amp;nbsp;&lt;A href="https://github.com/NXP/flexbuild/blob/LSDK-24.12_DEBIAN-12_LF-6.6.36/configs/sdk.yml" target="_blank" rel="noopener"&gt;https://github.com/NXP/flexbuild/blob/LSDK-24.12_DEBIAN-12_LF-6.6.36/configs/sdk.yml&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jan 2025 01:45:56 GMT</pubDate>
    <dc:creator>Zhiming_Liu</dc:creator>
    <dc:date>2025-01-13T01:45:56Z</dc:date>
    <item>
      <title>[flexbuild v24.12][imx8mpevk] debian build failed in ml(tflite_ethosu_delegate)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2021067#M232527</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are now trying the &lt;A href="https://github.com/NXP/flexbuild" target="_self"&gt;flexbuild&lt;/A&gt; of Debian 12, but it build failed on "tflite_ethosu_delegate"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We know the in v24.06 does not include the ml(machine learning) in build process.&lt;/P&gt;&lt;P&gt;But we do want to enable the ml in debian.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the log:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[root@fbdebian tn_debian_flexbuild]$ bld tflite_ethosu_delegate

Building tflite_ethosu_delegate ... 
repo: tflite_ethosu_delegate
tag: lf-6.6.36-2.1.0
-- Setting build type to Release, for debug builds use'-DCMAKE_BUILD_TYPE=Debug'.
-- Cloning absl repository revision fb3621f4f897824c0dbe0615fa94543df6192f30, found in /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/../third_party/absl/workspace.bzl
CMake Warning at build_debian_arm64/abseil-cpp/CMakeLists.txt:77 (message):
  A future Abseil release will default ABSL_PROPAGATE_CXX_STD to ON for CMake
  3.8 and up.  We recommend enabling this option to ensure your project still
  builds correctly.


-- Cloning eigen repository revision aa6964bf3a34fd607837dd8123bc42465185c4f8, found in /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/../third_party/eigen3/workspace.bzl
-- Standard libraries to link to explicitly: none
-- The Fortran compiler identification is unknown
-- Could NOT find CLANG_FORMAT: Found unsuitable version "0.0", but required is exact version "9" (found CLANG_FORMAT_EXECUTABLE-NOTFOUND)
-- 
-- Configured Eigen 3.4.90
-- 
-- Cloning farmhash repository revision 0d859a811870d10f53a594927d0d0b97573ad06d, found in /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/../third_party/farmhash/workspace.bzl
-- Cloning fft2d repository from https://storage.googleapis.com/mirror.tensorflow.org/github.com/petewarden/OouraFFT/archive/v1.0.tar.gz, found in /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/workspace2.bzl
CMake Warning (dev) at /usr/share/cmake-3.25/Modules/FetchContent.cmake:1279 (message):
  The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
  not set.  The policy's OLD behavior will be used.  When using a URL
  download, the timestamps of extracted files should preferably be that of
  the time of extraction, otherwise code that depends on the extracted
  contents might not be rebuilt if the URL changes.  The OLD behavior
  preserves the timestamps from the archive instead, but this is usually not
  what you want.  Update your project to the NEW behavior or specify the
  DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
  robustness issue.
Call Stack (most recent call first):
  /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/tools/cmake/modules/OverridableFetchContent.cmake:398 (FetchContent_Declare)
  /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/tools/cmake/modules/fft2d.cmake:25 (OverridableFetchContent_Declare)
  /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/tools/cmake/modules/Findfft2d.cmake:18 (include)
  /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/CMakeLists.txt:166 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Cloning flatbuffers repository from https://github.com/google/flatbuffers/archive/7d6d99c6befa635780a4e944d37ebfd58e68a108.tar.gz, found in /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/../third_party/flatbuffers/workspace.bzl
-- Cloning flatbuffers repository revision 7d6d99c6befa635780a4e944d37ebfd58e68a108, found in /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/../third_party/flatbuffers/workspace.bzl
CMake Warning (dev) at /usr/share/cmake-3.25/Modules/FetchContent.cmake:1279 (message):
  The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
  not set.  The policy's OLD behavior will be used.  When using a URL
  download, the timestamps of extracted files should preferably be that of
  the time of extraction, otherwise code that depends on the extracted
  contents might not be rebuilt if the URL changes.  The OLD behavior
  preserves the timestamps from the archive instead, but this is usually not
  what you want.  Update your project to the NEW behavior or specify the
  DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
  robustness issue.
Call Stack (most recent call first):
  /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/tools/cmake/modules/OverridableFetchContent.cmake:398 (FetchContent_Declare)
  /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/tools/cmake/modules/flatbuffers.cmake:33 (OverridableFetchContent_Declare)
  /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/tools/cmake/modules/FindFlatBuffers.cmake:18 (include)
  /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/CMakeLists.txt:167 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Proceeding with version: 23.5.26.0
-- CMAKE_CXX_FLAGS: -O2 -pipe -g -fPIC -feliminate-unused-debug-types -I/home/joezhang/workspace/tn_debian_flexbuild/build_lsdk2412/apps/apps_arm64_debian_desktop/usr/include -I/home/joezhang/workspace/tn_debian_flexbuild/build_lsdk2412/rfs/rootfs_lsdk2412_debian_desktop_arm64/usr/include
-- Cloning gemmlowp repository revision 16e8662c34917be0065110bfcd9cc27d30f52fdf, found in /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/../third_party/gemmlowp/workspace.bzl
-- Cloning neon2sse repository from https://storage.googleapis.com/mirror.tensorflow.org/github.com/intel/ARM_NEON_2_x86_SSE/archive/a15b489e1222b2087007546b4912e21293ea86ff.tar.gz, found in /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/workspace2.bzl
CMake Warning (dev) at /usr/share/cmake-3.25/Modules/FetchContent.cmake:1279 (message):
  The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
  not set.  The policy's OLD behavior will be used.  When using a URL
  download, the timestamps of extracted files should preferably be that of
  the time of extraction, otherwise code that depends on the extracted
  contents might not be rebuilt if the URL changes.  The OLD behavior
  preserves the timestamps from the archive instead, but this is usually not
  what you want.  Update your project to the NEW behavior or specify the
  DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
  robustness issue.
Call Stack (most recent call first):
  /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/tools/cmake/modules/OverridableFetchContent.cmake:398 (FetchContent_Declare)
  /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/tools/cmake/modules/neon2sse.cmake:25 (OverridableFetchContent_Declare)
  /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/tools/cmake/modules/FindNEON_2_SSE.cmake:18 (include)
  /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/CMakeLists.txt:170 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Cloning cpuinfo repository revision ef634603954d88d2643d5809011288b890ac126e, found in /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/workspace2.bzl
-- Cloning ruy repository revision 3286a34cc8de6149ac6844107dfdffac91531e72, found in /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/../third_party/ruy/workspace.bzl
-- Cloning xnnpack repository revision dcbfffb80fb4f6fcfcfb5b3723854ec8797fa546, found in /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/workspace2.bzl
-- Could NOT find Python (missing: Interpreter Development Development.Module Development.Embed) (found version "3.11.2")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite_ethosu_delegate/build_debian_arm64
Building CXX object CMakeFiles/ethosu_delegate.dir/ethosu_delegate.cc.o
Building CXX object CMakeFiles/ethosu_delegate.dir/ethosu_delegate_utils.cc.o
Building CXX object CMakeFiles/ethosu_delegate.dir/ethosu_supported_ops.cc.o
In file included from /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h:83,
                 from /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/optimized/optimized_ops.h:56,
                 from /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite_ethosu_delegate/ethosu_supported_ops.cc:10:
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:28:36: error: 'StringRef' does not name a type
   28 | inline bool StringRefEqualFn(const StringRef&amp;amp; lhs, const StringRef&amp;amp; rhs) {
      |                                    ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:28:58: error: 'StringRef' does not name a type
   28 | inline bool StringRefEqualFn(const StringRef&amp;amp; lhs, const StringRef&amp;amp; rhs) {
      |                                                          ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h: In function 'bool tflite::reference_ops::StringRefEqualFn(const int&amp;amp;, const int&amp;amp;)':
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:29:11: error: request for member 'len' in 'lhs', which is of non-class type 'const int'
   29 |   if (lhs.len != rhs.len) return false;
      |           ^~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:29:22: error: request for member 'len' in 'rhs', which is of non-class type 'const int'
   29 |   if (lhs.len != rhs.len) return false;
      |                      ^~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:30:27: error: request for member 'len' in 'lhs', which is of non-class type 'const int'
   30 |   for (int i = 0; i &amp;lt; lhs.len; ++i) {
      |                           ^~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:31:13: error: request for member 'str' in 'lhs', which is of non-class type 'const int'
   31 |     if (lhs.str[i] != rhs.str[i]) return false;
      |             ^~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:31:27: error: request for member 'str' in 'rhs', which is of non-class type 'const int'
   31 |     if (lhs.str[i] != rhs.str[i]) return false;
      |                           ^~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h: At global scope:
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:36:39: error: 'StringRef' does not name a type
   36 | inline bool StringRefNotEqualFn(const StringRef&amp;amp; lhs, const StringRef&amp;amp; rhs) {
      |                                       ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:36:61: error: 'StringRef' does not name a type
   36 | inline bool StringRefNotEqualFn(const StringRef&amp;amp; lhs, const StringRef&amp;amp; rhs) {
      |                                                             ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:40:50: error: 'StringRef' does not name a type
   40 | inline void ComparisonStringImpl(bool (*F)(const StringRef&amp;amp;, const StringRef&amp;amp;),
      |                                                  ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:40:68: error: 'StringRef' does not name a type
   40 | inline void ComparisonStringImpl(bool (*F)(const StringRef&amp;amp;, const StringRef&amp;amp;),
      |                                                                    ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h: In function 'void tflite::reference_ops::ComparisonStringImpl(bool (*)(const int&amp;amp;, const int&amp;amp;), const tflite::RuntimeShape&amp;amp;, const TfLiteTensor*, const tflite::RuntimeShape&amp;amp;, const TfLiteTensor*, const tflite::RuntimeShape&amp;amp;, bool*)':
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:50:22: error: 'GetString' was not declared in this scope; did you mean 'testing'?
   50 |     const auto lhs = GetString(input1, i);
      |                      ^~~~~~~~~
      |                      testing
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h: At global scope:
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:57:21: error: 'StringRef' does not name a type
   57 |     bool (*F)(const StringRef&amp;amp;, const StringRef&amp;amp;),
      |                     ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:57:39: error: 'StringRef' does not name a type
   57 |     bool (*F)(const StringRef&amp;amp;, const StringRef&amp;amp;),
      |                                       ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h: In function 'void tflite::reference_ops::BroadcastComparison4DSlowStringImpl(bool (*)(const int&amp;amp;, const int&amp;amp;), const tflite::RuntimeShape&amp;amp;, const TfLiteTensor*, const tflite::RuntimeShape&amp;amp;, const TfLiteTensor*, const tflite::RuntimeShape&amp;amp;, bool*)':
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:71:15: error: 'GetString' was not declared in this scope; did you mean 'testing'?
   71 |               GetString(input1, SubscriptToIndex(dims.desc1, b, y, x, c));
      |               ^~~~~~~~~
      |               testing
In file included from /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h:89:
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/tensor.h: At global scope:
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/tensor.h:26:30: error: 'string' was not declared in this scope; did you mean 'std::string'?
   26 | class SequentialTensorWriter&amp;lt;string&amp;gt; {
      |                              ^~~~~~
      |                              std::string
In file included from /usr/aarch64-linux-gnu/include/c++/12/iosfwd:39,
                 from /usr/aarch64-linux-gnu/include/c++/12/bits/shared_ptr.h:52,
                 from /usr/aarch64-linux-gnu/include/c++/12/memory:77,
                 from /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/optimized/optimized_ops.h:26:
/usr/aarch64-linux-gnu/include/c++/12/bits/stringfwd.h:77:33: note: 'std::string' declared here
   77 |   typedef basic_string&amp;lt;char&amp;gt;    string;
      |                                 ^~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/tensor.h:26:36: error: template argument 1 is invalid
   26 | class SequentialTensorWriter&amp;lt;string&amp;gt; {
      |                                    ^
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h: In function 'TfLiteStatus tflite::reference_ops::GatherNdString(const tflite::RuntimeShape&amp;amp;, const TfLiteTensor*, const tflite::RuntimeShape&amp;amp;, const IndicesT*, const tflite::RuntimeShape&amp;amp;, TfLiteTensor*)':
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h:641:3: error: 'DynamicBuffer' was not declared in this scope
  641 |   DynamicBuffer buffer;
      |   ^~~~~~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h:651:7: error: 'buffer' was not declared in this scope; did you mean 'setbuffer'?
  651 |       buffer.AddString(GetString(params_data, from_pos + j));
      |       ^~~~~~
      |       setbuffer
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h:651:24: error: there are no arguments to 'GetString' that depend on a template parameter, so a declaration of 'GetString' must be available [-fpermissive]
  651 |       buffer.AddString(GetString(params_data, from_pos + j));
      |                        ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h:651:24: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h:654:3: error: 'buffer' was not declared in this scope; did you mean 'setbuffer'?
  654 |   buffer.WriteToTensor(output_data, /*new_shape=*/nullptr);
      |   ^~~~~~
      |   setbuffer
In file included from /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h:83,
                 from /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/optimized/optimized_ops.h:56,
                 from /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite_ethosu_delegate/ethosu_delegate_utils.h:16,
                 from /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite_ethosu_delegate/ethosu_delegate.cc:27:
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:28:36: error: 'StringRef' does not name a type
   28 | inline bool StringRefEqualFn(const StringRef&amp;amp; lhs, const StringRef&amp;amp; rhs) {
      |                                    ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:28:58: error: 'StringRef' does not name a type
   28 | inline bool StringRefEqualFn(const StringRef&amp;amp; lhs, const StringRef&amp;amp; rhs) {
      |                                                          ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h: In function 'bool tflite::reference_ops::StringRefEqualFn(const int&amp;amp;, const int&amp;amp;)':
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:29:11: error: request for member 'len' in 'lhs', which is of non-class type 'const int'
   29 |   if (lhs.len != rhs.len) return false;
      |           ^~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:29:22: error: request for member 'len' in 'rhs', which is of non-class type 'const int'
   29 |   if (lhs.len != rhs.len) return false;
      |                      ^~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:30:27: error: request for member 'len' in 'lhs', which is of non-class type 'const int'
   30 |   for (int i = 0; i &amp;lt; lhs.len; ++i) {
      |                           ^~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:31:13: error: request for member 'str' in 'lhs', which is of non-class type 'const int'
   31 |     if (lhs.str[i] != rhs.str[i]) return false;
      |             ^~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:31:27: error: request for member 'str' in 'rhs', which is of non-class type 'const int'
   31 |     if (lhs.str[i] != rhs.str[i]) return false;
      |                           ^~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h: At global scope:
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:36:39: error: 'StringRef' does not name a type
   36 | inline bool StringRefNotEqualFn(const StringRef&amp;amp; lhs, const StringRef&amp;amp; rhs) {
      |                                       ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:36:61: error: 'StringRef' does not name a type
   36 | inline bool StringRefNotEqualFn(const StringRef&amp;amp; lhs, const StringRef&amp;amp; rhs) {
      |                                                             ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:40:50: error: 'StringRef' does not name a type
   40 | inline void ComparisonStringImpl(bool (*F)(const StringRef&amp;amp;, const StringRef&amp;amp;),
      |                                                  ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:40:68: error: 'StringRef' does not name a type
   40 | inline void ComparisonStringImpl(bool (*F)(const StringRef&amp;amp;, const StringRef&amp;amp;),
      |                                                                    ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h: In function 'void tflite::reference_ops::ComparisonStringImpl(bool (*)(const int&amp;amp;, const int&amp;amp;), const tflite::RuntimeShape&amp;amp;, const TfLiteTensor*, const tflite::RuntimeShape&amp;amp;, const TfLiteTensor*, const tflite::RuntimeShape&amp;amp;, bool*)':
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:50:22: error: 'GetString' was not declared in this scope; did you mean 'testing'?
   50 |     const auto lhs = GetString(input1, i);
      |                      ^~~~~~~~~
      |                      testing
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h: At global scope:
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:57:21: error: 'StringRef' does not name a type
   57 |     bool (*F)(const StringRef&amp;amp;, const StringRef&amp;amp;),
      |                     ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:57:39: error: 'StringRef' does not name a type
   57 |     bool (*F)(const StringRef&amp;amp;, const StringRef&amp;amp;),
      |                                       ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h: In function 'void tflite::reference_ops::BroadcastComparison4DSlowStringImpl(bool (*)(const int&amp;amp;, const int&amp;amp;), const tflite::RuntimeShape&amp;amp;, const TfLiteTensor*, const tflite::RuntimeShape&amp;amp;, const TfLiteTensor*, const tflite::RuntimeShape&amp;amp;, bool*)':
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:71:15: error: 'GetString' was not declared in this scope; did you mean 'testing'?
   71 |               GetString(input1, SubscriptToIndex(dims.desc1, b, y, x, c));
      |               ^~~~~~~~~
      |               testing
In file included from /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h:89:
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/tensor.h: At global scope:
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/tensor.h:26:30: error: 'string' was not declared in this scope; did you mean 'std::string'?
   26 | class SequentialTensorWriter&amp;lt;string&amp;gt; {
      |                              ^~~~~~
      |                              std::string
In file included from /usr/aarch64-linux-gnu/include/c++/12/string:39,
                 from /home/joezhang/workspace/tn_debian_flexbuild/build_lsdk2412/apps/apps_arm64_debian_desktop/usr/include/flatbuffers/base.h:41,
                 from /home/joezhang/workspace/tn_debian_flexbuild/build_lsdk2412/apps/apps_arm64_debian_desktop/usr/include/flatbuffers/flexbuffers.h:23,
                 from /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite_ethosu_delegate/ethosu_delegate.cc:23:
/usr/aarch64-linux-gnu/include/c++/12/bits/stringfwd.h:77:33: note: 'std::string' declared here
   77 |   typedef basic_string&amp;lt;char&amp;gt;    string;
      |                                 ^~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/tensor.h:26:36: error: template argument 1 is invalid
   26 | class SequentialTensorWriter&amp;lt;string&amp;gt; {
      |                                    ^
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h: In function 'TfLiteStatus tflite::reference_ops::GatherNdString(const tflite::RuntimeShape&amp;amp;, const TfLiteTensor*, const tflite::RuntimeShape&amp;amp;, const IndicesT*, const tflite::RuntimeShape&amp;amp;, TfLiteTensor*)':
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h:641:3: error: 'DynamicBuffer' was not declared in this scope
  641 |   DynamicBuffer buffer;
      |   ^~~~~~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h:651:7: error: 'buffer' was not declared in this scope; did you mean 'setbuffer'?
  651 |       buffer.AddString(GetString(params_data, from_pos + j));
      |       ^~~~~~
      |       setbuffer
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h:651:24: error: there are no arguments to 'GetString' that depend on a template parameter, so a declaration of 'GetString' must be available [-fpermissive]
  651 |       buffer.AddString(GetString(params_data, from_pos + j));
      |                        ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h:651:24: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h:654:3: error: 'buffer' was not declared in this scope; did you mean 'setbuffer'?
  654 |   buffer.WriteToTensor(output_data, /*new_shape=*/nullptr);
      |   ^~~~~~
      |   setbuffer
In file included from /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h:83,
                 from /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/optimized/optimized_ops.h:56,
                 from /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite_ethosu_delegate/ethosu_delegate_utils.h:16,
                 from /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite_ethosu_delegate/ethosu_delegate_utils.cc:9:
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:28:36: error: 'StringRef' does not name a type
   28 | inline bool StringRefEqualFn(const StringRef&amp;amp; lhs, const StringRef&amp;amp; rhs) {
      |                                    ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:28:58: error: 'StringRef' does not name a type
   28 | inline bool StringRefEqualFn(const StringRef&amp;amp; lhs, const StringRef&amp;amp; rhs) {
      |                                                          ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h: In function 'bool tflite::reference_ops::StringRefEqualFn(const int&amp;amp;, const int&amp;amp;)':
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:29:11: error: request for member 'len' in 'lhs', which is of non-class type 'const int'
   29 |   if (lhs.len != rhs.len) return false;
      |           ^~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:29:22: error: request for member 'len' in 'rhs', which is of non-class type 'const int'
   29 |   if (lhs.len != rhs.len) return false;
      |                      ^~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:30:27: error: request for member 'len' in 'lhs', which is of non-class type 'const int'
   30 |   for (int i = 0; i &amp;lt; lhs.len; ++i) {
      |                           ^~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:31:13: error: request for member 'str' in 'lhs', which is of non-class type 'const int'
   31 |     if (lhs.str[i] != rhs.str[i]) return false;
      |             ^~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:31:27: error: request for member 'str' in 'rhs', which is of non-class type 'const int'
   31 |     if (lhs.str[i] != rhs.str[i]) return false;
      |                           ^~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h: At global scope:
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:36:39: error: 'StringRef' does not name a type
   36 | inline bool StringRefNotEqualFn(const StringRef&amp;amp; lhs, const StringRef&amp;amp; rhs) {
      |                                       ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:36:61: error: 'StringRef' does not name a type
   36 | inline bool StringRefNotEqualFn(const StringRef&amp;amp; lhs, const StringRef&amp;amp; rhs) {
      |                                                             ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:40:50: error: 'StringRef' does not name a type
   40 | inline void ComparisonStringImpl(bool (*F)(const StringRef&amp;amp;, const StringRef&amp;amp;),
      |                                                  ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:40:68: error: 'StringRef' does not name a type
   40 | inline void ComparisonStringImpl(bool (*F)(const StringRef&amp;amp;, const StringRef&amp;amp;),
      |                                                                    ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h: In function 'void tflite::reference_ops::ComparisonStringImpl(bool (*)(const int&amp;amp;, const int&amp;amp;), const tflite::RuntimeShape&amp;amp;, const TfLiteTensor*, const tflite::RuntimeShape&amp;amp;, const TfLiteTensor*, const tflite::RuntimeShape&amp;amp;, bool*)':
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:50:22: error: 'GetString' was not declared in this scope; did you mean 'flatbuffers::GetString'?
   50 |     const auto lhs = GetString(input1, i);
      |                      ^~~~~~~~~
      |                      flatbuffers::GetString
In file included from /home/joezhang/workspace/tn_debian_flexbuild/build_lsdk2412/apps/apps_arm64_debian_desktop/usr/include/flatbuffers/flatbuffer_builder.h:34,
                 from /home/joezhang/workspace/tn_debian_flexbuild/build_lsdk2412/apps/apps_arm64_debian_desktop/usr/include/flatbuffers/flatbuffers.h:29,
                 from /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/schema/schema_generated.h:21,
                 from /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite_ethosu_delegate/tflite_enum_mapping.h:19,
                 from /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite_ethosu_delegate/ethosu_delegate_utils.cc:8:
/home/joezhang/workspace/tn_debian_flexbuild/build_lsdk2412/apps/apps_arm64_debian_desktop/usr/include/flatbuffers/string.h:44:27: note: 'flatbuffers::GetString' declared here
   44 | static inline std::string GetString(const String *str) {
      |                           ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h: At global scope:
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:57:21: error: 'StringRef' does not name a type
   57 |     bool (*F)(const StringRef&amp;amp;, const StringRef&amp;amp;),
      |                     ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:57:39: error: 'StringRef' does not name a type
   57 |     bool (*F)(const StringRef&amp;amp;, const StringRef&amp;amp;),
      |                                       ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h: In function 'void tflite::reference_ops::BroadcastComparison4DSlowStringImpl(bool (*)(const int&amp;amp;, const int&amp;amp;), const tflite::RuntimeShape&amp;amp;, const TfLiteTensor*, const tflite::RuntimeShape&amp;amp;, const TfLiteTensor*, const tflite::RuntimeShape&amp;amp;, bool*)':
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/string_comparisons.h:71:15: error: 'GetString' was not declared in this scope; did you mean 'flatbuffers::GetString'?
   71 |               GetString(input1, SubscriptToIndex(dims.desc1, b, y, x, c));
      |               ^~~~~~~~~
      |               flatbuffers::GetString
/home/joezhang/workspace/tn_debian_flexbuild/build_lsdk2412/apps/apps_arm64_debian_desktop/usr/include/flatbuffers/string.h:44:27: note: 'flatbuffers::GetString' declared here
   44 | static inline std::string GetString(const String *str) {
      |                           ^~~~~~~~~
In file included from /home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h:89:
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/tensor.h: At global scope:
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/tensor.h:26:30: error: 'string' was not declared in this scope; did you mean 'std::string'?
   26 | class SequentialTensorWriter&amp;lt;string&amp;gt; {
      |                              ^~~~~~
      |                              std::string
In file included from /usr/aarch64-linux-gnu/include/c++/12/iosfwd:39,
                 from /usr/aarch64-linux-gnu/include/c++/12/bits/shared_ptr.h:52,
                 from /usr/aarch64-linux-gnu/include/c++/12/memory:77,
                 from /home/joezhang/workspace/tn_debian_flexbuild/build_lsdk2412/apps/apps_arm64_debian_desktop/usr/include/flatbuffers/array.h:21,
                 from /home/joezhang/workspace/tn_debian_flexbuild/build_lsdk2412/apps/apps_arm64_debian_desktop/usr/include/flatbuffers/flatbuffers.h:24:
/usr/aarch64-linux-gnu/include/c++/12/bits/stringfwd.h:77:33: note: 'std::string' declared here
   77 |   typedef basic_string&amp;lt;char&amp;gt;    string;
      |                                 ^~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/tensor.h:26:36: error: template argument 1 is invalid
   26 | class SequentialTensorWriter&amp;lt;string&amp;gt; {
      |                                    ^
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h: In function 'TfLiteStatus tflite::reference_ops::GatherNdString(const tflite::RuntimeShape&amp;amp;, const TfLiteTensor*, const tflite::RuntimeShape&amp;amp;, const IndicesT*, const tflite::RuntimeShape&amp;amp;, TfLiteTensor*)':
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h:641:3: error: 'DynamicBuffer' was not declared in this scope
  641 |   DynamicBuffer buffer;
      |   ^~~~~~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h:651:7: error: 'buffer' was not declared in this scope; did you mean 'Buffer'?
  651 |       buffer.AddString(GetString(params_data, from_pos + j));
      |       ^~~~~~
      |       Buffer
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h:651:24: error: there are no arguments to 'GetString' that depend on a template parameter, so a declaration of 'GetString' must be available [-fpermissive]
  651 |       buffer.AddString(GetString(params_data, from_pos + j));
      |                        ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h:651:24: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/home/joezhang/workspace/tn_debian_flexbuild/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h:654:3: error: 'buffer' was not declared in this scope; did you mean 'Buffer'?
  654 |   buffer.WriteToTensor(output_data, /*new_shape=*/nullptr);
      |   ^~~~~~
      |   Buffer
make[5]: *** [CMakeFiles/ethosu_delegate.dir/build.make:160: CMakeFiles/ethosu_delegate.dir/ethosu_supported_ops.cc.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: *** [CMakeFiles/ethosu_delegate.dir/build.make:104: CMakeFiles/ethosu_delegate.dir/ethosu_delegate.cc.o] Error 1
make[5]: *** [CMakeFiles/ethosu_delegate.dir/build.make:146: CMakeFiles/ethosu_delegate.dir/ethosu_delegate_utils.cc.o] Error 1
make[4]: *** [CMakeFiles/Makefile2:1258: CMakeFiles/ethosu_delegate.dir/all] Error 2
make[3]: *** [CMakeFiles/Makefile2:1265: CMakeFiles/ethosu_delegate.dir/rule] Error 2
make[2]: *** [Makefile:169: ethosu_delegate] Error 2
make[1]: *** [/home/joezhang/workspace/tn_debian_flexbuild/src/apps/ml/tflite_ethosu_delegate.mk:11: tflite_ethosu_delegate] Error 2
make: *** [Makefile:21: tflite_ethosu_delegate] Error 2&lt;/LI-CODE&gt;&lt;P&gt;Look like there is dependency issue in tensorflow =&amp;gt; missing llvm(`StringRef`) library?&lt;/P&gt;&lt;P&gt;But `apt-get install llvm` in docker won't fix.&lt;/P&gt;&lt;P&gt;Add llvm in target rootfs won't fix, too.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;joezhang@joezhang-System-Product-Name:~/workspace/tn_debian_flexbuild$ git diff
diff --git a/configs/debian/extra_packages_list b/configs/debian/extra_packages_list
index 54dede1..9064951 100644
--- a/configs/debian/extra_packages_list
+++ b/configs/debian/extra_packages_list
@@ -95,6 +95,7 @@ extra_server_devel_packages=" \
     libvorbis-dev \
     libjpeg62-turbo-dev \
     libjsoncpp-dev \
+    llvm-dev \
 "&lt;/LI-CODE&gt;&lt;P&gt;Or I missing something in build process?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ bld docker
$ . setup.env
$ bld host-dep
$ bld apps -p IMX 
# failed here...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THANKS~~~&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 06:44:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2021067#M232527</guid>
      <dc:creator>yoooh8668</dc:creator>
      <dc:date>2025-01-02T06:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: [flexbuild v24.12][imx8mpevk] debian build failed in ml(tflite_ethosu_delegate)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2021527#M232558</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I know:&lt;/P&gt;&lt;P&gt;For imx93:&lt;/P&gt;&lt;PRE&gt;tflite_ethosu_delegate.mk&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;For imx8M:&lt;/P&gt;&lt;PRE&gt;tflite_vx_delegate.mk&lt;/PRE&gt;&lt;P&gt;But both of them build failed and require StringRef.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For each target in apps/ml:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sudo apt-get install python3-pybind11 protobuf-compiler


(pass)|-- eiq_examples.mk
(pass)|-- ethosu_driver_stack.mk
(pass)|-- ethosu_firmware.mk
(pass)|-- ethosu_vela.mk
(pass)|-- flatbuffers.mk
(pass)|-- nnshark.mk
(pass)|-- nnstreamer.mk
(pass)|-- nnstreamer_edge.mk
(CONFIG_PYTORCH not define)|-- pytorch.mk
(pass)|-- ssat.mk
(pass)|-- tflite.mk
(NG)|-- tflite_ethosu_delegate.mk
(NG)|-- tflite_vx_delegate.mk =&amp;gt; NG
(pass)|-- tim_vx.mk
(pass)`-- tvm.mktflite_ethosu_delegate&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;THANKS~~&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 02:09:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2021527#M232558</guid>
      <dc:creator>yoooh8668</dc:creator>
      <dc:date>2025-01-03T02:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: [flexbuild v24.12][imx8mpevk] debian build failed in ml(tflite_ethosu_delegate)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2022158#M232625</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;We built it from debian docker with ML feature, there is no such issue when in our serveal tests.&lt;/P&gt;
&lt;P&gt;You can try to delete the docker container and delete the rootfs build folder in flexbuild as the&amp;nbsp;tflite_ethosu_delegate relies on the debian12 rootfs(not debian docker rootfs).&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 00:57:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2022158#M232625</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2025-01-06T00:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: [flexbuild v24.12][imx8mpevk] debian build failed in ml(tflite_ethosu_delegate)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2022406#M232650</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Does there any specific environment requirement?&lt;/P&gt;&lt;P&gt;On host of 20.04LTS(v5.4 kernel), it will failed on nnstreamer, and 22.04LTS (v6.8) won't.&lt;/P&gt;&lt;P&gt;Both of them use the same docker image, and run the same command.&lt;/P&gt;&lt;P&gt;Why them got different result?&lt;/P&gt;&lt;P&gt;What's your host environment?&lt;/P&gt;&lt;P&gt;THANKS~~&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 08:13:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2022406#M232650</guid>
      <dc:creator>yoooh8668</dc:creator>
      <dc:date>2025-01-06T08:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: [flexbuild v24.12][imx8mpevk] debian build failed in ml(tflite_ethosu_delegate)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2022416#M232651</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;The host environment is Ubuntu22.04 on our side. Referring the makefile of&amp;nbsp;tflite_ethosu_delegate, the building should use python environment in container. But from the information you provided, it looks like relate to host python environment.. I need check this with maintainer. Please use Ubunut22.04 as host environment.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 08:28:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2022416#M232651</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2025-01-06T08:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: [flexbuild v24.12][imx8mpevk] debian build failed in ml(tflite_ethosu_delegate)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2025469#M232854</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Tested host environment: &lt;STRONG&gt;18.04, 20.04, 22.04(x2)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Unfortunately, the only one who can build tflite_ethosu/vx_delegate is &lt;STRONG&gt;Ubuntu 18.04LTS&lt;/STRONG&gt;...&lt;/P&gt;&lt;P&gt;All of the &lt;STRONG&gt;need to patch nnstreamer&lt;/STRONG&gt; (expect one of the 22.04 computer).&lt;/P&gt;&lt;P&gt;Seems the build env is not isolated with host...&lt;/P&gt;&lt;P&gt;Still don't know what cause this happen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And except for the 18.04LTS host, we need to disable the NPU makefile to complete the build...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THANKS~~&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 05:32:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2025469#M232854</guid>
      <dc:creator>yoooh8668</dc:creator>
      <dc:date>2025-01-10T05:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: [flexbuild v24.12][imx8mpevk] debian build failed in ml(tflite_ethosu_delegate)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2025841#M232880</link>
      <description>Is there a way to remove the ml component dependency to build a minimal image? Most people probably don't need tensor flow. Those who do, can add it later.</description>
      <pubDate>Fri, 10 Jan 2025 13:44:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2025841#M232880</guid>
      <dc:creator>Edward_desplaines</dc:creator>
      <dc:date>2025-01-10T13:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: [flexbuild v24.12][imx8mpevk] debian build failed in ml(tflite_ethosu_delegate)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2026167#M232907</link>
      <description>&lt;P&gt;Hi all&amp;nbsp; and&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/151788"&gt;@Zhiming_Liu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still have the issue about host PC Ubuntu 22.04.&lt;/P&gt;&lt;P&gt;We tried using an Azure VM and follow the NXP SOP.&lt;/P&gt;&lt;P&gt;If possible, do you have sop that compiler it without ml.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2025 13:36:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2026167#M232907</guid>
      <dc:creator>charleshuang</dc:creator>
      <dc:date>2025-01-11T13:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: [flexbuild v24.12][imx8mpevk] debian build failed in ml(tflite_ethosu_delegate)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2026241#M232910</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Seems the build env is not isolated with host...&lt;/SPAN&gt;&lt;BR /&gt;---&amp;gt;Yes, from your tests, it looks like the containers still rely on the host environment. This is very strange. Let me try to test under different WSL Ubuntu version.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/245264"&gt;@Edward_desplaines&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209297"&gt;@yoooh8668&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/43469"&gt;@charleshuang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To remove the ML feature,&amp;nbsp; set the&lt;STRONG&gt; PKG_GROUPS_ML:n&lt;/STRONG&gt; here&amp;nbsp;&lt;A href="https://github.com/NXP/flexbuild/blob/LSDK-24.12_DEBIAN-12_LF-6.6.36/configs/sdk.yml" target="_blank" rel="noopener"&gt;https://github.com/NXP/flexbuild/blob/LSDK-24.12_DEBIAN-12_LF-6.6.36/configs/sdk.yml&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 01:45:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2026241#M232910</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2025-01-13T01:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: [flexbuild v24.12][imx8mpevk] debian build failed in ml(tflite_ethosu_delegate)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2026365#M232915</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/151788"&gt;@Zhiming_Liu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Follow your suggest :&amp;nbsp;&lt;SPAN&gt;set the&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;PKG_GROUPS_ML:n&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;We still can not compiler to success.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Building isp_vvcam_module ...&lt;BR /&gt;isp_vvcam_module [Done]&lt;BR /&gt;linux-modules [Done]&lt;BR /&gt;Installing kernel and dtb ...&lt;BR /&gt;Installing kernel modules ...&lt;BR /&gt;SOCFAMILY: IMX&lt;/P&gt;&lt;P&gt;Building sof_zephyr ...&lt;BR /&gt;sof_zephyr [Done]&lt;BR /&gt;SOCFAMILY: IMX&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;make: *** No rule to make target 'ethosu_firmware'. Stop.&lt;/FONT&gt;&lt;BR /&gt;[root@fbdebian flexbuild]$&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 05:19:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2026365#M232915</guid>
      <dc:creator>charleshuang</dc:creator>
      <dc:date>2025-01-13T05:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: [flexbuild v24.12][imx8mpevk] debian build failed in ml(tflite_ethosu_delegate)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2026572#M232928</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/43469"&gt;@charleshuang&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please try to delete the build_lsdk2412 folder and try to rebuild it again.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 08:40:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2026572#M232928</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2025-01-13T08:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: [flexbuild v24.12][imx8mpevk] debian build failed in ml(tflite_ethosu_delegate)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2026671#M232933</link>
      <description>&lt;P&gt;Hi all&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209297"&gt;@yoooh8668&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/43469"&gt;@charleshuang&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/245264"&gt;@Edward_desplaines&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This could be a BUG as I can see same error about&amp;nbsp;&lt;STRONG&gt;Could NOT find CLANG_FORMAT&lt;/STRONG&gt;&amp;nbsp;based on Ubuntu22.04(VMware virtual machine).&lt;BR /&gt;&lt;BR /&gt;Have shared this issue with maintainer.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 10:38:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2026671#M232933</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2025-01-13T10:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: [flexbuild v24.12][imx8mpevk] debian build failed in ml(tflite_ethosu_delegate)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2027399#M232974</link>
      <description>&lt;P&gt;Hello all&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209297"&gt;@yoooh8668&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/43469"&gt;@charleshuang&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/245264"&gt;@Edward_desplaines&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Temporary solution：&lt;/P&gt;
&lt;P&gt;1. Keep&amp;nbsp;&lt;SPAN data-teams="true"&gt;PKG_GROUPS_ML: y in sdk.yml&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;2. Comment these packages in ml.yml&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zhiming_Liu_0-1736842265765.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/319468i156997EBB01E9CE2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Zhiming_Liu_0-1736842265765.png" alt="Zhiming_Liu_0-1736842265765.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;3. Delete the .mk file about these packages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The flexbuild will be updated after fixing this tflite issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Update: Gopoint also need to be removed. Any package has Tensorflow dependency should be removed&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2025 01:03:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2027399#M232974</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2025-01-15T01:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: [flexbuild v24.12][imx8mpevk] debian build failed in ml(tflite_ethosu_delegate)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2030242#M233109</link>
      <description>&lt;P&gt;Dear Sirs,&lt;/P&gt;&lt;P&gt;I am having the same issue, any updates?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 03:17:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2030242#M233109</guid>
      <dc:creator>JasonFSYang</dc:creator>
      <dc:date>2025-01-20T03:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: [flexbuild v24.12][imx8mpevk] debian build failed in ml(tflite_ethosu_delegate)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2030351#M233116</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/242530"&gt;@JasonFSYang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer this reply:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zhiming_Liu_0-1737355099734.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/320286iF5C9289C8EEF5C6C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Zhiming_Liu_0-1737355099734.png" alt="Zhiming_Liu_0-1737355099734.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 06:38:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2030351#M233116</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2025-01-20T06:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: [flexbuild v24.12][imx8mpevk] debian build failed in ml(tflite_ethosu_delegate)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2032774#M233268</link>
      <description>&lt;LI-CODE lang="markup"&gt;From 9db918fa37e9448b4cb91dc8b5886166af297326 Mon Sep 17 00:00:00 2001
From: root &amp;lt;root@fbdebian.com&amp;gt;
Date: Fri, 17 Jan 2025 07:34:08 +0000
Subject: [PATCH] flexbuild: disable ml component

---
 configs/technexion.yml                | 2 +-
 src/apps/gopoint/imx_smart_fitness.mk | 2 +-
 tools/create_bootpartition            | 5 +++--
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/configs/technexion.yml b/configs/technexion.yml
index 625b99a..684ab09 100644
--- a/configs/technexion.yml
+++ b/configs/technexion.yml
@@ -26,7 +26,7 @@ PKG_GROUPS_NETWORKING: y
 PKG_GROUPS_CONNECTIVITY: y
 PKG_GROUPS_UTILS: y
 PKG_GROUPS_SECURITY: y
-PKG_GROUPS_ML: y
+PKG_GROUPS_ML: n
 PKG_GROUPS_GOPOINT: y
 PKG_GROUPS_ROBOTICS: n
 
diff --git a/src/apps/gopoint/imx_smart_fitness.mk b/src/apps/gopoint/imx_smart_fitness.mk
index ff57b8d..26fa46f 100644
--- a/src/apps/gopoint/imx_smart_fitness.mk
+++ b/src/apps/gopoint/imx_smart_fitness.mk
@@ -11,7 +11,7 @@ GPNT_APPS_FOLDER = /opt/gopoint-apps
 IMX_SMART_FITNESS_DIR = $(GPNT_APPS_FOLDER)/scripts/machine_learning/imx_smart_fitness
 
 imx_smart_fitness:
-	@[ $(SOCFAMILY) != IMX -o $(DISTROVARIANT) != desktop ] &amp;amp;&amp;amp; exit || \
+	@[ $(SOCFAMILY) != IMX -o $(DISTROVARIANT) != desktop -o ${PKG_GROUPS_ML} != y ] &amp;amp;&amp;amp; exit || \
 	 $(call fbprint_b,"imx_smart_fitness") &amp;amp;&amp;amp; \
 	 $(call repo-mngr,fetch,imx_smart_fitness,apps/gopoint) &amp;amp;&amp;amp; \
 	 if [ ! -f $(DESTDIR)/usr/lib/gstreamer-1.0/libnnstreamer.so ]; then \
diff --git a/tools/create_bootpartition b/tools/create_bootpartition
index 0c9e758..92cca87 100644
--- a/tools/create_bootpartition
+++ b/tools/create_bootpartition
@@ -50,7 +50,7 @@ generate_bootpartition_tarball() {
 	[ ! -d $FBOUTDIR/bsp/imx_firmware/lib/firmware/imx/dsp ] &amp;amp;&amp;amp; bld imx_dsp -a $DESTARCH -p $SOCFAMILY
 	[ ! -d $FBOUTDIR/bsp/imx_firmware/lib/firmware/imx/easrc ] &amp;amp;&amp;amp; bld imx_firmware -a $DESTARCH -p $SOCFAMILY
 	[ ! -d $FBOUTDIR/bsp/imx_mcore_demos/imx93-m33-demo ] &amp;amp;&amp;amp; bld mcore_demo -a $DESTARCH -p $SOCFAMILY
-	[ ! -d $DESTDIR/usr/lib/ethosu_firmware ] &amp;amp;&amp;amp; bld ethosu_firmware -a $DESTARCH -p $SOCFAMILY
+	[ ! -d $DESTDIR/usr/lib/ethosu_firmware ] &amp;amp;&amp;amp; [ "$PKG_GROUPS_ML" = y ] &amp;amp;&amp;amp; bld ethosu_firmware -a $DESTARCH -p $SOCFAMILY
 
 	cp -Prf $FBOUTDIR/bsp/imx_firmware/lib/firmware/* $bootpartdir/firmware
     fi
@@ -129,7 +129,8 @@ generate_bootpartition_tarball() {
                 dtb=${brd}*.dtb*
             fi
             ( echo $brd | grep -qE "imx93" ) &amp;amp;&amp;amp; \
-                cp -Prf $FBOUTDIR/bsp/imx_mcore_demos/imx93-m33-demo/imx93-*m33*.elf $DESTDIR/usr/lib/ethosu_firmware $bootpartdir/firmware
+                cp -Prf $FBOUTDIR/bsp/imx_mcore_demos/imx93-m33-demo/imx93-*m33*.elf $bootpartdir/firmware &amp;amp;&amp;amp; \
+		[ "$PKG_GROUPS_ML" = y ] &amp;amp;&amp;amp; cp -Prf $DESTDIR/usr/lib/ethosu_firmware $bootpartdir/firmware
             ls $FBOUTDIR/bsp/u-boot/$socseries*/${brd}*_boot.scr | xargs -I {} cp -v {} $bootpartdir
             cp -f $FBOUTDIR/linux/kernel/$DESTARCH/$SOCFAMILY/${dtb} $bootpartdir
             boottarball=${bootpartname}_${brd}_lts_${kernelver}${imaevmopt}_${timestamp}
-- 
2.39.5&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This patch disable ML, you can try to apply it.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 03:28:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2032774#M233268</guid>
      <dc:creator>yoooh8668</dc:creator>
      <dc:date>2025-01-23T03:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: [flexbuild v24.12][imx8mpevk] debian build failed in ml(tflite_ethosu_delegate)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2039113#M233677</link>
      <description>&lt;P&gt;Hello! I did it - &lt;STRONG&gt;PKG_GROUPS_ML:n&lt;/STRONG&gt;, delete the build_lsdk2412 folder. But the result - "&lt;FONT color="#FF0000"&gt;make: *** No rule to make target 'ethosu_firmware'. Stop."&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 07:35:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2039113#M233677</guid>
      <dc:creator>lvasa3091</dc:creator>
      <dc:date>2025-02-06T07:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: [flexbuild v24.12][imx8mpevk] debian build failed in ml(tflite_ethosu_delegate)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2039162#M233681</link>
      <description>&lt;A href="https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2032774/highlight/true#M233268" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2032774/highlight/true#M233268&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You can try to follow this patch.</description>
      <pubDate>Thu, 06 Feb 2025 08:42:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2039162#M233681</guid>
      <dc:creator>yoooh8668</dc:creator>
      <dc:date>2025-02-06T08:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: [flexbuild v24.12][imx8mpevk] debian build failed in ml(tflite_ethosu_delegate)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2045129#M234060</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209297"&gt;@yoooh8668&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/246479"&gt;@lvasa3091&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/242530"&gt;@JasonFSYang&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/43469"&gt;@charleshuang&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/245264"&gt;@Edward_desplaines&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Update:&lt;/P&gt;
&lt;P&gt;I test again referring on this github issues and it&amp;nbsp;can be successfully compiled.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/NXP/flexbuild/issues/11#issuecomment-2561862237" target="_blank"&gt;https://github.com/NXP/flexbuild/issues/11#issuecomment-2561862237&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 05:38:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2045129#M234060</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2025-02-17T05:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: [flexbuild v24.12][imx8mpevk] debian build failed in ml(tflite_ethosu_delegate)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2049624#M234352</link>
      <description>&lt;LI-CODE lang="markup"&gt;/home/joezhang/workspace/tn_debian_flexbuild_v24.12/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/tensor.h: At global scope:
/home/joezhang/workspace/tn_debian_flexbuild_v24.12/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/tensor.h:26:30: error: 'string' was not declared in this scope; did you mean 'std::string'?
   26 | class SequentialTensorWriter&amp;lt;string&amp;gt; {
      |                              ^~~~~~
      |                              std::string
In file included from /usr/aarch64-linux-gnu/include/c++/12/iosfwd:39,
                 from /usr/aarch64-linux-gnu/include/c++/12/bits/shared_ptr.h:52,
                 from /usr/aarch64-linux-gnu/include/c++/12/memory:77,
                 from /home/joezhang/workspace/tn_debian_flexbuild_v24.12/build_lsdk2412/apps/apps_arm64_debian_desktop/usr/include/flatbuffers/array.h:21,
                 from /home/joezhang/workspace/tn_debian_flexbuild_v24.12/build_lsdk2412/apps/apps_arm64_debian_desktop/usr/include/flatbuffers/flatbuffers.h:24:
/usr/aarch64-linux-gnu/include/c++/12/bits/stringfwd.h:77:33: note: 'std::string' declared here
   77 |   typedef basic_string&amp;lt;char&amp;gt;    string;
      |                                 ^~~~~~
/home/joezhang/workspace/tn_debian_flexbuild_v24.12/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/tensor.h:26:36: error: template argument 1 is invalid
   26 | class SequentialTensorWriter&amp;lt;string&amp;gt; {
      |                                    ^
/home/joezhang/workspace/tn_debian_flexbuild_v24.12/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h: In function 'TfLiteStatus tflite::reference_ops::GatherNdString(const tflite::RuntimeShape&amp;amp;, const TfLiteTensor*, const tflite::RuntimeShape&amp;amp;, const IndicesT*, const tflite::RuntimeShape&amp;amp;, TfLiteTensor*)':
/home/joezhang/workspace/tn_debian_flexbuild_v24.12/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h:641:3: error: 'DynamicBuffer' was not declared in this scope
  641 |   DynamicBuffer buffer;
      |   ^~~~~~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild_v24.12/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h:651:7: error: 'buffer' was not declared in this scope; did you mean 'Buffer'?
  651 |       buffer.AddString(GetString(params_data, from_pos + j));
      |       ^~~~~~
      |       Buffer
/home/joezhang/workspace/tn_debian_flexbuild_v24.12/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h:651:24: error: there are no arguments to 'GetString' that depend on a template parameter, so a declaration of 'GetString' must be available [-fpermissive]
  651 |       buffer.AddString(GetString(params_data, from_pos + j));
      |                        ^~~~~~~~~
/home/joezhang/workspace/tn_debian_flexbuild_v24.12/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h:651:24: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/home/joezhang/workspace/tn_debian_flexbuild_v24.12/components_lsdk2412/apps/ml/tflite/tensorflow/lite/kernels/internal/reference/reference_ops.h:654:3: error: 'buffer' was not declared in this scope; did you mean 'Buffer'?
  654 |   buffer.WriteToTensor(output_data, /*new_shape=*/nullptr);
      |   ^~~~~~
      |   Buffer
make[5]: *** [CMakeFiles/ethosu_delegate.dir/build.make:160: CMakeFiles/ethosu_delegate.dir/ethosu_supported_ops.cc.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: *** [CMakeFiles/ethosu_delegate.dir/build.make:104: CMakeFiles/ethosu_delegate.dir/ethosu_delegate.cc.o] Error 1
make[5]: *** [CMakeFiles/ethosu_delegate.dir/build.make:146: CMakeFiles/ethosu_delegate.dir/ethosu_delegate_utils.cc.o] Error 1
make[5]: Leaving directory '/home/joezhang/workspace/tn_debian_flexbuild_v24.12/components_lsdk2412/apps/ml/tflite_ethosu_delegate/build_debian_arm64'
make[4]: *** [CMakeFiles/Makefile2:1258: CMakeFiles/ethosu_delegate.dir/all] Error 2
make[4]: Leaving directory '/home/joezhang/workspace/tn_debian_flexbuild_v24.12/components_lsdk2412/apps/ml/tflite_ethosu_delegate/build_debian_arm64'
make[3]: *** [CMakeFiles/Makefile2:1265: CMakeFiles/ethosu_delegate.dir/rule] Error 2
make[3]: Leaving directory '/home/joezhang/workspace/tn_debian_flexbuild_v24.12/components_lsdk2412/apps/ml/tflite_ethosu_delegate/build_debian_arm64'
make[2]: *** [Makefile:169: ethosu_delegate] Error 2
make[2]: Leaving directory '/home/joezhang/workspace/tn_debian_flexbuild_v24.12/components_lsdk2412/apps/ml/tflite_ethosu_delegate/build_debian_arm64'
make[1]: *** [/home/joezhang/workspace/tn_debian_flexbuild_v24.12/src/apps/ml/tflite_ethosu_delegate.mk:11: tflite_ethosu_delegate] Error 2
make[1]: Leaving directory '/home/joezhang/workspace/tn_debian_flexbuild_v24.12/src/apps'
make: *** [Makefile:11: apps] Error 2
make: Leaving directory '/home/joezhang/workspace/tn_debian_flexbuild_v24.12/src'&lt;/LI-CODE&gt;&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/151788"&gt;@Zhiming_Liu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;still got error on my computer,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[root@fbdebian tn_debian_flexbuild_v24.12]$ git diff
diff --git a/src/apps/ml/tflite.mk b/src/apps/ml/tflite.mk
index 3d5957b..ba135a5 100644
--- a/src/apps/ml/tflite.mk
+++ b/src/apps/ml/tflite.mk
@@ -51,7 +51,7 @@ tflite:
         install -d $(DESTDIR)/usr/include/tsl/platform &amp;amp;&amp;amp; \
         install -d $(DESTDIR)/usr/lib/python3.11/site-packages &amp;amp;&amp;amp; \
         cd $(MLDIR)/tflite/tensorflow/lite &amp;amp;&amp;amp; \
-        find . -name "*.h" | xargs -I {} cp {} $(DESTDIR)/usr/include/tensorflow/lite &amp;amp;&amp;amp; \
+        find . -name "*.h" | grep -v lite/testing | xargs -I {} cp {} $(DESTDIR)/usr/include/tensorflow/lite &amp;amp;&amp;amp; \
         cp $(MLDIR)/tflite/tensorflow/core/public/version.h $(DESTDIR)/usr/include/tensorflow/core/public &amp;amp;&amp;amp; \
         cp $(FBDIR)/src/system/pkgconfig/tensorflow2-lite.pc $(DESTDIR)/usr/lib/pkgconfig &amp;amp;&amp;amp; \&lt;/LI-CODE&gt;&lt;P&gt;I removed the components/build folder before run bld command.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 05:46:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/flexbuild-v24-12-imx8mpevk-debian-build-failed-in-ml-tflite/m-p/2049624#M234352</guid>
      <dc:creator>yoooh8668</dc:creator>
      <dc:date>2025-02-24T05:46:00Z</dc:date>
    </item>
  </channel>
</rss>

