[yocto] [Yocto] [PULL] devel/toolchain Recipes upgrades

Richard Purdie rpurdie at linux.intel.com
Tue Nov 9 15:31:58 PST 2010


On Tue, 2010-11-09 at 09:18 -0600, Mark Hatle wrote:
> On 11/9/10 12:12 AM, Bruce Ashfield wrote:
> > On 10-11-08 7:41 PM, Kamble, Nitin A wrote:
> >> From: Bruce Ashfield [mailto:bruce.ashfield at windriver.com]
> >>
> >> Out of curiosity. What's the logic/requirement behind this
> >> change ? Since we don't have a 'supported' 2.6.36 kernel, using
> >> these would be a mismatch with what is actually booting on
> >> the targets.
> >>
> >> There's probably something I just don't understand here, so
> >> apologies in advance for the (potentially) dumb question.
> >>
> >>      AFAIU the linux-libc-headers are independent from the running kernel. These are headers for libc.
> >
> > But they aren't. The libc headers should be coupled to the
> > kernel version. New ABIs are established and glibc can detect
> > and deal with this, but you should never have a newer set of
> > headers than the running kernel.
> >
> > To say the least, I'd like more explanation of this change.
> 
> I agree with Bruce here.  If anything the linux-libc-headers should be the same 
> or OLDER then the running kernel for this exact reason.  It's quite dangerous 
> for newer kernel headers, as they may trigger behavioral differences within the 
> glibc configuration.

When you compile [e]glibc you specify the oldest kernel you wish to
support. As far as I know it is safe to use a recent set of kernel
headers to build [e]glibc and then use older kernels with it. I have
never seems a problem caused directly by kernel versions unless it was
related to ABI changes or massive kernel version differences (2.4
kernels on a 2.6 optimised glibc, compiled with 2.6 as the oldest kernel
it would support).

I'm therefore ok in general with keeping linux-libc-headers tracking the
most recent kernels and letting the toolchain optionally support
features from the most recent kernel.

If I'm missing something or anyone has experience of this causing
problems I'd be interested to learn about it though.

Cheers,

Richard




More information about the yocto mailing list