AnsweredAssumed Answered

Yocto libc linker error while building application

Question asked by Bharath G on Apr 24, 2014
Latest reply on Jul 10, 2014 by Suman Ranjan

Board: imx6qsabresd

host: ubuntu 12.04

FS: yocto project 1.5 (Dora)

 

Description:

     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

 

ERROR Log:

-------------------

 

/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

/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

/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

collect2: error: ld returned 1 exit status

 

Also,

While building multi-threaded gstreamer application, we are getting pthread linker errors as shown below:

 

ERROR Log:

-------------------

 

/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

/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

collect2: error: ld returned 1 exit status

Outcomes