<?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: Error during kernel cross-compilation in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Error-during-kernel-cross-compilation/m-p/2037243#M233559</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206761"&gt;@Chavira&lt;/a&gt; ,&lt;BR /&gt;&lt;BR /&gt;For yocto I am following this &lt;STRONG&gt;UG10164 i.MX Yocto Project User's Guide Rev. LF6.6.52_2.2.0 — 16 December 2024&lt;/STRONG&gt; and this is the kernel version I have cloned using the step given in this doc -&lt;BR /&gt;"&lt;STRONG&gt;repo init -u &lt;A href="https://github.com/nxp-imx/imx-manifest" target="_blank"&gt;https://github.com/nxp-imx/imx-manifest&lt;/A&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;-b imx-linux-scarthgap -m imx-6.6.52-2.2.0.xml&lt;/STRONG&gt;"&lt;BR /&gt;&lt;BR /&gt;To build the Image and populate SDK, the steps followed are listed below:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Image:&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;$ DISTRO=fsl-imx-xwayland MACHINE=imx93-11x11-lpddr4x-evk source imx-setup-release.sh -b&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;build-xwayland&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;$ bitbake imx-image-full&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;Populate SDK:&lt;/STRONG&gt; (Used the same environment with which I build the above Image)&lt;BR /&gt;&lt;FONT size="2"&gt;$ DISTRO=fsl-imx-xwayland MACHINE=imx93-11x11-lpddr4x-evk bitbake imx-image-full -c populate_sdk&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;Then used the &lt;STRONG&gt;.sh&lt;/STRONG&gt; file generated and &lt;STRONG&gt;executed it and sourced it in another environment&lt;/STRONG&gt; and followed the below steps for &lt;STRONG&gt;Linux Kernel Standalone build:&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;$ git clone &lt;A href="https://github.com/nxp-imx/linux-imx" target="_blank"&gt;https://github.com/nxp-imx/linux-imx&lt;/A&gt; -b lf-6.6.y&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;$ cd linux-imx&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;$ make imx_v8_defconfig&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;$ make &lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;Kindly let me know If I need to change anything from the above to solve the issue.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Naveen.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Feb 2025 14:13:42 GMT</pubDate>
    <dc:creator>Navee_nK</dc:creator>
    <dc:date>2025-02-03T14:13:42Z</dc:date>
    <item>
      <title>Error during kernel cross-compilation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Error-during-kernel-cross-compilation/m-p/2036884#M233537</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have followed the steps outlined in this link: &lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/How-to-compile-Linux-Kernel-Image-and-device-tree-using-Yocto/ta-p/2022759" target="_self"&gt;How to compile Linux Kernel Image and device tree using Yocto SDK&lt;/A&gt; to compile the kernel source. I was able to successfully execute up to the &lt;STRONG&gt;make imx_v8_defconfig&lt;/STRONG&gt; step. However, when I run the next &lt;STRONG&gt;make&lt;/STRONG&gt; command, I encounter the following errors.&lt;BR /&gt;&lt;FONT size="2"&gt;CALL scripts/checksyscalls.sh&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;HOSTCC certs/extract-cert&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/i.MX_93/sdk/sysroots/x86_64-pokysdk-linux/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libcrypto.so: undefined reference to `pthread_rwlock_rdlock@GLIBC_2.2.5'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/i.MX_93/sdk/sysroots/x86_64-pokysdk-linux/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libcrypto.so: undefined reference to `pthread_setspecific@GLIBC_2.2.5'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/i.MX_93/sdk/sysroots/x86_64-pokysdk-linux/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libcrypto.so: undefined reference to `pthread_key_delete@GLIBC_2.2.5'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/i.MX_93/sdk/sysroots/x86_64-pokysdk-linux/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libcrypto.so: undefined reference to `pthread_rwlock_unlock@GLIBC_2.2.5'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/i.MX_93/sdk/sysroots/x86_64-pokysdk-linux/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libcrypto.so: undefined reference to `dlopen@GLIBC_2.2.5'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/i.MX_93/sdk/sysroots/x86_64-pokysdk-linux/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libcrypto.so: undefined reference to `pthread_rwlock_destroy@GLIBC_2.2.5'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/i.MX_93/sdk/sysroots/x86_64-pokysdk-linux/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libcrypto.so: undefined reference to `dlerror@GLIBC_2.2.5'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/i.MX_93/sdk/sysroots/x86_64-pokysdk-linux/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libcrypto.so: undefined reference to `dlclose@GLIBC_2.2.5'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/i.MX_93/sdk/sysroots/x86_64-pokysdk-linux/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libcrypto.so: undefined reference to `dlsym@GLIBC_2.2.5'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/i.MX_93/sdk/sysroots/x86_64-pokysdk-linux/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libcrypto.so: undefined reference to `pthread_once@GLIBC_2.2.5'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/i.MX_93/sdk/sysroots/x86_64-pokysdk-linux/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libcrypto.so: undefined reference to `pthread_rwlock_wrlock@GLIBC_2.2.5'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/i.MX_93/sdk/sysroots/x86_64-pokysdk-linux/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libcrypto.so: undefined reference to `pthread_rwlock_init@GLIBC_2.2.5'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/i.MX_93/sdk/sysroots/x86_64-pokysdk-linux/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libcrypto.so: undefined reference to `pthread_key_create@GLIBC_2.2.5'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/i.MX_93/sdk/sysroots/x86_64-pokysdk-linux/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libcrypto.so: undefined reference to `pthread_getspecific@GLIBC_2.2.5'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/i.MX_93/sdk/sysroots/x86_64-pokysdk-linux/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libcrypto.so: undefined reference to `dladdr@GLIBC_2.2.5'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;collect2: error: ld returned 1 exit status&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;make[3]: *** [scripts/Makefile.host:114: certs/extract-cert] Error 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;make[2]: *** [scripts/Makefile.build:480: certs] Error 2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;make[1]: *** [/i.MX_93/linux-imx/Makefile:1921: .] Error 2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;make: *** [Makefile:234: __sub-make] Error 2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I have tried several workarounds and rebuilds, but none of them have resolved the issue. Could you kindly assist me in resolving this problem?&lt;/P&gt;&lt;P&gt;Note: I am using this kernel build for the i.MX93 EVK, and in Yocto, I have specified the machine config as imx93-11x11-lpddr4x-evk as menioned in the Yocto Project User's Guide.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Naveen&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2025 13:35:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Error-during-kernel-cross-compilation/m-p/2036884#M233537</guid>
      <dc:creator>Navee_nK</dc:creator>
      <dc:date>2025-02-01T13:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error during kernel cross-compilation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Error-during-kernel-cross-compilation/m-p/2037227#M233558</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/244980"&gt;@Navee_nK&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your Yocto SDK version is the same of the kernel that you want to compile?&lt;/P&gt;
&lt;P&gt;I see that the error is on the crypto library so, you have to made the same modifications made in the kernel (standalone environment) in kernel compiled in the yocto sdk.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 13:49:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Error-during-kernel-cross-compilation/m-p/2037227#M233558</guid>
      <dc:creator>Chavira</dc:creator>
      <dc:date>2025-02-03T13:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error during kernel cross-compilation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Error-during-kernel-cross-compilation/m-p/2037243#M233559</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206761"&gt;@Chavira&lt;/a&gt; ,&lt;BR /&gt;&lt;BR /&gt;For yocto I am following this &lt;STRONG&gt;UG10164 i.MX Yocto Project User's Guide Rev. LF6.6.52_2.2.0 — 16 December 2024&lt;/STRONG&gt; and this is the kernel version I have cloned using the step given in this doc -&lt;BR /&gt;"&lt;STRONG&gt;repo init -u &lt;A href="https://github.com/nxp-imx/imx-manifest" target="_blank"&gt;https://github.com/nxp-imx/imx-manifest&lt;/A&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;-b imx-linux-scarthgap -m imx-6.6.52-2.2.0.xml&lt;/STRONG&gt;"&lt;BR /&gt;&lt;BR /&gt;To build the Image and populate SDK, the steps followed are listed below:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Image:&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;$ DISTRO=fsl-imx-xwayland MACHINE=imx93-11x11-lpddr4x-evk source imx-setup-release.sh -b&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;build-xwayland&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;$ bitbake imx-image-full&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;Populate SDK:&lt;/STRONG&gt; (Used the same environment with which I build the above Image)&lt;BR /&gt;&lt;FONT size="2"&gt;$ DISTRO=fsl-imx-xwayland MACHINE=imx93-11x11-lpddr4x-evk bitbake imx-image-full -c populate_sdk&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;Then used the &lt;STRONG&gt;.sh&lt;/STRONG&gt; file generated and &lt;STRONG&gt;executed it and sourced it in another environment&lt;/STRONG&gt; and followed the below steps for &lt;STRONG&gt;Linux Kernel Standalone build:&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;$ git clone &lt;A href="https://github.com/nxp-imx/linux-imx" target="_blank"&gt;https://github.com/nxp-imx/linux-imx&lt;/A&gt; -b lf-6.6.y&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;$ cd linux-imx&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;$ make imx_v8_defconfig&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;$ make &lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;Kindly let me know If I need to change anything from the above to solve the issue.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Naveen.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 14:13:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Error-during-kernel-cross-compilation/m-p/2037243#M233559</guid>
      <dc:creator>Navee_nK</dc:creator>
      <dc:date>2025-02-03T14:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error during kernel cross-compilation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Error-during-kernel-cross-compilation/m-p/2037246#M233560</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/244980"&gt;@Navee_nK&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try cloning the exact kernel version of the Yocto SDK, in this case is 6.6.52.&lt;/P&gt;
&lt;P&gt;Try using the next command:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$ git clone https://github.com/nxp-imx/linux-imx.git -b lf-6.6.52-2.2.0&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards!&lt;/P&gt;
&lt;P&gt;Chavira&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 14:19:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Error-during-kernel-cross-compilation/m-p/2037246#M233560</guid>
      <dc:creator>Chavira</dc:creator>
      <dc:date>2025-02-03T14:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error during kernel cross-compilation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Error-during-kernel-cross-compilation/m-p/2037777#M233596</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206761"&gt;@Chavira&lt;/a&gt; ,&lt;BR /&gt;&lt;BR /&gt;Tried using the command you gave, but the same issue still exists.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Naveen&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 15:30:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Error-during-kernel-cross-compilation/m-p/2037777#M233596</guid>
      <dc:creator>Navee_nK</dc:creator>
      <dc:date>2025-02-04T15:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error during kernel cross-compilation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Error-during-kernel-cross-compilation/m-p/2037917#M233601</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/244980"&gt;@Navee_nK&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;I have compiled the 6.6.52 kernel without errors.&lt;/P&gt;
&lt;P&gt;I attached my log file of each step that I have followed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 18:25:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Error-during-kernel-cross-compilation/m-p/2037917#M233601</guid>
      <dc:creator>Chavira</dc:creator>
      <dc:date>2025-02-04T18:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error during kernel cross-compilation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Error-during-kernel-cross-compilation/m-p/2038212#M233613</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206761"&gt;@Chavira&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Thanks for the information. I will check it on my end.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Naveen&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 04:27:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Error-during-kernel-cross-compilation/m-p/2038212#M233613</guid>
      <dc:creator>Navee_nK</dc:creator>
      <dc:date>2025-02-05T04:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error during kernel cross-compilation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Error-during-kernel-cross-compilation/m-p/2046374#M234137</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/244980"&gt;@Navee_nK&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;we noticed the same issue but only have problems when using SDK on older Ubuntu 20.04.&lt;BR /&gt;SDK on Ubuntu 22.04 works as expected.&lt;BR /&gt;&lt;BR /&gt;Were you maybe able to fix the issue?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 12:52:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Error-during-kernel-cross-compilation/m-p/2046374#M234137</guid>
      <dc:creator>jabck386</dc:creator>
      <dc:date>2025-02-18T12:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error during kernel cross-compilation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Error-during-kernel-cross-compilation/m-p/2046408#M234142</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/246967"&gt;@jabck386&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Yes, that was an issue on our end as well, and we were able to confirm it after &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206761"&gt;@Chavira&lt;/a&gt; mentioned there was no problem with the SDK toolchain build. We then moved to a different PC with latest version of ubuntu, and that resolved the issue. Many thanks for confirming it on your end too, &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/246967"&gt;@jabck386&lt;/a&gt; !&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 13:52:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Error-during-kernel-cross-compilation/m-p/2046408#M234142</guid>
      <dc:creator>Navee_nK</dc:creator>
      <dc:date>2025-02-18T13:52:28Z</dc:date>
    </item>
  </channel>
</rss>

