[imx6d]arm-poky-linux-gnueabi/4.9.1/ld: cannot find -lc

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[imx6d]arm-poky-linux-gnueabi/4.9.1/ld: cannot find -lc

1,515 Views
myungjinhwang
Contributor III

Dear NXP team.

I'm have imx6d board now and some build error as bellow.

toolchain is /opt/poky/1.7.1 and using ubuntu 10.04/64bit.

/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/ld: cannot find -lc

it could be builded without "CFLAGS += -static" but we usually use static librarys(*.a) fiil.

so, i add CFLAGS += -static then it occurs build errors.

and i searched libc.a file in the toolchain(/opt/poky/1.7.1) with grep but i couldn't find it.

could you help me?

Best regards

0 Kudos
1 Reply

688 Views
Yuri
NXP Employee
NXP Employee

Hello,

The following from Yocto Project Application Developer's Guide

may be helpful:

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:

     IMAGE_INSTALL_append = " glibc-staticdev"


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos