Tuesday, March 16, 2010

/usr/bin/ld: cannot find -lc

Segu Venkatesh (itsvenky86@gmail.com) forwarded me this error, Which is more of a common nature:

make[1]: Entering directory `/home/stars/buildroot-2010.02/output/toolchain/module-init-tools-3.2.2'
/usr/lib/ccache/gcc -g -O2 -Wunused -Wall -o lsmod lsmod.o
/usr/lib/ccache/gcc -g -O2 -Wunused -Wall -o insmod insmod.o
/usr/lib/ccache/gcc -g -O2 -Wunused -Wall -o modprobe modprobe.o zlibsupport.o
/usr/lib/ccache/gcc -g -O2 -Wunused -Wall -o rmmod rmmod.o
/usr/lib/ccache/gcc -g -O2 -Wunused -Wall -o depmod depmod.o moduleops.o tables.o zlibsupport.o
/usr/lib/ccache/gcc -g -O2 -Wunused -Wall -o modinfo modinfo.o zlibsupport.o
/usr/lib/ccache/gcc -g -O2 -Wunused -Wall -o insmod.static -static insmod.o
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[1]: *** [insmod.static] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/stars/buildroot-2010.02/output/toolchain/module-init-tools-3.2.2'
make: *** [/home/stars/buildroot-2010.02/output/toolchain/module-init-tools-3.2.2/depmod] Error 2


The solution is simple:
In the command window:
$ set CC=gcc


1 comment:

  1. doesn't work for me, any other suggestions to solve this problem?

    ReplyDelete

Note: Only a member of this blog may post a comment.