<?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: Yocto library link error(real-ld): cannot find /lib/libc.so.6</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-library-link-error-real-ld-cannot-find-lib-libc-so-6/m-p/748615#M116454</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sorry late notice...&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you mentioned, I had to modify library path.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jun 2018 10:26:16 GMT</pubDate>
    <dc:creator>Hirotoshi_Sato</dc:creator>
    <dc:date>2018-06-26T10:26:16Z</dc:date>
    <item>
      <title>Yocto library link error(real-ld): cannot find /lib/libc.so.6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-library-link-error-real-ld-cannot-find-lib-libc-so-6/m-p/748613#M116452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to compile a C program using pcap with Eclipse and Yocto ADT.&lt;/P&gt;&lt;P&gt;After building, I got errors as&amp;nbsp;bottom (config.log).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;There are several errors.&lt;/LI&gt;&lt;/UL&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;arm-fslc-linux-gnueabi-gcc: error: unrecognized command line option '-V'&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;arm-fslc-linux-gnueabi-gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;/opt/fslc-framebuffer/2.2.1/sysroots/x86_64-fslcsdk-linux/usr/libexec/arm-fslc-linux-gnueabi/gcc/arm-fslc-linux-gnueabi/6.2.0/real-ld: cannot find /lib/libc.so.6&lt;/SPAN&gt;&lt;BR style="background-color: #f6f6f6;" /&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;/opt/fslc-framebuffer/2.2.1/sysroots/x86_64-fslcsdk-linux/usr/libexec/arm-fslc-linux-gnueabi/gcc/arm-fslc-linux-gnueabi/6.2.0/real-ld: cannot find /usr/lib/libc_nonshared.a&lt;/SPAN&gt;&lt;BR style="background-color: #f6f6f6;" /&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;/opt/fslc-framebuffer/2.2.1/sysroots/x86_64-fslcsdk-linux/usr/libexec/arm-fslc-linux-gnueabi/gcc/arm-fslc-linux-gnueabi/6.2.0/real-ld: cannot find /lib/ld-linux-armhf.so.3&lt;/SPAN&gt;&lt;BR style="background-color: #f6f6f6;" /&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;collect2: error: ld returned 1 exit status&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the error 1 and 2 can be ignored (If there are solutions, please teach me).&lt;/P&gt;&lt;P&gt;However the error 3 says it cannot link library and&amp;nbsp;&lt;SPAN style="background-color: #f6f6f6;"&gt;C compiler cannot create executables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How can I solve this error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My environment:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;OS: Ubuntu 16.04&lt;/LI&gt;&lt;LI&gt;Eclipse: Luna with Yocto plugins (&lt;A class="link-titled" href="http://variwiki.com/index.php?title=Yocto_Programming_with_Eclipse" title="http://variwiki.com/index.php?title=Yocto_Programming_with_Eclipse"&gt;Yocto Programming with Eclipse - Variscite Wiki&lt;/A&gt;&amp;nbsp;)&lt;/LI&gt;&lt;LI&gt;Toolchain:&amp;nbsp;&lt;A class="link-titled" href="http://variwiki.com/index.php?title=Yocto_Toolchain_installation&amp;amp;release=RELEASE_MORTY_BETA_DART-6UL" title="http://variwiki.com/index.php?title=Yocto_Toolchain_installation&amp;amp;release=RELEASE_MORTY_BETA_DART-6UL"&gt;Yocto Toolchain installation - Variscite Wiki&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Eclipse settings:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Properties&amp;gt;Autotools&amp;gt;Configure settings&amp;gt;configure&amp;gt;Command:&lt;BR /&gt;CFLAGS=" -g -O0&amp;nbsp; -I/home/user/var-fslc-yocto/build_fb/tmp/sysroots/imx6ul-var-dart/usr/include --sysroot=/opt/fslc-framebuffer/2.2.1/sysroots/armv7at2hf-neon-fslc-linux-gnueabi" CXXFLAGS=" -g -O0&amp;nbsp; --sysroot=/opt/fslc-framebuffer/2.2.1/sysroots/armv7at2hf-neon-fslc-linux-gnueabi" LDFLAGS=" -L/opt/fslc-framebuffer/2.2.1/sysroots/armv7at2hf-neon-fslc-linux-gnueabi -L/home/&lt;SPAN&gt;user&lt;/SPAN&gt;/var-fslc-yocto/build_fb/tmp/sysroots/imx6ul-var-dart -L/home/&lt;SPAN&gt;user&lt;/SPAN&gt;/var-fslc-yocto/build_fb/tmp/sysroots/imx6ul-var-dart/usr/lib&amp;nbsp; --sysroot=/opt/fslc-framebuffer/2.2.1/sysroots/armv7at2hf-neon-fslc-linux-gnueabi" CPPFLAGS=" --sysroot=/opt/fslc-framebuffer/2.2.1/sysroots/armv7at2hf-neon-fslc-linux-gnueabi" configure --with-libtool-sysroot=/opt/fslc-framebuffer/2.2.1/sysroots/armv7at2hf-neon-fslc-linux-gnueabi&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;All options:&lt;BR /&gt;&amp;nbsp;--host=arm-fslc-linux-gnueabi --build=x86_64-linux --target=arm-fslc-linux-gnueabi&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I checked&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;under sysroots (=&lt;SPAN&gt;/opt/fslc-framebuffer/2.2.1/sysroots/armv7at2hf-neon-fslc-linux-gnueabi ), there are lib/libc.so.6,&amp;nbsp;&lt;SPAN style="background-color: #f6f6f6;"&gt;usr/lib/libc_nonshared.a,&amp;nbsp;lib/ld-linux-armhf.so.3. However config.log says cannot find them.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;A href="https://community.nxp.com/thread/322870"&gt;https://community.nxp.com/thread/322870&lt;/A&gt;&amp;nbsp; this link treat the same problem, but I cannot understan what I should do (I think I may set the same settings as this link.).&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;config.log&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;configure:3187: arm-fslc-linux-gnueabi-gcc -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard --sysroot=/opt/fslc-framebuffer/2.2.1/sysroots/armv7at2hf-neon-fslc-linux-gnueabi -V &amp;gt;&amp;amp;5&lt;BR /&gt;arm-fslc-linux-gnueabi-gcc: error: unrecognized command line option '-V'&lt;BR /&gt;arm-fslc-linux-gnueabi-gcc: fatal error: no input files&lt;BR /&gt;compilation terminated.&lt;BR /&gt;configure:3198: $? = 1&lt;BR /&gt;configure:3187: arm-fslc-linux-gnueabi-gcc -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard --sysroot=/opt/fslc-framebuffer/2.2.1/sysroots/armv7at2hf-neon-fslc-linux-gnueabi -qversion &amp;gt;&amp;amp;5&lt;BR /&gt;arm-fslc-linux-gnueabi-gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?&lt;BR /&gt;arm-fslc-linux-gnueabi-gcc: fatal error: no input files&lt;BR /&gt;compilation terminated.&lt;BR /&gt;configure:3198: $? = 1&lt;BR /&gt;configure:3218: checking whether the C compiler works&lt;BR /&gt;configure:3240: arm-fslc-linux-gnueabi-gcc -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard --sysroot=/opt/fslc-framebuffer/2.2.1/sysroots/armv7at2hf-neon-fslc-linux-gnueabi -g -O0 -I/home/&lt;SPAN&gt;user&lt;/SPAN&gt;/var-fslc-yocto/build_fb/tmp/sysroots/imx6ul-var-dart/usr/include --sysroot=/opt/fslc-framebuffer/2.2.1/sysroots/armv7at2hf-neon-fslc-linux-gnueabi --sysroot=/opt/fslc-framebuffer/2.2.1/sysroots/armv7at2hf-neon-fslc-linux-gnueabi -L/opt/fslc-framebuffer/2.2.1/sysroots/armv7at2hf-neon-fslc-linux-gnueabi -L/home/&lt;SPAN&gt;user&lt;/SPAN&gt;/var-fslc-yocto/build_fb/tmp/sysroots/imx6ul-var-dart -L/home/&lt;SPAN&gt;user&lt;/SPAN&gt;/var-fslc-yocto/build_fb/tmp/sysroots/imx6ul-var-dart/usr/lib --sysroot=/opt/fslc-framebuffer/2.2.1/sysroots/armv7at2hf-neon-fslc-linux-gnueabi conftest.c &amp;gt;&amp;amp;5&lt;BR /&gt;/opt/fslc-framebuffer/2.2.1/sysroots/x86_64-fslcsdk-linux/usr/libexec/arm-fslc-linux-gnueabi/gcc/arm-fslc-linux-gnueabi/6.2.0/real-ld: cannot find /lib/libc.so.6&lt;BR /&gt;/opt/fslc-framebuffer/2.2.1/sysroots/x86_64-fslcsdk-linux/usr/libexec/arm-fslc-linux-gnueabi/gcc/arm-fslc-linux-gnueabi/6.2.0/real-ld: cannot find /usr/lib/libc_nonshared.a&lt;BR /&gt;/opt/fslc-framebuffer/2.2.1/sysroots/x86_64-fslcsdk-linux/usr/libexec/arm-fslc-linux-gnueabi/gcc/arm-fslc-linux-gnueabi/6.2.0/real-ld: cannot find /lib/ld-linux-armhf.so.3&lt;BR /&gt;collect2: error: ld returned 1 exit status&lt;BR /&gt;configure:3244: $? = 1&lt;BR /&gt;configure:3282: result: no&lt;BR /&gt;configure: failed program was:&lt;BR /&gt;| /* confdefs.h */&lt;BR /&gt;| #define PACKAGE_NAME "packetcapture"&lt;BR /&gt;| #define PACKAGE_TARNAME "packetcapture"&lt;BR /&gt;| #define PACKAGE_VERSION "0.1.0"&lt;BR /&gt;| #define PACKAGE_STRING "packetcapture 0.1.0"&lt;BR /&gt;| #define PACKAGE_BUGREPORT ""&lt;BR /&gt;| #define PACKAGE_URL ""&lt;BR /&gt;| #define PACKAGE "packetcapture"&lt;BR /&gt;| #define VERSION "0.1.0"&lt;BR /&gt;| /* end confdefs.h. */&lt;BR /&gt;| &lt;BR /&gt;| int&lt;BR /&gt;| main ()&lt;BR /&gt;| {&lt;BR /&gt;| &lt;BR /&gt;| ;&lt;BR /&gt;| return 0;&lt;BR /&gt;| }&lt;BR /&gt;configure:3287: error: in `/home/&lt;SPAN&gt;user&lt;/SPAN&gt;/workspace/packetcapture':&lt;BR /&gt;configure:3289: error: C compiler cannot create executables&lt;BR /&gt;See `config.log' for more details&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 09:55:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-library-link-error-real-ld-cannot-find-lib-libc-so-6/m-p/748613#M116452</guid>
      <dc:creator>Hirotoshi_Sato</dc:creator>
      <dc:date>2018-04-19T09:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto library link error(real-ld): cannot find /lib/libc.so.6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-library-link-error-real-ld-cannot-find-lib-libc-so-6/m-p/748614#M116453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Hirotoshi Sato,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you still experiencing this error? I’m no familiar with the Variscite toolchain and BSP but it looks like the problem is that the path to the libraries is not correct. Perhaps it’s looking for the libraries on the path of the host and not the sysroot of the BSP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you set the flags as shown on the following Yocto document?&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.yoctoproject.org/docs/1.6/adt-manual/adt-manual.html#makefile-based-projects"&gt;https://www.yoctoproject.org/docs/1.6/adt-manual/adt-manual.html#makefile-based-projects&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 13:42:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-library-link-error-real-ld-cannot-find-lib-libc-so-6/m-p/748614#M116453</guid>
      <dc:creator>gusarambula</dc:creator>
      <dc:date>2018-04-25T13:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto library link error(real-ld): cannot find /lib/libc.so.6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-library-link-error-real-ld-cannot-find-lib-libc-so-6/m-p/748615#M116454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sorry late notice...&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you mentioned, I had to modify library path.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2018 10:26:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-library-link-error-real-ld-cannot-find-lib-libc-so-6/m-p/748615#M116454</guid>
      <dc:creator>Hirotoshi_Sato</dc:creator>
      <dc:date>2018-06-26T10:26:16Z</dc:date>
    </item>
  </channel>
</rss>

