Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] 回复: Does anyone encounter issue as /usr/bin/ld: cannot find -lc
       [not found] ` <201207222045094067924@163.com>
@ 2012-07-22 13:23   ` Peter Korsgaard
  0 siblings, 0 replies; only message in thread
From: Peter Korsgaard @ 2012-07-22 13:23 UTC (permalink / raw)
  To: buildroot

>>>>> "Zewan" == Zewan  <amoid@163.com> writes:

Hi,

Please send buildroot mails to the buildroot mailing list, and not
directly to me.

 Zewan> my log messages as following.
 Zewan> host-module-init-tools 3.15 Building
 Zewan> PATH=/home/amoid/work/buildroot-2012.05/output/host/bin:/home/amoid/work/
 Zewan> buildroot-2012.05/output/host/usr/bin:/usr/lib/qt-3.3/bin:/usr/lib/ccache:/usr/
 Zewan> local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/amoid/bin:/opt/
 Zewan> FriendlyARM/toolschain/4.4.3/bin LD_LIBRARY_PATH="/home/amoid/work/
 Zewan> buildroot-2012.05/output/host/usr/lib:" PKG_CONFIG="/home/amoid/work/
 Zewan> buildroot-2012.05/output/host/usr/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/
 Zewan> " PKG_CONFIG_LIBDIR="/home/amoid/work/buildroot-2012.05/output/host/usr/lib/
 Zewan> pkgconfig" PERLLIB="/home/amoid/work/buildroot-2012.05/output/host/usr/lib/
 Zewan> perl"  /usr/bin/make -j2  -C /home/amoid/work/buildroot-2012.05/output/build/
 Zewan> host-module-init-tools-3.15/
 Zewan> make[1]: Entering directory `/home/amoid/work/buildroot-2012.05/output/build/
 Zewan> host-module-init-tools-3.15'
 Zewan> MAKE i686-pc-linux-gnu : 0 * all-all
 Zewan> make[2]: Entering directory `/home/amoid/work/buildroot-2012.05/output/build/
 Zewan> host-module-init-tools-3.15/build'
 Zewan> /usr/lib/ccache/gcc  -O2 -I/home/amoid/work/buildroot-2012.05/output/host/
 Zewan> include -I/home/amoid/work/buildroot-2012.05/output/host/usr/
 Zewan> include -Wunused -Wall -static -L/home/amoid/work/buildroot-2012.05/output/host
 Zewan> /lib -L/home/amoid/work/buildroot-2012.05/output/host/usr/lib -Wl,-rpath,/home/
 Zewan> amoid/work/buildroot-2012.05/output/host/usr/
 Zewan> lib -o insmod.static insmod.o libmodtools.a 
 Zewan> /usr/bin/ld: cannot find -lc

This is (was?) a FAQ:

module-init-tools fails to build with cannot find -lc

If the build of module-init-tools for the host fails with:
   /usr/bin/ld: cannot find -lc

then probably you are running a Fedora (or similar) distribution, and
you should install the glibc-static package. This is because the
module-init-tools build - process wants to link statically against the C
library.

This problem is btw fixed in git since ~1 month.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-07-22 13:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <201207222031244996643@163.com>
     [not found] ` <201207222045094067924@163.com>
2012-07-22 13:23   ` [Buildroot] 回复: Does anyone encounter issue as /usr/bin/ld: cannot find -lc Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox