<?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: i.MX 8M+: error building kernel tools with yocto-generated toolchain</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX-8M-error-building-kernel-tools-with-yocto-generated/m-p/2036653#M233528</link>
    <description>&lt;P&gt;Ah, that checks out! My custom image is a variant of `imx-image-multimedia`; I haven't built `full-image`. Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jan 2025 15:52:08 GMT</pubDate>
    <dc:creator>ianb</dc:creator>
    <dc:date>2025-01-31T15:52:08Z</dc:date>
    <item>
      <title>i.MX 8M+: error building kernel tools with yocto-generated toolchain</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX-8M-error-building-kernel-tools-with-yocto-generated/m-p/2035800#M233472</link>
      <description>&lt;P&gt;I'm running into build errors when I try to compile the kernel tools with a toolchain I created via Yocto for the i.MX 8M+ eval kit. I'm able to build the device tree, the kernel, and modules; it's just the tools that are failing. Specifically spidev_test.&amp;nbsp;The toolchain was generated via `bitbake &amp;lt;image&amp;gt; -c populate_sdk` as per the i.MX Yocto docs, and has been working fine otherwise.&lt;/P&gt;&lt;P&gt;Here's what I'm seeing:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ source /opt/fsl-imx-xwayland/6.6-scarthgap/environment-setup-armv8a-poky-linux
$ make tools/spi
  DESCEND spi
  CC      /home/ian/build/imx-yocto-bsp/linux-imx/tools/spi/spidev_test.o
In file included from spidev_test.c:11:
/opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/13.3.0/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory
    9 | # include_next &amp;lt;stdint.h&amp;gt;
      |                ^~~~~~~~~~
compilation terminated.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can bypass this by adding `&lt;SPAN&gt;-I/opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/include` to CFLAGS, but then I run into this:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  DESCEND spi
  CC      /home/ian/build/imx-yocto-bsp/linux-imx/tools/spi/spidev_test.o
In file included from /opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/include/features.h:527,
                 from /opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/include/bits/libc-header-start.h:33,
                 from /opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/include/stdint.h:26,
                 from spidev_test.c:11:
/opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-32.h: No such file or directory
    7 | # include &amp;lt;gnu/stubs-32.h&amp;gt;
      |           ^~~~~~~~~~~~~~~~
compilation terminated.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see that the toolchain is (incorrectly?) linking to stubs-32 and hack in a link to stubs-64 (arm64 target). When I try again, I get this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ make tools/spi
  DESCEND spi
  CC      /home/ian/build/imx-yocto-bsp/linux-imx/tools/spi/spidev_test.o
In file included from spidev_test.c:11:
/opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/include/stdint.h:98: warning: "__INT64_C" redefined
   98 | #  define __INT64_C(c)  c ## LL
      | 
&amp;lt;built-in&amp;gt;: note: this is the location of the previous definition
/opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/include/stdint.h:99: warning: "__UINT64_C" redefined
   99 | #  define __UINT64_C(c) c ## ULL
      | 
&amp;lt;built-in&amp;gt;: note: this is the location of the previous definition
  LD      /home/ian/build/imx-yocto-bsp/linux-imx/tools/spi/spidev_test-in.o
  LINK    /home/ian/build/imx-yocto-bsp/linux-imx/tools/spi/spidev_test
/opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/13.3.0/ld: cannot find Scrt1.o: No such file or directory
/opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/13.3.0/ld: cannot find crti.o: No such file or directory
/opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/13.3.0/ld: cannot find crtbeginS.o: No such file or directory
/opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/13.3.0/ld: cannot find -lgcc: No such file or directory
/opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/13.3.0/ld: cannot find -lgcc_s: No such file or directory
/opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/13.3.0/ld: cannot find -lc: No such file or directory
/opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/13.3.0/ld: cannot find -lgcc: No such file or directory
/opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/13.3.0/ld: cannot find -lgcc_s: No such file or directory
/opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/13.3.0/ld: cannot find crtendS.o: No such file or directory
/opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/13.3.0/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:42: /home/ian/build/imx-yocto-bsp/linux-imx/tools/spi/spidev_test] Error 1
make[2]: *** [Makefile:73: spi] Error 2
make[1]: *** [/home/ian/build/imx-yocto-bsp/linux-imx/Makefile:1362: tools/spi] Error 2
make: *** [Makefile:234: __sub-make] Error 2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like something isn't set up right within the toolchain. Or, am I missing something in my system environment? Any clues as to what's happening here?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 18:28:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX-8M-error-building-kernel-tools-with-yocto-generated/m-p/2035800#M233472</guid>
      <dc:creator>ianb</dc:creator>
      <dc:date>2025-01-29T18:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX 8M+: error building kernel tools with yocto-generated toolchain</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX-8M-error-building-kernel-tools-with-yocto-generated/m-p/2036128#M233497</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;It looks like you have to build the full-image to compile this since for some reason I received stubs-32-bit and for full-image stubs64.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 12:41:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX-8M-error-building-kernel-tools-with-yocto-generated/m-p/2036128#M233497</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2025-01-30T12:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX 8M+: error building kernel tools with yocto-generated toolchain</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX-8M-error-building-kernel-tools-with-yocto-generated/m-p/2036653#M233528</link>
      <description>&lt;P&gt;Ah, that checks out! My custom image is a variant of `imx-image-multimedia`; I haven't built `full-image`. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 15:52:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX-8M-error-building-kernel-tools-with-yocto-generated/m-p/2036653#M233528</guid>
      <dc:creator>ianb</dc:creator>
      <dc:date>2025-01-31T15:52:08Z</dc:date>
    </item>
  </channel>
</rss>

