Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] Build error "cannot find -lc"
Date: Sat, 11 Sep 2010 10:52:01 +0200	[thread overview]
Message-ID: <20100911105201.176d1396@surf> (raw)
In-Reply-To: <KAW101-W9A50593711791769ABB3C9B740@phx.gbl>

Hello,

On Sat, 11 Sep 2010 07:16:46 +0900
S W <sw18@hotmail.co.jp> wrote:

> I am using Buildroot-2010.08 to create a arm-linux kernel,
> but I encountered an error message like
> /usr/bin/ld: cannot find -lc
> 
> And I attached the whole output message with this email.
> 
> Would anyone please give me any advice?

Which distro are you using ?

Here, host-module-init-tools is trying to link statically the insmod
program, so it needs the static version of the C library, which does
not seem to be avaible on your system.

Some distributions (especially RPM based distro it seems, like
RedHat, Fedora, Mandriva and OpenSuse) ship this as a separate package,
sometimes named "glibc-static" or something similar. Anyhow, you should
have a "libc.a" file, either in /lib or /usr/lib, for this to work.
Just find the package of your distro that contains it.

Can you check this out, and report to us, so that we can implement
something to warn out users about this ?

Thanks!

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2010-09-11  8:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-10 22:16 [Buildroot] Build error "cannot find -lc" S W
2010-09-11  8:52 ` Thomas Petazzoni [this message]
2010-09-11 18:09   ` S W
2010-09-13 17:37     ` S W
2010-09-13 17:47       ` Thomas Petazzoni
2010-09-13 21:19         ` Peter Korsgaard
2010-09-14  4:09           ` Mitch Davis
2010-09-13 17:51     ` [Buildroot] Build error: No rule to make target `ubootboard_config' S W
2010-09-13 18:30       ` Thomas Petazzoni
2010-09-13 20:16         ` S W
2010-09-14 17:29           ` Marcus Osdoba

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=20100911105201.176d1396@surf \
    --to=thomas.petazzoni@free-electrons.com \
    --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