<?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: cannot find crt1.o</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/cannot-find-crt1-o/m-p/494925#M79561</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Yuri!&lt;/P&gt;&lt;P&gt;I not see any different between your and my actions, why result will be different if steps identical?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2016 06:25:22 GMT</pubDate>
    <dc:creator>BrilliantovKiri</dc:creator>
    <dc:date>2016-05-24T06:25:22Z</dc:date>
    <item>
      <title>cannot find crt1.o</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/cannot-find-crt1-o/m-p/494923#M79559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I build toolchain for iMX6 from &lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2FFreescale%2Ffsl-community-bsp-platform" rel="nofollow" target="_blank"&gt;GitHub - Freescale/fsl-community-bsp-platform: BSP platform manifest&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Follow my steps:&lt;/P&gt;&lt;P&gt;- mkdir /yocto &amp;amp;&amp;amp; cd /yocto&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- repo init -u &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.freescale.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2FFreescale%2Ffsl-community-bsp-platform" rel="nofollow" target="_blank"&gt;https://github.com/Freescale/fsl-community-bsp-platform&lt;/A&gt;&lt;SPAN&gt; -b jethro &amp;amp;&amp;amp; repo sync&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- ./setup-environment /yocto/build&lt;/P&gt;&lt;P&gt;- cd /yocto/build&lt;/P&gt;&lt;P&gt;- bitbake meta-toolchain&lt;/P&gt;&lt;P&gt;- cd tmp/deploy/sdk &amp;amp;&amp;amp; ./poky-glibc-x86_64-meta-toolchain-cortexa9hf-vfp-neon-toolchain-2.0.1.sh -y&lt;/P&gt;&lt;P&gt;Tollchain install in /opt/poky/2.0.1, after this I export variables from /opt/poky/2.0.1/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi, file attached.&lt;/P&gt;&lt;P&gt;Now I try compile iperf3:&lt;/P&gt;&lt;P&gt;- cd iperf3&lt;/P&gt;&lt;P&gt;- CC=$(CROSS_COMPILE)gcc ./configure --prefix=/usr --host=arm-poky-linux-gnueabi&lt;/P&gt;&lt;P&gt;Unfortunately configuration failed, follow part configure.log file:&lt;/P&gt;&lt;P&gt;configure:3253: arm-poky-linux-gnueabi-gcc -qversion &amp;gt;&amp;amp;5&lt;/P&gt;&lt;P&gt;arm-poky-linux-gnueabi-gcc: error: unrecognized command line option '-qversion'&lt;/P&gt;&lt;P&gt;arm-poky-linux-gnueabi-gcc: fatal error: no input files&lt;/P&gt;&lt;P&gt;compilation terminated.&lt;/P&gt;&lt;P&gt;configure:3264: $? = 1&lt;/P&gt;&lt;P&gt;configure:3284: checking whether the C compiler works&lt;/P&gt;&lt;P&gt;configure:3306: arm-poky-linux-gnueabi-gcc&amp;nbsp; -O2 -pipe -g -feliminate-unused-debu&lt;/P&gt;&lt;P&gt;g-types&amp;nbsp; -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed conftest.c&amp;nbsp; &amp;gt;&amp;amp;5&lt;/P&gt;&lt;P&gt;/opt/poky/2.0.1/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi&lt;/P&gt;&lt;P&gt;/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find crt1.o: No such file or d&lt;/P&gt;&lt;P&gt;irectory&lt;/P&gt;&lt;P&gt;/opt/poky/2.0.1/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi&lt;/P&gt;&lt;P&gt;/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find crti.o: No such file or d&lt;/P&gt;&lt;P&gt;irectory&lt;/P&gt;&lt;P&gt;/opt/poky/2.0.1/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi&lt;/P&gt;&lt;P&gt;/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find crtbegin.o: No such file&lt;/P&gt;&lt;P&gt;or directory&lt;/P&gt;&lt;P&gt;/opt/poky/2.0.1/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi&lt;/P&gt;&lt;P&gt;/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find -lgcc&lt;/P&gt;&lt;P&gt;/opt/poky/2.0.1/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi&lt;/P&gt;&lt;P&gt;/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find -lgcc_s&lt;/P&gt;&lt;P&gt;/opt/poky/2.0.1/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi&lt;/P&gt;&lt;P&gt;/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find -lc&lt;/P&gt;&lt;P&gt;/opt/poky/2.0.1/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi&lt;/P&gt;&lt;P&gt;/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find -lgcc&lt;/P&gt;&lt;P&gt;/opt/poky/2.0.1/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi&lt;/P&gt;&lt;P&gt;/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find -lgcc_s&lt;/P&gt;&lt;P&gt;/opt/poky/2.0.1/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi&lt;/P&gt;&lt;P&gt;/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find crtend.o: No such file or&lt;/P&gt;&lt;P&gt; directory&lt;/P&gt;&lt;P&gt;/opt/poky/2.0.1/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi&lt;/P&gt;&lt;P&gt;/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find crtn.o: No such file or d&lt;/P&gt;&lt;P&gt;irectory&lt;/P&gt;&lt;P&gt;collect2: error: ld returned 1 exit status&lt;/P&gt;&lt;P&gt;I check file system and found crt1.o:&lt;/P&gt;&lt;P&gt;$ find /opt/poky/2.0.1 -name crt1.o&lt;/P&gt;&lt;P&gt;/opt/poky/2.0.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/crt1.o&lt;/P&gt;&lt;P&gt;Why ld can't found crt1.o and how can I solve this problem?&lt;/P&gt;&lt;P&gt;Thank you and excuse my bad english.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336360"&gt;environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 19:54:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/cannot-find-crt1-o/m-p/494923#M79559</guid>
      <dc:creator>BrilliantovKiri</dc:creator>
      <dc:date>2016-05-23T19:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: cannot find crt1.o</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/cannot-find-crt1-o/m-p/494924#M79560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;SPAN class="tm6"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tm5 a______"&gt;&lt;SPAN class="tm6"&gt;&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tm5 a______"&gt;&lt;SPAN class="tm6"&gt;&amp;nbsp;&amp;nbsp; perhaps the following example helps : &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tm5 a______"&gt;&lt;SPAN class="tm6"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;• Build the tool chain image. It generates the toolchain that will be installed on your host&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; machine and used to build any source code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ cd workspace/yocto/imx-4.1.15-1.0.0_ga&lt;/P&gt;&lt;P&gt;$ source setup-environment build-x11&lt;/P&gt;&lt;P&gt;$ bitbake meta-toolchain&lt;/P&gt;&lt;P&gt;$ cd tmp/deploy/sdk&lt;/P&gt;&lt;P&gt;$./fsl-imx-x11-glibc-x86_64-meta-toolchain-cortexa9hf-vfp-neon-toolchain-4.1.15-1.1.0.sh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;• Hello World&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ source /opt/fsl-imx-x11/4.1.15-1.1.0/environment-setup-cortexa9hf-vfp-neonpoky-linux-gnueabi&lt;/P&gt;&lt;P&gt;$ cd ~/test/&lt;/P&gt;&lt;P&gt;$ arm-poky-linux-gnueabi-gcc helloworld.c&lt;/P&gt;&lt;P&gt;$ ls&lt;/P&gt;&lt;P&gt;a.out helloworld.c&lt;/P&gt;&lt;P&gt;$ ./a.out&lt;/P&gt;&lt;P&gt;-bash: ./a.out: cannot execute binary file&lt;/P&gt;&lt;P&gt;$ file a.out&lt;/P&gt;&lt;P&gt;a.out: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked&lt;/P&gt;&lt;P&gt;(uses shared libs), for GNU/Linux 2.6.16, not stripped&lt;/P&gt;&lt;P class="tm5 a______"&gt;&lt;SPAN class="tm6"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tm5 a______"&gt;&lt;SPAN class="tm6"&gt;Have a great day,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tm5 a______"&gt;&lt;SPAN class="tm6"&gt;Yuri&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tm5 a______"&gt;&lt;SPAN class="tm6"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tm5 a______"&gt;&lt;SPAN class="tm6"&gt;------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tm5 a______"&gt;&lt;SPAN class="tm6"&gt;Note: If this post answers your question, please click the Correct &lt;BR /&gt;Answer button. Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tm5 a______"&gt;&lt;SPAN class="tm6"&gt;------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 03:16:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/cannot-find-crt1-o/m-p/494924#M79560</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2016-05-24T03:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: cannot find crt1.o</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/cannot-find-crt1-o/m-p/494925#M79561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Yuri!&lt;/P&gt;&lt;P&gt;I not see any different between your and my actions, why result will be different if steps identical?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 06:25:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/cannot-find-crt1-o/m-p/494925#M79561</guid>
      <dc:creator>BrilliantovKiri</dc:creator>
      <dc:date>2016-05-24T06:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: cannot find crt1.o</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/cannot-find-crt1-o/m-p/494926#M79562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved!&lt;/P&gt;&lt;P&gt;I add CFLAGS=""--sysroot=${SDKTARGETSYSROOT} -mfloat-abi=hard".&lt;/P&gt;&lt;P&gt;Where SDKTARGETSYSROOT is/ toolchain/install/directory/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simple example:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_1464116308115178 jive_macro_code jive_text_macro" data-renderedposition="138_8_1192_64" jivemacro_uid="_1464116308115178"&gt;&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/P&gt;&lt;P&gt;int main(int argc, char *argv[]) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/PRE&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;$ arm-poky-linux-gnueabi-gcc test.c&lt;/P&gt;&lt;P&gt;test.c:1:19: fatal error: stdio.h: No such file or directory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ arm-poky-linux-gnueabi-gcc --sysroot=$SDKTARGETSYSROOT test.c&lt;/P&gt;&lt;P&gt;In file included from /opt/imx6_toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/features.h:389:0,&lt;/P&gt;&lt;P&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; from /opt/imx6_toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/stdio.h:27,&lt;/P&gt;&lt;P&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; from test.c:1:&lt;/P&gt;&lt;P&gt;/opt/imx6_toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/gnu/stubs.h:7:29: fatal error: gnu/stubs-soft.h: No such file or directory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ arm-poky-linux-gnueabi-gcc --sysroot=$SDKTARGETSYSROOT -mfloat-abi=hard test.c&lt;/P&gt;&lt;P&gt;$ file a.out &lt;/P&gt;&lt;P&gt;a.out: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=fab88286767c018a15ba14dff125070fef88f1a4, not stripped&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 19:03:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/cannot-find-crt1-o/m-p/494926#M79562</guid>
      <dc:creator>BrilliantovKiri</dc:creator>
      <dc:date>2016-05-24T19:03:09Z</dc:date>
    </item>
  </channel>
</rss>

