All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] First day with buildroot
@ 2011-02-17  4:12 Charles Krinke
  2011-02-17  8:09 ` bruce bushby
  2011-02-17 11:50 ` Quotient Remainder
  0 siblings, 2 replies; 5+ messages in thread
From: Charles Krinke @ 2011-02-17  4:12 UTC (permalink / raw)
  To: buildroot

Below are the last half dozen lines of my first compile with buildroot. I
set it up for a powerpc architecture and selected almost all the defaults,
changing only things like ext2 to jffs2 file system. I did select the
"general" for sub-architecture (as opposed to say, e300c2).

I am puzzled at this point as to where to go looking for issues. It seems
that ld fails trying to find the file "-lc" when I believe "-lc" is an
argument, so a missing string or environment variable is probably the issue
(I'm guessing a bit).

This is a Fedora system recently formatted with the latest livecd running
linux-2.6.35.

Any suggestions would be greatly appreciated.


make[1]: Entering directory
`/home/ckrinke/buildroot-2010.11/output/build/host-module-init-tools-3.12'
MAKE i686-pc-linux-gnu : 0 * all-all
make[2]: Entering directory
`/home/ckrinke/buildroot-2010.11/output/build/host-module-init-tools-3.12/build'
/usr/bin/gcc  -O2 -I/home/ckrinke/buildroot-2010.11/output/host/include
-I/home/ckrinke/buildroot-2010.11/output/host/usr/include -Wunused -Wall
-static -L/home/ckrinke/buildroot-2010.11/output/host/lib
-L/home/ckrinke/buildroot-2010.11/output/host/usr/lib
-Wl,-rpath,/home/ckrinke/buildroot-2010.11/output/host/usr/lib -o
insmod.static insmod.o libmodtools.a
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[2]: *** [insmod.static] Error 1
make[2]: Leaving directory
`/home/ckrinke/buildroot-2010.11/output/build/host-module-init-tools-3.12/build'
make[1]: *** [all-all] Error 2
make[1]: Leaving directory
`/home/ckrinke/buildroot-2010.11/output/build/host-module-init-tools-3.12'
make: ***
[/home/ckrinke/buildroot-2010.11/output/build/host-module-init-tools-3.12/.stamp_built]
Error 2


-- 
Charles Krinke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110216/eae18caa/attachment-0001.html>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] First day with buildroot
  2011-02-17  4:12 [Buildroot] First day with buildroot Charles Krinke
@ 2011-02-17  8:09 ` bruce bushby
  2011-02-17 11:50 ` Quotient Remainder
  1 sibling, 0 replies; 5+ messages in thread
From: bruce bushby @ 2011-02-17  8:09 UTC (permalink / raw)
  To: buildroot

Have you got these packages?

[bruce at core Downloads]$ rpm -qf /usr/bin/lc
mono-core-2.4.3.1-1.fc12.x86_64
[bruce at core Downloads]$
[bruce at core Downloads]$ rpm -qf /usr/bin/ld
binutils-2.19.51.0.14-37.fc12.x86_64
[bruce at core Downloads]$




On Thu, Feb 17, 2011 at 4:12 AM, Charles Krinke <charles.krinke@gmail.com>wrote:

> Below are the last half dozen lines of my first compile with buildroot. I
> set it up for a powerpc architecture and selected almost all the defaults,
> changing only things like ext2 to jffs2 file system. I did select the
> "general" for sub-architecture (as opposed to say, e300c2).
>
> I am puzzled at this point as to where to go looking for issues. It seems
> that ld fails trying to find the file "-lc" when I believe "-lc" is an
> argument, so a missing string or environment variable is probably the issue
> (I'm guessing a bit).
>
> This is a Fedora system recently formatted with the latest livecd running
> linux-2.6.35.
>
> Any suggestions would be greatly appreciated.
>
>
> make[1]: Entering directory
> `/home/ckrinke/buildroot-2010.11/output/build/host-module-init-tools-3.12'
> MAKE i686-pc-linux-gnu : 0 * all-all
> make[2]: Entering directory
> `/home/ckrinke/buildroot-2010.11/output/build/host-module-init-tools-3.12/build'
> /usr/bin/gcc  -O2 -I/home/ckrinke/buildroot-2010.11/output/host/include
> -I/home/ckrinke/buildroot-2010.11/output/host/usr/include -Wunused -Wall
> -static -L/home/ckrinke/buildroot-2010.11/output/host/lib
> -L/home/ckrinke/buildroot-2010.11/output/host/usr/lib
> -Wl,-rpath,/home/ckrinke/buildroot-2010.11/output/host/usr/lib -o
> insmod.static insmod.o libmodtools.a
> /usr/bin/ld: cannot find -lc
> collect2: ld returned 1 exit status
> make[2]: *** [insmod.static] Error 1
> make[2]: Leaving directory
> `/home/ckrinke/buildroot-2010.11/output/build/host-module-init-tools-3.12/build'
> make[1]: *** [all-all] Error 2
> make[1]: Leaving directory
> `/home/ckrinke/buildroot-2010.11/output/build/host-module-init-tools-3.12'
> make: ***
> [/home/ckrinke/buildroot-2010.11/output/build/host-module-init-tools-3.12/.stamp_built]
> Error 2
>
>
> --
> Charles Krinke
>
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110217/f5d581b6/attachment.html>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] First day with buildroot
  2011-02-17  4:12 [Buildroot] First day with buildroot Charles Krinke
  2011-02-17  8:09 ` bruce bushby
@ 2011-02-17 11:50 ` Quotient Remainder
  2011-02-17 13:07   ` Peter Korsgaard
  1 sibling, 1 reply; 5+ messages in thread
From: Quotient Remainder @ 2011-02-17 11:50 UTC (permalink / raw)
  To: buildroot

Ar C?ad, 2011-02-16 at 20:12 -0800, Charles Krinke wrote:

> Below are the last half dozen lines of my first compile with
> buildroot. I set it up for a powerpc architecture and selected almost
> all the defaults, changing only things like ext2 to jffs2 file system.
> I did select the "general" for sub-architecture (as opposed to say,
> e300c2). 
> /usr/bin/ld: cannot find -lc
> -- 

"sudo yum install glibc-static"
You need the static C library to build host-module-init-tools

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110217/d05c5df9/attachment-0001.html>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] First day with buildroot
  2011-02-17 11:50 ` Quotient Remainder
@ 2011-02-17 13:07   ` Peter Korsgaard
  2011-02-18  2:10     ` Charles Krinke
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2011-02-17 13:07 UTC (permalink / raw)
  To: buildroot

>>>>> "Quotient" == Quotient Remainder <quotientvremainder@gmail.com> writes:

 Quotient> Ar C?ad, 2011-02-16 at 20:12 -0800, Charles Krinke wrote:
 Quotient>     Below are the last half dozen lines of my first compile with buildroot. I
 Quotient>     set it up for a powerpc architecture and selected almost all the defaults,
 Quotient>     changing only things like ext2 to jffs2 file system. I did select the
 Quotient>     "general" for sub-architecture (as opposed to say, e300c2).
 Quotient>     /usr/bin/ld: cannot find -lc
 Quotient>     --

 Quotient> "sudo yum install glibc-static"
 Quotient> You need the static C library to build host-module-init-tools

Indeed. Notice that this is a FAQ:

http://buildroot.net/buildroot.html#faq

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] First day with buildroot
  2011-02-17 13:07   ` Peter Korsgaard
@ 2011-02-18  2:10     ` Charles Krinke
  0 siblings, 0 replies; 5+ messages in thread
From: Charles Krinke @ 2011-02-18  2:10 UTC (permalink / raw)
  To: buildroot

Thank you gentlemen, that completed the build and a new uImage and
rootfs.jffs2 appeared.

A second question if I may.

I selected the general option instead of the e300c2 as my host compiler is
older then required.

Am I correct in assuming that the general option for a MPC8323 (which is an
e300 core) should produce binaries that will run on an MPC8323E-RDB
(Freescale 8323 Reference Design Board) ?

Charles

On Thu, Feb 17, 2011 at 5:07 AM, Peter Korsgaard <jacmet@uclibc.org> wrote:

> >>>>> "Quotient" == Quotient Remainder <quotientvremainder@gmail.com>
> writes:
>
>  Quotient> Ar C?ad, 2011-02-16 at 20:12 -0800, Charles Krinke wrote:
>  Quotient>     Below are the last half dozen lines of my first compile with
> buildroot. I
>  Quotient>     set it up for a powerpc architecture and selected almost all
> the defaults,
>  Quotient>     changing only things like ext2 to jffs2 file system. I did
> select the
>  Quotient>     "general" for sub-architecture (as opposed to say, e300c2).
>  Quotient>     /usr/bin/ld: cannot find -lc
>  Quotient>     --
>
>  Quotient> "sudo yum install glibc-static"
>  Quotient> You need the static C library to build host-module-init-tools
>
> Indeed. Notice that this is a FAQ:
>
> http://buildroot.net/buildroot.html#faq
>
> --
> Bye, Peter Korsgaard
>



-- 
Charles Krinke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110217/53f774c0/attachment.html>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-02-18  2:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-17  4:12 [Buildroot] First day with buildroot Charles Krinke
2011-02-17  8:09 ` bruce bushby
2011-02-17 11:50 ` Quotient Remainder
2011-02-17 13:07   ` Peter Korsgaard
2011-02-18  2:10     ` Charles Krinke

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.