<?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>i.MX ProcessorsのトピックRe: Failure building TensorFlow Lite Library with Flex Delegate</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Failure-building-TensorFlow-Lite-Library-with-Flex-Delegate/m-p/2098220#M237261</link>
    <description>&lt;P&gt;Hey, thanks for responding. The toolchain is&amp;nbsp;entirely contained within the docker image that I downloaded according to the instructions, if there is anything wrong with it then it would be failing for you as well. Since the instructions are working for you, can you please try starting from a fresh state and copy-paste the commands I&amp;nbsp;quoted in my original question? Since I tried this sequence on three different machines with different Linux flavors and all failed, the only thing that could be wrong is that I didn't follow the instructions correctly and that something in the commands I am using is wrong. Thanks again.&lt;/P&gt;</description>
    <pubDate>Thu, 15 May 2025 14:26:10 GMT</pubDate>
    <dc:creator>itaychq</dc:creator>
    <dc:date>2025-05-15T14:26:10Z</dc:date>
    <item>
      <title>Failure building TensorFlow Lite Library with Flex Delegate</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Failure-building-TensorFlow-Lite-Library-with-Flex-Delegate/m-p/2095519#M237123</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;In the "&lt;SPAN&gt;i.MX Machine Learning User's Guide" (UG10166) section&amp;nbsp;&lt;/SPAN&gt;2.6.2 there are detailed instructions for building the TensorFlow Lite Library with the Flex Delegate for i.MX Linux platforms. I need this to execute inference in a TF model containing&amp;nbsp;processing nodes named FlexErf. Unfortunately the build is failing for me, even though the instructions are based on a Docker that includes the entire build environment and is not supposed to be affected by the environment on which it's running. I have tried this on Ubuntu 20.04, Ubuntu 22.04 and Linux Mint&amp;nbsp;&lt;SPAN&gt;22.1 systems with the same error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Here are the commands I am entering. On Ubuntu 20 I had to add '--network host' to the docker run line.&lt;/P&gt;&lt;P&gt;$ git clone &lt;A href="https://github.com/nxp-imx/tensorflow-imx.git" target="_blank"&gt;https://github.com/nxp-imx/tensorflow-imx.git&lt;/A&gt; -b lf-6.12.3_1.0.0&lt;BR /&gt;$ cd tensorflow-imx&lt;BR /&gt;$ docker pull tensorflow/build:2.18-python3.12&lt;BR /&gt;$ docker run -e "no_proxy=localhost,127.0.0.1" -it -w /tensorflow -v /`pwd`:/tensorflow -e HOST_PERMS="\\((id -u):\\)(id -g)" tensorflow/build:2.18-python3.12&lt;BR /&gt;tf-docker /tensorflow &amp;gt; ./configure # accepted all defaults&lt;BR /&gt;tf-docker /tensorflow &amp;gt; bazel --output_base=/tensorflow/docker-build/ build --config=monolithic --config=elinux_aarch64 -c opt --cxxopt='--std=c++17' --host_crosstool_top=@bazel_tools//tools/cpp:toolchain //tensorflow/lite/delegates/flex/test:benchmark_model_plus_flex_full&lt;/P&gt;&lt;P&gt;The error I am receiving is:&lt;BR /&gt;ERROR: /tensorflow/docker-build/external/icu/BUILD.bazel:33:11: Compiling icu4c/source/common/brkiter.cpp failed: (Exit 1): aarch64-none-linux-gnu-gcc failed: error executing command (from target @icu//:icuuc) /tensorflow/docker-build/external/aarch64_linux_toolchain/bin/aarch64-none-linux-gnu-gcc -fstack-protector -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections -isystem ... (remaining 50 arguments skipped)&lt;BR /&gt;In file included from external/icu/icu4c/source/common/brkiter.cpp:27:&lt;BR /&gt;external/icu/icu4c/source/common/unicode/rbbi.h:263:19: error: conflicting return type specified for 'virtual UBool icu_70::RuleBasedBreakIterator::operator==(const icu_70::BreakIterator&amp;amp;) const'&lt;BR /&gt;263 | virtual UBool operator==(const BreakIterator&amp;amp; that) const;&lt;BR /&gt;| ^~~~~~~~&lt;BR /&gt;In file included from external/icu/icu4c/source/common/unicode/rbbi.h:30,&lt;BR /&gt;from external/icu/icu4c/source/common/brkiter.cpp:27:&lt;BR /&gt;/usr/include/unicode/brkiter.h:127:18: note: overridden function is 'virtual bool icu_70::BreakIterator::operator==(const icu_70::BreakIterator&amp;amp;) const'&lt;BR /&gt;127 | virtual bool operator==(const BreakIterator&amp;amp;) const = 0;&lt;BR /&gt;| ^~~~~~~~&lt;BR /&gt;Target //tensorflow/lite/delegates/flex/test:benchmark_model_plus_flex_full failed to build&lt;/P&gt;&lt;P&gt;Since both the version of tensorflow-imx and of the docker are specified according to the versions recommend in the document, and the commands I typed are exactly as described, I would have expected this to work. Does anyone have an idea what I may be doing wrong? Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 13:02:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Failure-building-TensorFlow-Lite-Library-with-Flex-Delegate/m-p/2095519#M237123</guid>
      <dc:creator>itaychq</dc:creator>
      <dc:date>2025-05-12T13:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Failure building TensorFlow Lite Library with Flex Delegate</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Failure-building-TensorFlow-Lite-Library-with-Flex-Delegate/m-p/2098203#M237258</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;It appear that the issue is with the toolchain, please check it, since everything works well on my side with the instruction on the document.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 14:08:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Failure-building-TensorFlow-Lite-Library-with-Flex-Delegate/m-p/2098203#M237258</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2025-05-15T14:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Failure building TensorFlow Lite Library with Flex Delegate</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Failure-building-TensorFlow-Lite-Library-with-Flex-Delegate/m-p/2098220#M237261</link>
      <description>&lt;P&gt;Hey, thanks for responding. The toolchain is&amp;nbsp;entirely contained within the docker image that I downloaded according to the instructions, if there is anything wrong with it then it would be failing for you as well. Since the instructions are working for you, can you please try starting from a fresh state and copy-paste the commands I&amp;nbsp;quoted in my original question? Since I tried this sequence on three different machines with different Linux flavors and all failed, the only thing that could be wrong is that I didn't follow the instructions correctly and that something in the commands I am using is wrong. Thanks again.&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 14:26:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Failure-building-TensorFlow-Lite-Library-with-Flex-Delegate/m-p/2098220#M237261</guid>
      <dc:creator>itaychq</dc:creator>
      <dc:date>2025-05-15T14:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Failure building TensorFlow Lite Library with Flex Delegate</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Failure-building-TensorFlow-Lite-Library-with-Flex-Delegate/m-p/2098232#M237267</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;No, you need install the toolchain as the machine learning guide section 2.5.1&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 14:46:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Failure-building-TensorFlow-Lite-Library-with-Flex-Delegate/m-p/2098232#M237267</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2025-05-15T14:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Failure building TensorFlow Lite Library with Flex Delegate</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Failure-building-TensorFlow-Lite-Library-with-Flex-Delegate/m-p/2099660#M237326</link>
      <description>&lt;P&gt;Thanks to support from another person at NXP I have overcome the issue.&lt;/P&gt;&lt;P&gt;The problem is due to a discrepancy between the /usr/include/unicode/brkiter.h file inside the docker container and the tensorflow-imx/docker-build/external/icu/icu4c/source/common/unicode/brkiter.h file that Bazel fetches.&lt;/P&gt;&lt;P&gt;The workaround is to&amp;nbsp;rename the /usr/include/unicode folder to something else, before starting the bazel build.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 08:15:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Failure-building-TensorFlow-Lite-Library-with-Flex-Delegate/m-p/2099660#M237326</guid>
      <dc:creator>itaychq</dc:creator>
      <dc:date>2025-05-19T08:15:21Z</dc:date>
    </item>
  </channel>
</rss>

