<?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: Bitbake Yocto rust-llvm_1.59. Nitrogen8mm SBC in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Bitbake-Yocto-rust-llvm-1-59-Nitrogen8mm-SBC/m-p/1625015#M203457</link>
    <description>&lt;P&gt;Ran it with 4 CPUs and 10 G of memory - still doesn't work. Is there a quick and dirty way of just removing rust from the build? Not planning on using it anyway.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Mar 2023 07:22:21 GMT</pubDate>
    <dc:creator>J_W</dc:creator>
    <dc:date>2023-03-30T07:22:21Z</dc:date>
    <item>
      <title>Bitbake Yocto rust-llvm_1.59. Nitrogen8mm SBC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bitbake-Yocto-rust-llvm-1-59-Nitrogen8mm-SBC/m-p/1594259#M201110</link>
      <description>&lt;P&gt;I am attempting to follow these instructions on a Nitrogen8m Mini SBC&amp;nbsp;&lt;A href="https://boundarydevices.com/mender-kirkstone-release-for-i-mx8-platforms/" target="_blank"&gt;https://boundarydevices.com/mender-kirkstone-release-for-i-mx8-platforms/&lt;/A&gt;&amp;nbsp;. I am using the following Dockerfile for the build environment set up:&amp;nbsp;&lt;A href="http://linode.boundarydevices.com/docker/dockerfile_focal" target="_blank"&gt;http://linode.boundarydevices.com/docker/dockerfile_focal&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After modifying the local.conf file and executing the bitbake command, I received the following error:&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR: Task (virtual:native:/home/jenkins/yocto-mender/sources/poky/meta/recipes-devtools/rust/rust-llvm_1.59.0.bb:do_compile) failed with exit code '1'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I noticed the poky repo is synced to this git repo -&amp;nbsp;&lt;A href="https://git.yoctoproject.org/" target="_blank"&gt;https://git.yoctoproject.org/&lt;/A&gt;&amp;nbsp;, and it looks like the /poky/meta/recipes-devtools/rust/ folder for the kirkstone branch does incude the 1.59 rust version, not a higher version.&lt;/P&gt;&lt;P&gt;For reference, here is the Build Configuration output.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mldmelissa_0-1675726208760.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/209840i4463D95155C9881E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mldmelissa_0-1675726208760.png" alt="mldmelissa_0-1675726208760.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me understand why this error is occurring with rust-llvm? Do I need to manually update the poky repo to use a newer version of rust-llvm? For example, it looks like the poky repo kept in github uses version 1.67 instead&amp;nbsp;&lt;A href="https://github.com/yoctoproject/poky/tree/master/meta/recipes-devtools/rust" target="_blank"&gt;https://github.com/yoctoproject/poky/tree/master/meta/recipes-devtools/rust&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 23:32:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bitbake-Yocto-rust-llvm-1-59-Nitrogen8mm-SBC/m-p/1594259#M201110</guid>
      <dc:creator>mldmelissa</dc:creator>
      <dc:date>2023-02-06T23:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Bitbake Yocto rust-llvm_1.59. Nitrogen8mm SBC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bitbake-Yocto-rust-llvm-1-59-Nitrogen8mm-SBC/m-p/1601428#M201680</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;Regarding your query, I would like to mention that while I am not an expert or an employee of NXP, I have successfully compiled and executed a Rust program on an IMX8MP device. As per my understanding, the only version of Rust supported on Kirkstone release of The Yocto Project is 1.59. Although there is a variable RUSTVERSION in &lt;STRONG&gt;poky/meta/conf/distro/include/tcmode-default.inc&lt;/STRONG&gt;, there is no recipe available in &lt;STRONG&gt;poky/meta/recipes-devtool/rust&lt;/STRONG&gt; for versions other than 1.59. The master layer of poky, however, supports Rust version 1.67. Since seems you are using Kirkstone, I believe you have a few options to consider:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Attempt to use the poky master branch, although this may potentially break the build for other recipes in other layers.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Endeavor to port the necessary Rust files from the master to your Kirkstone branch.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Utilize the meta-rust layer. However, please keep in mind that there is already Rust support in the poky/openembedded core layer, and there may be conflicts that arise. To address this, you will need to set layer priorities.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Opt to use Rust 1.59, if feasible. From my understanding, the changes in Rust between versions 1.59 and 1.67 should not cause significant issues.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Also, about the error in you rust-llvm compilation. Can you show your log file output in tmp/work of your build?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2023 22:08:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bitbake-Yocto-rust-llvm-1-59-Nitrogen8mm-SBC/m-p/1601428#M201680</guid>
      <dc:creator>jpgoncalves</dc:creator>
      <dc:date>2023-02-18T22:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Bitbake Yocto rust-llvm_1.59. Nitrogen8mm SBC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bitbake-Yocto-rust-llvm-1-59-Nitrogen8mm-SBC/m-p/1602107#M201746</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/187110"&gt;@jpgoncalves&lt;/a&gt;&amp;nbsp;I was able to get the build working as is with rust-llvm-1.59.0. It turns out that this package specifically takes a lot of RAM/CPU to build and I was running into low RAM issues when executing the full build, which wasn't apparent as the cause of the error in the build error output. I followed the instructions from the NXP post below by building rust-llvm separately with "bitbake rust-llvm" and then built the full package again and it worked.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/IMX8QXP-MEK-in-Yocto-5-15-71-rust-llvm-1-59-0-bb-do-compile/m-p/1599022" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/IMX8QXP-MEK-in-Yocto-5-15-71-rust-llvm-1-59-0-bb-do-compile/m-p/1599022&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 15:19:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bitbake-Yocto-rust-llvm-1-59-Nitrogen8mm-SBC/m-p/1602107#M201746</guid>
      <dc:creator>mldmelissa</dc:creator>
      <dc:date>2023-02-20T15:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Bitbake Yocto rust-llvm_1.59. Nitrogen8mm SBC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bitbake-Yocto-rust-llvm-1-59-Nitrogen8mm-SBC/m-p/1625015#M203457</link>
      <description>&lt;P&gt;Ran it with 4 CPUs and 10 G of memory - still doesn't work. Is there a quick and dirty way of just removing rust from the build? Not planning on using it anyway.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 07:22:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bitbake-Yocto-rust-llvm-1-59-Nitrogen8mm-SBC/m-p/1625015#M203457</guid>
      <dc:creator>J_W</dc:creator>
      <dc:date>2023-03-30T07:22:21Z</dc:date>
    </item>
  </channel>
</rss>

