Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

gcc - glibc compatibility matrix

1,644 views
Skip to first unread message

stman9...@yahoo.com

unread,
Apr 9, 2008, 12:34:30 PM4/9/08
to
Hi,

I ran into problems building the triumvirate linux, gcc, glibc. I have
a linux 2.4.21-50 with gcc 3.2.3. I built and installed the gcc V3.4.6
and I tried to build the latest (V2.7) glibc. Here I started to have
problems with __thread, and nptl and finaly I found a note in gcc-bug
list I have to install more recent headers. I quote from the gcc-bug
mailing list "NPTL requires a 2.6 kernel with appropriate headers."

So I tried to find on the net a compatibility matrix for linux / gcc /
glibc. I mean something like linux V2.4.36-2 will work with gcc
V3.4.6 and glibc V2.3.6. Until now I haven't been able to find
something clear. I would appreciate if somebody could point me to such
a information.

Thanks,
StephanT.

Paul Pluzhnikov

unread,
Apr 10, 2008, 12:42:43 AM4/10/08
to
stman9...@yahoo.com writes:

> So I tried to find on the net a compatibility matrix for linux / gcc /
> glibc. I mean something like linux V2.4.36-2 will work with gcc
> V3.4.6 and glibc V2.3.6. Until now I haven't been able to find
> something clear. I would appreciate if somebody could point me to such
> a information.

You are unlikely to find such matrix, and if you do, it is very
unlikely to be correct:

- There is no such thing as "linux V2.4.36-2" or "2.4.21-50".
There are unpatched versions 2.4.21 and 2.4.36.2, but -50 implies
local patches from whichever distribution you are using.

- In general, NPTL requires 2.6.x kernels. But RedHat back-ported
a lot of required changes to 2.4.x, and has been shipping NPTL
glibc since RedHat 9.0 (kernel 2.4.20; but that's not really
2.4.20, it's 2.4.20 + redhat patches).

- Other distributors may apply different set of patches, may
name their kernels whatever they want, etc. etc.

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.

stman9...@yahoo.com

unread,
Apr 13, 2008, 10:00:06 PM4/13/08
to
Thank you Paul !

> You are unlikely to find such matrix, and if you do, it is very
> unlikely to be correct:

This is a valuable information :o) - helps me to build my own
compatibility table.

The 2.4.36.2 I had mention in my previous post is downloaded from the
kernel dot org. I built it on top of an
old RedHat 2.4.21-50EL and I tried to update my GNU tools to the
latest... Wrong decision!

After some build experiences plus what you say and what I see on the
net a "raw" 2.4 will work at the best with:
- binutils V2.16
- gcc V3.4.6 and
- glibc V2.3.6

Any higher versions of GNU tools will require 2.6 to make NPTL happy.
Am I right?

Ciao,
/st

0 new messages