From 6b6c3aa89f860429c346d80cf0605345606f7c18 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 14 Feb 2004 21:02:41 +0000 Subject: Update FAQ a bit --- docs/uclibc.org/FAQ.html | 274 +++++++++++++++++++++++++++++++---------------- 1 file changed, 181 insertions(+), 93 deletions(-) (limited to 'docs') diff --git a/docs/uclibc.org/FAQ.html b/docs/uclibc.org/FAQ.html index 6ed1d3a5c..958da2243 100644 --- a/docs/uclibc.org/FAQ.html +++ b/docs/uclibc.org/FAQ.html @@ -8,34 +8,37 @@ about uClibc. Some of the questions even have answers. If you have additions to this FAQ document, we would love to add them,
    -
  1. Why is it called uClibc? -
  2. What platforms does uClibc run on? -
  3. Why are you doing this? What's wrong with glibc? -
  4. So uClibc is smaller then glibc? Doesn't that mean it +
  5. Why is it called uClibc? +
  6. What platforms does uClibc run on? +
  7. Why are you doing this? What's wrong with glibc? +
  8. So uClibc is smaller then glibc? Doesn't that mean it completely sucks? How could it be smaller and not suck? -
  9. Why should I use uClibc? -
  10. If I use uClibc, do I have to release all my source code to the world for +
  11. Why should I use uClibc? +
  12. If I use uClibc, do I have to release all my source code to the world for free? I want to create a closed source commercial application and I want to protect my intellectual property. -
  13. Can I use it on my x86 development system? -
  14. Does uClibc support shared libraries? - -
  15. How do I compile programs with uClibc? -
  16. Is a pre-compiled uClibc development system available? -
  17. Why do I keep getting "sh: can't access tty; job control - turned off" errors? Why doesn't Control-C work within my shell? -
  18. How do I make autoconf and automake behave? -
  19. When I run 'ldd' to get a list of the library dependencies - for a uClibc binary, ldd segfaults! What should I do? -
  20. Why does localtime() return times in UTC even when I have my timezone set? -
  21. What is the history of uClibc? Where did it come from? -
  22. I demand that you to add <favorite feature> right now! How come - you don't answer all my questions on the mailing list instantly? I demand - that you help me with all of my problems Right Now! -
  23. I need you to add <favorite feature>! Are the uClibc developers willing to - be paid in order to fix bugs or add in <favorite feature>? Are you willing to provide - support contracts? -
  24. I think you guys are great and I want to help support your work! +
  25. Can I use it on my x86 development system? +
  26. Does uClibc support shared libraries? +
  27. How do I compile programs with uClibc? +
  28. Do I really need to build a uClibc toolchain? +
  29. What happened to the old toolchain wrapper? +
  30. Is a pre-compiled uClibc development system available? +
  31. I think I found a bug in uClibc! What should I do?! +
  32. Why do I keep getting "sh: can't access tty; job control + turned off" errors? Why doesn't Control-C work within my shell? +
  33. How do I make autoconf and automake behave? +
  34. When I run 'ldd' to get a list of the library dependencies + for a uClibc binary, ldd segfaults! What should I do? +
  35. Why does localtime() return times in UTC even when I have my timezone set? +
  36. What is the history of uClibc? Where did it come from? +
  37. I demand that you to add <favorite feature> right now! How come + you don't answer all my questions on the mailing list instantly? I demand + that you help me with all of my problems Right Now! +
  38. I need help with uClibc! What should I do? +
  39. I need you to add <favorite feature>! Are the uClibc developers willing to + be paid in order to fix bugs or add in <favorite feature>? Are you willing to provide + support contracts? +
  40. I think you guys are great and I want to help support your work!
@@ -50,7 +53,7 @@ have additions to this FAQ document, we would love to add them, as the abbreviation for the word "micro". The capital "C" is short for "controller". So the name uClibc is sortof an abbreviation for "the microcontroller C library". For simplicity, uClibc is pronounced - "yew-see-lib-see". + "yew-see-lib-see".

The name is partly historical, since uClibc was originally created to support µClinux, a port of @@ -64,9 +67,9 @@ have additions to this FAQ document, we would love to add them,

- Currently uClibc runs on alpha, ARM, cris, i386, i960, h8300, + Currently uClibc runs on alpha, ARM, cris, i386, i960, h8300, m68k, mips/mipsel, PowerPC, SH, SPARC, and v850 processors. - +


@@ -112,13 +115,13 @@ How could it be smaller and not suck?

- In other cases, uClibc - leaves certain features (such as full C99 Math library support, wordexp, - IPV6, and RPC support) disabled by default. Those features can be enabled - for people that need them, but are otherwise disabled to save space. + In other cases, uClibc leaves certain features (such as full C99 Math + library support, wordexp, IPV6, and RPC support) disabled by default. + Those features can be enabled for people that need them, but are otherwise + disabled to save space.

- + Some of the space savings in uClibc is obtained at the cost of performance, and some is due to sacrificing features. Much of it comes from aggressive refactoring of code to eliminate redundancy. In regards to locale data, @@ -136,7 +139,6 @@ How could it be smaller and not suck? throw at it, that looks like glibc to application programs when you compile, and is many times smaller. -


@@ -206,14 +208,14 @@ How could it be smaller and not suck?

Does uClibc support shared libraries?

- - Yes. uClibc has native shared library support on i386, ARM, mips, + + Yes. uClibc has native shared library support on i386, ARM, mips, SH, CRIS, and PowerPC processors. Other architectures can use shared libraries but will need to use the GNU libc shared library loader.

- Shared Libraries are not currently supported by uClibc on MMU-less systems. + Shared Libraries are not currently supported by uClibc on MMU-less systems. SnapGear has implemented - shared library support for MMU-less systems, however, so if you need MMU-less + shared library support for MMU-less systems, however, so if you need MMU-less shared library support they may be able to help. @@ -222,16 +224,57 @@ How could it be smaller and not suck?

How do I compile programs with uClibc?

- You will need to have your own uClibc toolchain (i.e. GNU binutils and - gcc configured to produce binaries linked with uClibc). + You will need to have your own uClibc toolchain. A toolchain consists + of GNU binutils, + the gcc compiler, and uClibc, all + built to produce binaries linked with uClibc for your target system. You can build your own native uClibc toolchain using the uClibc - toolchain builder from + toolchain builder from uClibc toolchain builder, or the uClibc buildroot system from uClibc buildroot system. Simply adjust the Makefile settings to match your target system, and then run 'make'. +


+

+

Do I really need to build a uClibc toolchain?

+

+ + Yes, you really do need to build a toolchain to produce uClibc binaries. + We used to provide a toolchain wrapper, but that has been removed due to + numerous problems. The uClibc developers have gone to a lot of trouble + to produce a + uClibc toolchain builder, + and the + uClibc buildroot system, + which make it easy to build your own uClibc toolchain. Feel free to take + the gcc and binutils patches we provide and use them in your own toolchain + build system. + + +


+

+

What happened to the old toolchain wrapper?

+

+ + It is possible in some limited cases to re-use an existing glibc toolchain + and subvert it into building uClibc binaries by using gcc commands such as + "-nostdlib" and "-nostdinc". In fact, this used to be the recommended + method for compiling programs with uClibc using a uClibc toolchain wrapper. + This toolchain wrapper was removed from uClibc 0.9.22, and it will not be + coming back. This is because it is impossible to fully subvert an existing + toolchain in many cases. As uClibc has become more capable the many problems + with re-using an existing glibc toolchain led us to conclude that the only + safe and sane way to build uClibc binaries is to use a uClibc toolchain. + +

+ + Some discussion on the reasoning behind this decision can be found here: + + http://www.uclibc.org/lists/uclibc/2003-October/007315.html + in the uClibc mailing list archives. +


Is a pre-compiled uClibc development system available?

@@ -250,8 +293,8 @@ How could it be smaller and not suck? problem with the shared library loader that has not yet been resolved.

- These are pre-built uClibc only development systems (created using - buildroot), and provide a + These are pre-built uClibc only development systems (created using + buildroot), and provide a really really easy way to get started. These are about bzip2 compressed ext2 filesystems containing all the development software you need to build your own uClibc applications. With bash, awk, make, gcc, g++, autoconf, @@ -280,7 +323,25 @@ How could it be smaller and not suck?


-

Why do I keep getting "sh: can't access tty; job control +

I think I found a bug in uClibc! What should I do?

+

+ + If you find a problem with uClibc, please submit a detailed bug report to + the uClibc mailing list at uclibc@mail.uclibc.org. Please do not send + private email to Erik asking for private help unless you are planning on + paying for consulting services. + + + A well-written bug report should include an example that demonstrates the + problem behaviors and enables anyone else to duplicate the bug on their own + machine. For larger applications where it may prove difficult to provide + an example application, we recommend that you use a tool such as gdb, + strace, ltrace, and or valgrind to create a logfile showing the problem + behavior. + +


+

+

Why do I keep getting "sh: can't access tty; job control turned off" errors? Why doesn't Control-C work within my shell?

@@ -312,18 +373,22 @@ How could it be smaller and not suck?


-

When I run 'ldd' to get a list of the library dependencies +

When I run 'ldd' to get a list of the library dependencies for a uClibc binary, ldd segfaults! What should I do?

- Use the ldd that is built by uClibc, not your system's one. When your - system's ldd looks for library dependencies, it actually _runs_ that - program. This works fine -- usually. It generally will not work at all - when you have been cross compiling (which is why ldd segfaults). The ldd - program created by uClibc is cross platform and doesn't even try to run - the target program (like your system one does). So use the uClibc one - and it will do the right thing, and it won't segfault even when you are - cross compiling. + Use the ldd that is built by uClibc, not your system's one. You can build + uClibc'd ldd for your host system by going into the uClibc/utils/ directory + in the uClibc source and running 'make ldd.host'. +

+ + When your system's ldd looks for library dependencies, it actually _runs_ + that program. This works fine -- usually. It generally will not work at + all when you have been cross compiling (which is why ldd segfaults). The + ldd program created by uClibc is cross platform and doesn't mind at all if + it cannot execute the target program. If you use the uClibc version of + 'ldd', it will do the right thing and produce correct results, even when it + is used on cross compiled binaries.


@@ -350,42 +415,41 @@ How could it be smaller and not suck?

- The history and origin of uClibc is long and twisty. - In the beginning, there was GNU libc. Then, libc4 - (which later became linux libc 5) forked from GNU libc version 1.07.4, with - additions from 4.4BSD, in order to support Linux. Later, the Linux-8086 C library, which is part of - the elks project, was created, - which was, apparently, largely written from scratch but also borrowed code from - libc4, glibc, some Atari library code, with bits and pieces from about 20 other - places. Then uClibc forked off from the Linux-8086 C library in order to run - on µClinux. + uClibc started off as a fork on the Linux-8086 C library, which is + part of the elks project. + The Linux-8086 C library was, apparently, largely written from scratch but + also borrowed code from libc4, glibc, some Atari library code, with bits + and pieces from about 20 other places. +

I had for some time been despairing over the state of C libraries in Linux. - GNU libc, the standard, is very poorly suited to embedded systems and - has been getting bigger with every release. I spent quite a bit of time looking over the - available Open Source C libraries that I knew of, and none of them really - impressed me. I felt there was a real vacancy in the embedded Linux ecology. - The closest library to what I imagined an embedded C library should be was - uClibc. But it had a lot of problems too -- not the least of which was that, - traditionally, uClibc required a complete source tree fork in order to support - each and every new platform. This resulted in a big mess of twisty versions, - all different. I decided to fix it and the result is what you see here. + GNU libc, the standard, is very poorly suited to embedded systems and has + been getting bigger with every release. I spent quite a bit of time + looking over the available Open Source C libraries that I knew of, and none + of them really impressed me. I felt there was a real vacancy in the + embedded Linux ecology. The closest library to what I imagined an embedded + C library should be was uClibc. But it had a lot of problems too -- not + the least of which was that, traditionally, uClibc required a complete + source tree fork in order to support each and every new platform. This + resulted in a big mess of twisty versions, all different. I decided to fix + it and the result is what you see here.

To start with, (with some initial help from D. Jeff Dionne), I - ported uClibc to run on i386. I then grafted in the header files from glibc - and cleaned up the resulting breakage. This (plus some additional work) has - made it much less dependant on kernel headers, a large departure from - its traditional tightly-coupled-to-the-kernel origins. I have written and/or - rewritten a number of things that were missing or broken, and sometimes grafted - in bits of code from the current glibc and libc5. I have also added a proper - configuration system which allows you to easily select your target architecture - and enable and disable various features. Many people have helped by testing, - contributing ports to new architectures, and adding support for missing features. + href="http://www.uclinux.org/developers/">D. Jeff Dionne), I ported + uClibc to run on i386. I then grafted in the header files from glibc and + cleaned up the resulting breakage. This (plus some additional work) has + made it much less dependant on kernel headers, a large departure from its + traditional tightly-coupled-to-the-kernel origins. I have written and/or + rewritten a number of things that were missing or broken, and sometimes + grafted in bits of code from the current glibc and libc5. I have also + added a proper configuration system which allows you to easily select your + target architecture and enable and disable various features. Many people + have helped by testing, contributing ports to new architectures, and adding + support for missing features.

@@ -397,17 +461,17 @@ How could it be smaller and not suck?

- These days, uClibc is being developed and enhanced by Erik Andersen + These days, uClibc is being developed and enhanced by Erik Andersen and Manuel Novoa III of - CodePoet Consulting + CodePoet Consulting along with the rest of the embedded Linux community.


-

I demand that you to add <favorite feature> right now! How come - you don't answer all my questions on the mailing list instantly? I demand +

I demand that you to add <favorite feature> right now! How come + you don't answer all my questions on the mailing list instantly? I demand that you help me with all of my problems Right Now!

@@ -418,11 +482,35 @@ How could it be smaller and not suck?

ignore you. -

-

I need you to add <favorite feature>! Are the uClibc developers willing to +

I need help with uClibc! What should I do?

+

+ + If you find that you need help with uClibc, you can ask for help on the + uClibc mailing list at uclibc@mail.uclibc.org. In addition to the uClibc + mailing list, Erik and Manuel are also known to sometimes hang out on the + uClibc IRC channel: #uclibc on irc.freenode.net. + +

+ + Please do not send private email to Erik and/or Manuel asking for + private help unless you are planning on paying for consulting services. + When we answer questions on the uClibc mailing list, it helps everyone + since people with similar problems in the future will be able to get help + by searching the mailing list archives. Private help is reserved as a paid + service. If you need to use private communication, or if you are serious + about getting timely assistance with uClibc, you should seriously consider + paying for consulting time. + +

+ + + +


+

+

I need you to add <favorite feature>! Are the uClibc developers willing to be paid in order to fix bugs or add in <favorite feature>? Are you willing to provide support contracts?

@@ -431,9 +519,9 @@ How could it be smaller and not suck? href="mailto:andersen@codepoet.org">Erik Andersen of CodePoet Consulting to bid on your project. If Erik is too busy to personally add your feature, there - are several other active uClibc contributors who will almost certainly be able + are several other active uClibc contributors who will almost certainly be able to help you out. Erik can contact them and ask them about their availability. - +


@@ -441,7 +529,7 @@ How could it be smaller and not suck?

Wow, that would be great! You can click here to help support uClibc and/or request features. - +

@@ -455,8 +543,8 @@ How could it be smaller and not suck?
- If you prefer to contact us directly for payments, hardware donations, - support requests, etc., you can contact + If you prefer to contact us directly for payments, hardware donations, + support requests, etc., you can contact CodePoet Consulting here.
-- cgit v1.2.3