[Buildroot] module-init-tools build problem in Buildroot buildroot-2010.02

Ravi Kumar Kulkarni ravilinux4u at gmail.com
Wed Apr 7 06:07:27 UTC 2010


Hi Chris

On Wed, Apr 7, 2010 at 6:39 AM, Chris Kerios <ckerios at gmail.com> wrote:
> Hello,
> I am a relative noob when it comes to using buildroot as I am just getting
> started with embedded on an old AVR32ngw board.  I am running Fedora 12 as
> my host and I am trying to build the toolchain, kernel, etc. using buildroot
> from scratch.  Cool work/tool by the way!  Anyway I am getting the following
> error message attached below.  I have scoured the mailing list archive on
> this and can only find 1 reference in which the person asked the question
> and then followed up immediately with notice that he fixed the problem.  He
> only left a vague reference that it had something to do with glibc not being
> built for his target.  If this is the case, I can't figure it out as the
> module-init-tools is built after the successful build of gcc, ulibC, gdb,
> etc.  If it has anything to do with my host I have all the glibc and
> glibc-devel built on the Fedora side as well.  Dumb question here: Which C
> lib is it looking for?  The ulibC under the buildroot directory I am
> building the toolchain/cross-compiler in or the Fedora host glibc?
>
> Am I missing something here?
> Thanks in Advance.
>
>
> modinfo.c: In function ‘main’:
> modinfo.c:338: warning: ‘infosize’ may be used uninitialized in this
> function
> /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

lc means tat GCC does not find link to C library ,which  is something strange.
try to create a symbolink for lc and tat should hopefull work.please
try n let me know.


> collect2: ld returned 1 exit status
> make[1]: *** [insmod.static] Error 1
> make[1]: Leaving directory
> `/home/chris/buildroot-avr32-v2.3.0/toolchain_build_avr32/module-init-tools-3.2.2'
> make: ***
> [/home/chris/buildroot-avr32-v2.3.0/toolchain_build_avr32/module-init-tools-3.2.2/depmod]
> Error 2
>
warm regards,
Ravi Kulkarni.



More information about the buildroot mailing list