<?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 How to resolve cross compilation error? in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/How-to-resolve-cross-compilation-error/m-p/504517#M1096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using ls2085aqds board with Layerscape2-SDK-20150828-yocto SDK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While cross compiling using the toolchain(aarch64-fsl-linux-gcc) a simple helloworld.c file itself throws error like the following,&lt;/P&gt;&lt;P&gt;==============&lt;/P&gt;&lt;P&gt;[Naveen@NvN aarch64-fsl-linux]$ ./aarch64-fsl-linux-gcc helloworld.c &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;helloworld.c:1:19: fatal error: stdio.h: No such file or directory&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; #include &amp;lt;stdio.h&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;compilation terminated.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;[Naveen@NvN aarch64-fsl-linux]$ &lt;/P&gt;&lt;P&gt;===============&lt;/P&gt;&lt;P&gt;Note : Toolchain path=Layerscape2-SDK-20150828-yocto/build_ls2085aqds_release/tmp/sysroots/x86_64-linux/usr/bin/aarch64-fsl-linux/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to fix this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Regards,&lt;/P&gt;&lt;P&gt;-Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Dec 2015 06:37:02 GMT</pubDate>
    <dc:creator>naveennvn</dc:creator>
    <dc:date>2015-12-24T06:37:02Z</dc:date>
    <item>
      <title>How to resolve cross compilation error?</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-resolve-cross-compilation-error/m-p/504517#M1096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using ls2085aqds board with Layerscape2-SDK-20150828-yocto SDK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While cross compiling using the toolchain(aarch64-fsl-linux-gcc) a simple helloworld.c file itself throws error like the following,&lt;/P&gt;&lt;P&gt;==============&lt;/P&gt;&lt;P&gt;[Naveen@NvN aarch64-fsl-linux]$ ./aarch64-fsl-linux-gcc helloworld.c &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;helloworld.c:1:19: fatal error: stdio.h: No such file or directory&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; #include &amp;lt;stdio.h&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;compilation terminated.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;[Naveen@NvN aarch64-fsl-linux]$ &lt;/P&gt;&lt;P&gt;===============&lt;/P&gt;&lt;P&gt;Note : Toolchain path=Layerscape2-SDK-20150828-yocto/build_ls2085aqds_release/tmp/sysroots/x86_64-linux/usr/bin/aarch64-fsl-linux/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to fix this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Regards,&lt;/P&gt;&lt;P&gt;-Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 06:37:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-resolve-cross-compilation-error/m-p/504517#M1096</guid>
      <dc:creator>naveennvn</dc:creator>
      <dc:date>2015-12-24T06:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve cross compilation error?</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-resolve-cross-compilation-error/m-p/504518#M1097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your compiler does not know where to get standard headers.&lt;/P&gt;&lt;P&gt;Follow these instructions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://freescale.sdlproducts.com/LiveContent/content/en-US/QorIQ_SDK_1.9/GUID-16DBC8E2-9A18-4867-9BE1-168062EF31C4" title="https://freescale.sdlproducts.com/LiveContent/content/en-US/QorIQ_SDK_1.9/GUID-16DBC8E2-9A18-4867-9BE1-168062EF31C4"&gt;https://freescale.sdlproducts.com/LiveContent/content/en-US/QorIQ_SDK_1.9/GUID-16DBC8E2-9A18-4867-9BE1-168062EF31C4&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do not forget to run&amp;nbsp; '&lt;SAMP class="codeph"&gt;environment-setup-&amp;lt;core&amp;gt;' script.&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;More details here:&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;A href="https://gcc.gnu.org/onlinedocs/gcc-4.9.3/gcc/Directory-Options.html#Directory-Options" title="https://gcc.gnu.org/onlinedocs/gcc-4.9.3/gcc/Directory-Options.html#Directory-Options"&gt;Directory Options - Using the GNU Compiler Collection (GCC)&lt;/A&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;/SAMP&gt;&lt;SAMP class="codeph"&gt;&lt;/SAMP&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Platon&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>Thu, 24 Dec 2015 06:59:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-resolve-cross-compilation-error/m-p/504518#M1097</guid>
      <dc:creator>bpe</dc:creator>
      <dc:date>2015-12-24T06:59:04Z</dc:date>
    </item>
  </channel>
</rss>

