[Bug 506720] Review Request: uClibc - C library for embedded Linux

bugzilla at redhat.com bugzilla at redhat.com
Thu Jun 18 14:51:08 UTC 2009


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=506720





--- Comment #1 from Denys Vlasenko <dvlasenk at redhat.com>  2009-06-18 10:51:06 EDT ---
The goal of this package is to be able to compile stuff against uclibc, without
too much PITA.

After build of this package, headers and libs seem to end up in
/usr/{lib,include}/uClibc. Ok. How we will use them to build apps?


This is what I do at home to achieve it:
http://busybox.net/~vda/HOWTO/i486-linux-uclibc/HOWTO.txt

And here is Rob's automatic build system for uclibc toolchain for several
architectures:
http://landley.net/code/firmware/

My approach (described at the URL above) basically amounts to building a
separate cross-compiler for uclibc because:

(1) AFAIK, libc forms a part of the platform's ABI:

# i486-linux-uclibc-gcc -v
Using built-in specs.
Target: i486-linux-uclibc
                   ^^^^^^
$ gcc -v
Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/specs
                                              ^^^
(above: "gnu" basically means "glibc", I think)

and (2) it is easier to follow the same scheme for all uclibc builds, "native"
and true cross-compiling ones.

But - this method will install cross-compiling gcc and cross-compiling
binutils.
Not sure Fedora would want that. (Comments from the people in the know? Is it
possible/acceptable for Fedora to package cross-compiling toolchains?)

I expect Fedora would rather want to use native toolchain, just coerced into
using uclibc headers and libs. This is an understandable desire to reuse what
we already have installed.

But this is not easy. At least I failed when I tried. Problems usually manifest
as gcc and/or ld using start files and/or libs which do not exist, and do not
contain some required symbols. Because native gcc/ld expect to link against
glibc.

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.




More information about the Fedora-package-review mailing list