<?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のトピックCross compilation using linux libraries</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Cross-compilation-using-linux-libraries/m-p/607100#M91494</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having issues when using a cross compiler on a program that is included with the kernel im using on a nitrogen6 board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The disto I am using is:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/boundarydevices/linux-imx6/tree/boundary-imx_3.14.52_1.1.0_ga" title="https://github.com/boundarydevices/linux-imx6/tree/boundary-imx_3.14.52_1.1.0_ga"&gt;GitHub - boundarydevices/linux-imx6 at boundary-imx_3.14.52_1.1.0_ga&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The file in question is spidev_test.c which can be found in the above repo at /Documentation/spi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to build it using a linux virtual machine (xubuntu, not sure which version at the moment)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ive tried multiple ways of building it including just gcc or the arm cross compiler with the command&lt;/P&gt;&lt;P&gt;arm-linux-gnueabihf-gcc -I/home/matt/linux-imx6/arch/arm/include .... and I also tried building with the same compiler but -I/linux-imx6/include however that gave compilation errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Including the /arch/arm/include folder the build succeeded, the issue is when i move the file onto the nitrogen and attempt to execute it i get a file not found error and i believe ldd reveals the issue as:&lt;/P&gt;&lt;P&gt;libc.so.6 =&amp;gt; not found (0x00000000)&lt;/P&gt;&lt;P&gt;/lib/ld-linux-armhf.so.3 =&amp;gt; /lib/ld-linux-armhf.so.3 (0x000000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the issue appears to be the libc.so.6.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will add i dont currently readially have a way to connect the nitrogen to the net to download the other libraries, how do i compile this correctly to run with my versions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Sep 2016 19:10:44 GMT</pubDate>
    <dc:creator>mmonto58</dc:creator>
    <dc:date>2016-09-09T19:10:44Z</dc:date>
    <item>
      <title>Cross compilation using linux libraries</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cross-compilation-using-linux-libraries/m-p/607100#M91494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having issues when using a cross compiler on a program that is included with the kernel im using on a nitrogen6 board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The disto I am using is:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/boundarydevices/linux-imx6/tree/boundary-imx_3.14.52_1.1.0_ga" title="https://github.com/boundarydevices/linux-imx6/tree/boundary-imx_3.14.52_1.1.0_ga"&gt;GitHub - boundarydevices/linux-imx6 at boundary-imx_3.14.52_1.1.0_ga&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The file in question is spidev_test.c which can be found in the above repo at /Documentation/spi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to build it using a linux virtual machine (xubuntu, not sure which version at the moment)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ive tried multiple ways of building it including just gcc or the arm cross compiler with the command&lt;/P&gt;&lt;P&gt;arm-linux-gnueabihf-gcc -I/home/matt/linux-imx6/arch/arm/include .... and I also tried building with the same compiler but -I/linux-imx6/include however that gave compilation errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Including the /arch/arm/include folder the build succeeded, the issue is when i move the file onto the nitrogen and attempt to execute it i get a file not found error and i believe ldd reveals the issue as:&lt;/P&gt;&lt;P&gt;libc.so.6 =&amp;gt; not found (0x00000000)&lt;/P&gt;&lt;P&gt;/lib/ld-linux-armhf.so.3 =&amp;gt; /lib/ld-linux-armhf.so.3 (0x000000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the issue appears to be the libc.so.6.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will add i dont currently readially have a way to connect the nitrogen to the net to download the other libraries, how do i compile this correctly to run with my versions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 19:10:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cross-compilation-using-linux-libraries/m-p/607100#M91494</guid>
      <dc:creator>mmonto58</dc:creator>
      <dc:date>2016-09-09T19:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cross compilation using linux libraries</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cross-compilation-using-linux-libraries/m-p/607101#M91495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;1.&lt;/P&gt;&lt;P&gt;Please use the same toolchain for application and kernel compiling.&lt;/P&gt;&lt;P&gt;How to prepare toolchaing for Yocto approach - please look at the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-95264"&gt;i.MX Yocto Project: How can I compile the kernel manually?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;&amp;nbsp; as for libc.so.6 - You may try to simlink it to&amp;nbsp; libc.so of other version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Yuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 04:52:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cross-compilation-using-linux-libraries/m-p/607101#M91495</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2016-10-05T04:52:39Z</dc:date>
    </item>
  </channel>
</rss>

