[ELDK] arm-linux-gnueabi/4.6.4/ld: cannot find -lc

uc freak ucfreak at gmail.com
Mon Jul 2 12:49:09 CEST 2012


Hello all,

I'm new to ELDK since a couple of days. I tried to build a small hello
world style application with static linking.

 I installed ELDK 5.2.1 on my PC (OS: Debian Wheezy, 32bit) like following:

> mount -o loop /home/arti/Downloads/eldk-5.2.1-armv4t.iso /media/cdrom1
> /media/cdrom1/install.sh armv4t
> source /opt/eldk-5.2.1/armv4t/environment-setup-armv4t-linux-gnueabi

Then I tried to generate a small c application (hello.c) :

#include <stdio.h>
#include <stdlib.h>

main (int ac, char **av)

{
                while (1) {
                                printf ("hello\n");
                                sleep (1)
                }
}


Compilation, static:

> arm-linux-gnueabi-gcc -static -o hello hello.c


Error message:

/opt/eldk-5.2.1/armv4t/sysroots/i686-eldk-linux/usr/libexec/armv4t-linux-gnueabi/gcc/arm-linux-gnueabi/4.6.4/ld:
cannot find -lc
collect2: ld returned 1 exit status

I suspect maybe a problem with the libc, but this domain is pretty new to
me.

Any idea where to look at?


Regards,

ucfreak


More information about the eldk mailing list