Page 1 of 1

How to properly build glibc?

Posted: Sun Apr 12, 2015 11:59 am
by osdever
What command i should use? Will it work only with --with-sysroot=sysroot/ oprion?

Re: How to properly build glibc?

Posted: Sun Apr 12, 2015 1:00 pm
by Combuster
Your question implies that you haven't tried it yet, and I point to your previously locked thread why that is a bad idea.

You can do that first, but my expectation is rather that in reality you're misguided and don't actually want to build glibc should you actually know what it means. Instead, you're probably not telling us some essential things.

Re: How to properly build glibc?

Posted: Sun Apr 12, 2015 2:17 pm
by KemyLand
Let's first remember something. The GNU C Library (glibc), assumes, as its name implies, a GNU environment. Now, what does that means? I'll list some things you must achieve, and mark those who are extremely difficult to achieve in the first place.
  • Having a full-fledged GCC.
  • Having a full-fledged Binutils.
  • Having a kernel supported by the library. That means either *full* Linux or GNU Hurd compatibility.
  • Patching who-knows-what lots of stuff in the library (If done correctly, this can resolve issue #3) Have you seen GNU code? It appears a lot like K&R C.
  • Having all the network stuff that is required, e.g: TCP/IP, BSD-style sockets, gethostbyname(), etc etc...
  • Being fully-compatible with all the major Unix standards (i.e.: POSIX, the SUS, XSI, and a long etc...)
  • All the Holly Fuckin' extensions of GNU, documented or not.
  • A giant undocumented etc...
I don't know of anyone on this forum that has been so hackerish to be able to do this. If I'm wrong, the information from him could be pretty useful here :wink: .

Re: How to properly build glibc?

Posted: Sun Apr 12, 2015 2:56 pm
by iansjack
Assuming that, for some reason, you want to build a new glibc version for your Linux operating system, just follow the instructions: http://www.gnu.org/software/libc/manual ... iling.html

But what's wrong with the version supplied with your distribution?

Re: How to properly build glibc?

Posted: Sun Apr 12, 2015 3:49 pm
by KemyLand
iansjack wrote:Assuming that, for some reason, you want to build a new glibc version for your Linux operating system, just follow the instructions: http://www.gnu.org/software/libc/manual ... iling.html

But what's wrong with the version supplied with your distribution?
He's talking about implementing it for his O.S. :wink: .

Re: How to properly build glibc?

Posted: Sun Apr 12, 2015 3:53 pm
by iansjack
He may be, but he doesn't say so.

I think the OP needs to learn C before attempting to implement any libc on a hobby OS.

Re: How to properly build glibc?

Posted: Sun Apr 12, 2015 5:46 pm
by KemyLand
iansjack wrote:He may be, but he doesn't say so.

I think the OP needs to learn C before attempting to implement any libc on a hobby OS.
Just saw his username...