<?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: $CC  Statically compiled applications in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/CC-Statically-compiled-applications/m-p/500230#M80847</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have done the test and listed below.&lt;/P&gt;&lt;P&gt;As suggest before, please check and raise such kind of questions to Yocto forum.&lt;/P&gt;&lt;P&gt;This topic&amp;nbsp; is not the scope of i.mx forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls -1&lt;BR /&gt;environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi&lt;BR /&gt;hello.c&lt;BR /&gt;site-config-cortexa9hf-vfp-neon-poky-linux-gnueabi&lt;BR /&gt;sysroots&lt;BR /&gt;version-cortexa9hf-vfp-neon-poky-linux-gnueabi&lt;/P&gt;&lt;P&gt;source&amp;nbsp; environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi&lt;BR /&gt;$CC -static -o hello hello.c&lt;/P&gt;&lt;P&gt;file hello&lt;BR /&gt;hello: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, for GNU/Linux 2.6.32, BuildID[sha1]=f05292a5baa8be157f5e5d4def47d650b0aad273, not stripped&lt;/P&gt;&lt;P&gt;To confirm the toolchian information:&lt;BR /&gt;arm-poky-linux-gnueabi-readelf -a hello|grep poky&lt;/P&gt;&lt;P&gt; 46: 00000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 FILE&amp;nbsp;&amp;nbsp;&amp;nbsp; LOCAL&amp;nbsp; DEFAULT&amp;nbsp; ABS /opt/poky/1.7/&lt;BR /&gt; 53: 00000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 FILE&amp;nbsp;&amp;nbsp;&amp;nbsp; LOCAL&amp;nbsp; DEFAULT&amp;nbsp; ABS /opt/poky/1.7/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Apr 2016 05:06:10 GMT</pubDate>
    <dc:creator>BiyongSUN</dc:creator>
    <dc:date>2016-04-15T05:06:10Z</dc:date>
    <item>
      <title>$CC  Statically compiled applications</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CC-Statically-compiled-applications/m-p/500227#M80844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello everyone:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I want to use meta-toolchain Statically compiled applications ,but &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;I encountered some problems&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Ｉuse&lt;/P&gt;&lt;P&gt;arm-linux-gnueabi-gcc -o hello hello.c -static&lt;/P&gt;&lt;P&gt;is ok ,but I use&lt;/P&gt;&lt;P&gt; source /opt/poky/1.7/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi&lt;/P&gt;&lt;P&gt;$CC -o hello hello.c -static&lt;/P&gt;&lt;P&gt;/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/ld: cannot find -lc&lt;/P&gt;&lt;P&gt;collect2: error: ld returned 1 exit status&lt;/P&gt;&lt;P class="almost_half_cell"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;Are&lt;/SPAN&gt; meta-toolchain &lt;SPAN&gt;missing&lt;/SPAN&gt; &lt;SPAN&gt;static library? And how can I build SDK i&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;t contains the&lt;/SPAN&gt; static library&lt;/P&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 06:29:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CC-Statically-compiled-applications/m-p/500227#M80844</guid>
      <dc:creator>lixuhui112</dc:creator>
      <dc:date>2016-04-13T06:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: $CC  Statically compiled applications</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CC-Statically-compiled-applications/m-p/500228#M80845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Next time, please check and raise such kind of questions to Yocto forum.&lt;/P&gt;&lt;P&gt;Here is the link of Yocto document.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.yoctoproject.org/docs/1.7/adt-manual/adt-manual.html" title="http://www.yoctoproject.org/docs/1.7/adt-manual/adt-manual.html"&gt;Yocto Project Application Developer's Guide&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;By default, this toolchain does not build static binaries. If you want to use the toolchain to build these types of libraries, you need to be sure your image has the appropriate static development libraries. Use the IMAGE_INSTALL variable inside your local.conf file to install the appropriate library packages. Following is an example using glibc static development libraries:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMAGE_INSTALL_append = " glibc-staticdev"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 06:56:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CC-Statically-compiled-applications/m-p/500228#M80845</guid>
      <dc:creator>BiyongSUN</dc:creator>
      <dc:date>2016-04-13T06:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: $CC  Statically compiled applications</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CC-Statically-compiled-applications/m-p/500229#M80846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ｉ　add IMAGE_INSTALL_append = " glibc-staticdev" in build-x11/conf/local.config,and rebuild meta-toolchain&lt;/P&gt;&lt;P&gt;$ bitbake meta-toolchain&lt;/P&gt;&lt;P&gt;and install the SDK , but&amp;nbsp; I use&lt;/P&gt;&lt;P&gt; source /opt/poky/1.7/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi&lt;/P&gt;&lt;P&gt;$CC -o hello hello.c -static&lt;/P&gt;&lt;P&gt;/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/ld: cannot find -lc&lt;/P&gt;&lt;P&gt;collect2: error: ld returned 1 exit status&lt;/P&gt;&lt;P&gt;it also return the same error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 01:22:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CC-Statically-compiled-applications/m-p/500229#M80846</guid>
      <dc:creator>lixuhui112</dc:creator>
      <dc:date>2016-04-14T01:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: $CC  Statically compiled applications</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CC-Statically-compiled-applications/m-p/500230#M80847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have done the test and listed below.&lt;/P&gt;&lt;P&gt;As suggest before, please check and raise such kind of questions to Yocto forum.&lt;/P&gt;&lt;P&gt;This topic&amp;nbsp; is not the scope of i.mx forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls -1&lt;BR /&gt;environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi&lt;BR /&gt;hello.c&lt;BR /&gt;site-config-cortexa9hf-vfp-neon-poky-linux-gnueabi&lt;BR /&gt;sysroots&lt;BR /&gt;version-cortexa9hf-vfp-neon-poky-linux-gnueabi&lt;/P&gt;&lt;P&gt;source&amp;nbsp; environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi&lt;BR /&gt;$CC -static -o hello hello.c&lt;/P&gt;&lt;P&gt;file hello&lt;BR /&gt;hello: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, for GNU/Linux 2.6.32, BuildID[sha1]=f05292a5baa8be157f5e5d4def47d650b0aad273, not stripped&lt;/P&gt;&lt;P&gt;To confirm the toolchian information:&lt;BR /&gt;arm-poky-linux-gnueabi-readelf -a hello|grep poky&lt;/P&gt;&lt;P&gt; 46: 00000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 FILE&amp;nbsp;&amp;nbsp;&amp;nbsp; LOCAL&amp;nbsp; DEFAULT&amp;nbsp; ABS /opt/poky/1.7/&lt;BR /&gt; 53: 00000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 FILE&amp;nbsp;&amp;nbsp;&amp;nbsp; LOCAL&amp;nbsp; DEFAULT&amp;nbsp; ABS /opt/poky/1.7/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 05:06:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CC-Statically-compiled-applications/m-p/500230#M80847</guid>
      <dc:creator>BiyongSUN</dc:creator>
      <dc:date>2016-04-15T05:06:10Z</dc:date>
    </item>
  </channel>
</rss>

