Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <jacmet@sunsite.dk>
To: buildroot@busybox.net
Subject: [Buildroot] 回复: Does anyone encounter issue as /usr/bin/ld: cannot find -lc
Date: Sun, 22 Jul 2012 15:23:14 +0200	[thread overview]
Message-ID: <87obn8orp9.fsf@macbook.be.48ers.dk> (raw)
In-Reply-To: <201207222045094067924@163.com> (Zewan's message of "Sun, 22 Jul 2012 20:45:09 +0800")

>>>>> "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

           reply	other threads:[~2012-07-22 13:23 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <201207222045094067924@163.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87obn8orp9.fsf@macbook.be.48ers.dk \
    --to=jacmet@sunsite.dk \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox