<?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: Yocto libc linker error while building application in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-libc-linker-error-while-building-application/m-p/302811#M38423</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Below is my code test.c:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-----------------------------------&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include &amp;lt;pthread.h&amp;gt;&lt;/P&gt;&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* this function is run by the second thread */&lt;/P&gt;&lt;P&gt;void *inc_x(void *x_void_ptr)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;/* increment x to 100 */&lt;/P&gt;&lt;P&gt;int *x_ptr = (int *)x_void_ptr;&lt;/P&gt;&lt;P&gt;while(++(*x_ptr) &amp;lt; 100);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;printf("x increment finished\n");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* the function must return something - NULL will do */&lt;/P&gt;&lt;P&gt;return NULL;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int main()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;int x = 0, y = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* show the initial values of x and y */&lt;/P&gt;&lt;P&gt;printf("x: %d, y: %d\n", x, y);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* this variable is our reference to the second thread */&lt;/P&gt;&lt;P&gt;pthread_t inc_x_thread;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* create a second thread which executes inc_x(&amp;amp;x) */&lt;/P&gt;&lt;P&gt;if(pthread_create(&amp;amp;inc_x_thread, NULL, inc_x, &amp;amp;x)) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fprintf(stderr, "Error creating thread\n");&lt;/P&gt;&lt;P&gt;return 1;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* increment y to 100 in the first thread */&lt;/P&gt;&lt;P&gt;while(++y &amp;lt; 100);&lt;/P&gt;&lt;P&gt;printf("y increment finished\n");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* wait for the second thread to finish */&lt;/P&gt;&lt;P&gt;if(pthread_join(inc_x_thread, NULL)) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fprintf(stderr, "Error joining thread\n");&lt;/P&gt;&lt;P&gt;return 2;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* show the results - x is now 100 thanks to the second thread */&lt;/P&gt;&lt;P&gt;printf("x: %d, y: %d\n", x, y);&lt;/P&gt;&lt;P&gt;return 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Command used to build:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-----------------------------------&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/opt/poky/1.4.3/sysroots/i686-pokysdk-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -L/opt/fsl-imx6-sysroot/lib -L/opt/fsl-imx6-sysroot/usr/lib -lpthread test.c&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Apr 2014 09:19:59 GMT</pubDate>
    <dc:creator>bharathg</dc:creator>
    <dc:date>2014-04-25T09:19:59Z</dc:date>
    <item>
      <title>Yocto libc linker error while building application</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-libc-linker-error-while-building-application/m-p/302810#M38422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Board: imx6qsabresd&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;host: ubuntu 12.04&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FS: yocto project 1.5 (Dora)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Description:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; When i try to compile application using poky toolchain installed via meta-toolchain, i am getting below linker errors. Please let me know how can i fix this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR Log:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-------------------&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/opt/poky/1.4.3/sysroots/i686-pokysdk-linux/usr/libexec/armv7a-vfp-neon-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld: cannot find /lib/libc.so.6&lt;/P&gt;&lt;P&gt;/opt/poky/1.4.3/sysroots/i686-pokysdk-linux/usr/libexec/armv7a-vfp-neon-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld: cannot find /usr/lib/libc_nonshared.a&lt;/P&gt;&lt;P&gt;/opt/poky/1.4.3/sysroots/i686-pokysdk-linux/usr/libexec/armv7a-vfp-neon-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld: cannot find /lib/ld-linux-armhf.so.3&lt;/P&gt;&lt;P&gt;collect2: error: ld returned 1 exit status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also,&lt;/P&gt;&lt;P&gt;While building multi-threaded gstreamer application, we are getting pthread linker errors as shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR Log:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-------------------&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/opt/poky/1.4.3/sysroots/i686-pokysdk-linux/usr/libexec/armv7a-vfp-neon-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld: cannot find /lib/libpthread.so.0&lt;/P&gt;&lt;P&gt;/opt/poky/1.4.3/sysroots/i686-pokysdk-linux/usr/libexec/armv7a-vfp-neon-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld: cannot find /usr/lib/libpthread_nonshared.a&lt;/P&gt;&lt;P&gt;collect2: error: ld returned 1 exit status&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 11:39:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-libc-linker-error-while-building-application/m-p/302810#M38422</guid>
      <dc:creator>bharathg</dc:creator>
      <dc:date>2014-04-24T11:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto libc linker error while building application</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-libc-linker-error-while-building-application/m-p/302811#M38423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Below is my code test.c:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-----------------------------------&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include &amp;lt;pthread.h&amp;gt;&lt;/P&gt;&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* this function is run by the second thread */&lt;/P&gt;&lt;P&gt;void *inc_x(void *x_void_ptr)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;/* increment x to 100 */&lt;/P&gt;&lt;P&gt;int *x_ptr = (int *)x_void_ptr;&lt;/P&gt;&lt;P&gt;while(++(*x_ptr) &amp;lt; 100);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;printf("x increment finished\n");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* the function must return something - NULL will do */&lt;/P&gt;&lt;P&gt;return NULL;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int main()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;int x = 0, y = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* show the initial values of x and y */&lt;/P&gt;&lt;P&gt;printf("x: %d, y: %d\n", x, y);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* this variable is our reference to the second thread */&lt;/P&gt;&lt;P&gt;pthread_t inc_x_thread;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* create a second thread which executes inc_x(&amp;amp;x) */&lt;/P&gt;&lt;P&gt;if(pthread_create(&amp;amp;inc_x_thread, NULL, inc_x, &amp;amp;x)) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fprintf(stderr, "Error creating thread\n");&lt;/P&gt;&lt;P&gt;return 1;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* increment y to 100 in the first thread */&lt;/P&gt;&lt;P&gt;while(++y &amp;lt; 100);&lt;/P&gt;&lt;P&gt;printf("y increment finished\n");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* wait for the second thread to finish */&lt;/P&gt;&lt;P&gt;if(pthread_join(inc_x_thread, NULL)) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fprintf(stderr, "Error joining thread\n");&lt;/P&gt;&lt;P&gt;return 2;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* show the results - x is now 100 thanks to the second thread */&lt;/P&gt;&lt;P&gt;printf("x: %d, y: %d\n", x, y);&lt;/P&gt;&lt;P&gt;return 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Command used to build:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-----------------------------------&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/opt/poky/1.4.3/sysroots/i686-pokysdk-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -L/opt/fsl-imx6-sysroot/lib -L/opt/fsl-imx6-sysroot/usr/lib -lpthread test.c&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 09:19:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-libc-linker-error-while-building-application/m-p/302811#M38423</guid>
      <dc:creator>bharathg</dc:creator>
      <dc:date>2014-04-25T09:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto libc linker error while building application</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-libc-linker-error-while-building-application/m-p/302812#M38424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you sourcing the environment script before compilation? the env script should be located somewhere on /opt/poky/&amp;lt;VERSION&amp;gt;/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 16:04:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-libc-linker-error-while-building-application/m-p/302812#M38424</guid>
      <dc:creator>LeonardoSandova</dc:creator>
      <dc:date>2014-04-25T16:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto libc linker error while building application</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-libc-linker-error-while-building-application/m-p/302813#M38425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leonardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting this error too when I try to compile GStreamer Sample Application. I did source the environment script.I am able to compile and run a HelloWorld.c Application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample application is from &lt;A href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-helloworld.html" title="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-helloworld.html"&gt;Chapter 10. Your first application&lt;/A&gt; link. The makefile I am using is attached below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Makefile:&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;# define the C compiler to use&lt;/P&gt;&lt;P&gt;CC = /opt/poky/1.4+snapshot/sysroots/i686-pokysdk-linux/usr/bin/cortexa9hf-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# define any compile-time flags&lt;/P&gt;&lt;P&gt;CFLAGS = -Wall -g&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# define any directories containing header files other than /usr/include&lt;/P&gt;&lt;P&gt;INCLUDES = -I/home/suman/fsl-community-bsp/build-fb/tmp/sysroots/imx6qsabresd/usr/include/glib-2.0 -I/home/suman/fsl-community-bsp/build-fb/tmp/sysroots/imx6qsabresd/usr/lib/glib-2.0/include/ -I/home/suman/fsl-community-bsp/build-fb/tmp/sysroots/imx6qsabresd/usr/include/gstreamer-0.10/ -I/home/suman/fsl-community-bsp/build-fb/tmp/sysroots/imx6qsabresd/usr/include/libxml2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LFLAGS = -L/home/suman/fsl-community-bsp/build-fb/tmp/sysroots/imx6qsabresd/usr/lib&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# define any libraries to link into executable:&lt;/P&gt;&lt;P&gt;LIBS = -lglib-2.0 -lxml2 -lgstreamer-0.10 -lgobject-2.0 -lz -lgmodule-2.0 -lffi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# define the C source files&lt;/P&gt;&lt;P&gt;SRCS = hellogst.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# define the C object files&lt;/P&gt;&lt;P&gt;OBJS = $(SRCS:.c=.o)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# define the executable file&lt;/P&gt;&lt;P&gt;MAIN = hellogst&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.PHONY: depend clean&lt;/P&gt;&lt;P&gt;all:&amp;nbsp;&amp;nbsp;&amp;nbsp; $(MAIN)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @echo&amp;nbsp; Simple compiler named simple has been compiled&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(MAIN): $(OBJS)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(CC) $(CFLAGS) $(INCLUDES) -o $(MAIN) $(OBJS) $(LFLAGS) $(LIBS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# this is a suffix replacement rule for building .o's from .c's&lt;/P&gt;&lt;P&gt;.c.o:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(CC) $(CFLAGS) $(INCLUDES) -c $&amp;lt;&amp;nbsp; -o $@&lt;/P&gt;&lt;P&gt;clean:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(RM) *.o *~ $(MAIN)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;depend: $(SRCS)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; makedepend $(INCLUDES) $^&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Compilation Error:&lt;/P&gt;&lt;P&gt;------------------------------&lt;/P&gt;&lt;P&gt;$ make&lt;/P&gt;&lt;P&gt;/opt/poky/1.4+snapshot/sysroots/i686-pokysdk-linux/usr/bin/cortexa9hf-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -Wall -g -I/home/suman/fsl-community-bsp/build-fb/tmp/sysroots/imx6qsabresd/usr/include/glib-2.0 -I/home/suman/fsl-community-bsp/build-fb/tmp/sysroots/imx6qsabresd/usr/lib/glib-2.0/include/ -I/home/suman/fsl-community-bsp/build-fb/tmp/sysroots/imx6qsabresd/usr/include/gstreamer-0.10/ -I/home/suman/fsl-community-bsp/build-fb/tmp/sysroots/imx6qsabresd/usr/include/libxml2 -c hellogst.c&amp;nbsp; -o hellogst.o&lt;/P&gt;&lt;P&gt;/opt/poky/1.4+snapshot/sysroots/i686-pokysdk-linux/usr/bin/cortexa9hf-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -Wall -g -I/home/suman/fsl-community-bsp/build-fb/tmp/sysroots/imx6qsabresd/usr/include/glib-2.0 -I/home/suman/fsl-community-bsp/build-fb/tmp/sysroots/imx6qsabresd/usr/lib/glib-2.0/include/ -I/home/suman/fsl-community-bsp/build-fb/tmp/sysroots/imx6qsabresd/usr/include/gstreamer-0.10/ -I/home/suman/fsl-community-bsp/build-fb/tmp/sysroots/imx6qsabresd/usr/include/libxml2 -o hellogst hellogst.o -L/home/suman/fsl-community-bsp/build-fb/tmp/sysroots/imx6qsabresd/usr/lib -lglib-2.0 -lxml2 -lgstreamer-0.10 -lgobject-2.0 -lz -lgmodule-2.0 -lffi&lt;/P&gt;&lt;P&gt;/opt/poky/1.4+snapshot/sysroots/i686-pokysdk-linux/usr/libexec/cortexa9hf-vfp-neon-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.1/ld: cannot find /lib/libc.so.6&lt;/P&gt;&lt;P&gt;/opt/poky/1.4+snapshot/sysroots/i686-pokysdk-linux/usr/libexec/cortexa9hf-vfp-neon-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.1/ld: cannot find /usr/lib/libc_nonshared.a&lt;/P&gt;&lt;P&gt;/opt/poky/1.4+snapshot/sysroots/i686-pokysdk-linux/usr/libexec/cortexa9hf-vfp-neon-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.1/ld: cannot find /lib/ld-linux-armhf.so.3&lt;/P&gt;&lt;P&gt;collect2: error: ld returned 1 exit status&lt;/P&gt;&lt;P&gt;make: *** [hellogst] Error 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 11:18:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-libc-linker-error-while-building-application/m-p/302813#M38425</guid>
      <dc:creator>sumanranjan</dc:creator>
      <dc:date>2014-05-08T11:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto libc linker error while building application</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-libc-linker-error-while-building-application/m-p/302814#M38426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This issue has been resolved after manually editing the libpthread.so and libc.so file generated during yocto build. These files point to /usr/lib i.e. host pc libraries instead of current directory[&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;/build-fb/tmp/sysroots/imx6qsabresd/usr/&lt;/SPAN&gt;lib] which was causing the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 10:55:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-libc-linker-error-while-building-application/m-p/302814#M38426</guid>
      <dc:creator>sumanranjan</dc:creator>
      <dc:date>2014-06-25T10:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto libc linker error while building application</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-libc-linker-error-while-building-application/m-p/302815#M38427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Suman Ranjan,&lt;/P&gt;&lt;P&gt;what do u mean with "manualy editing libpthread.so and libc.so file"? Using an hex editor.&lt;/P&gt;&lt;P&gt;I am running exactly into your same problem.&lt;/P&gt;&lt;P&gt;What is strange is that I can successfully compile QT applications with qt creator following the instruction in&amp;nbsp; &lt;A href="https://community.nxp.com/thread/309578"&gt;Setup QT Creator with Yocto Build&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;i.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 14:54:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-libc-linker-error-while-building-application/m-p/302815#M38427</guid>
      <dc:creator>ieio</dc:creator>
      <dc:date>2014-07-09T14:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto libc linker error while building application</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-libc-linker-error-while-building-application/m-p/302816#M38428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved,&lt;/P&gt;&lt;P&gt;my problem was in the Makefile, pls refer to 5.2. of&amp;nbsp; &lt;A href="http://www.yoctoproject.org/docs/1.6/adt-manual/adt-manual.html#adt-intro" title="http://www.yoctoproject.org/docs/1.6/adt-manual/adt-manual.html#adt-intro"&gt;Yocto Project Application Developer's Guide&lt;/A&gt;&lt;/P&gt;&lt;P&gt;CC and CFLAGS must be set properly.&lt;/P&gt;&lt;P&gt;i.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 15:09:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-libc-linker-error-while-building-application/m-p/302816#M38428</guid>
      <dc:creator>ieio</dc:creator>
      <dc:date>2014-07-09T15:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto libc linker error while building application</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-libc-linker-error-while-building-application/m-p/302817#M38429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right. I changed my CFLAGS accordingly and it worked too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Makefile:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SYSROOT_PATH=/home/suman/svndump/fsl-community-bsp/build-fb/tmp/sysroots/imx6qsabresd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# define any compile-time flags&lt;/P&gt;&lt;P&gt;#CFLAGS&amp;nbsp; = -fPIC -Wall -Wextra -O2 -g&amp;nbsp; # old CFLAG&lt;/P&gt;&lt;P&gt;CFLAGS="--sysroot=$(SYSROOT_PATH)"&amp;nbsp; # New CFLAG fixes the problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 10:51:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-libc-linker-error-while-building-application/m-p/302817#M38429</guid>
      <dc:creator>sumanranjan</dc:creator>
      <dc:date>2014-07-10T10:51:55Z</dc:date>
    </item>
  </channel>
</rss>

