On Jun 24, 2007, at 9:32 PM, ganesh subramonian wrote:
I have a very basic doubt regarding gcc,binutils and kernel.
How closely tied are the linux kernel version and the gcc/glibc
versions?
Versions of gcc are never (much) dependent on kernel versions. They
are rarely dependent on glibc versions, and loosely dependent on
binutil versions. For binutils dependencies, you'd want to ask on a
binutils list, though, doubt you'd have to worry much about it, as
long as you aren't trying to compile with gcc-1.27 or something weird
like that. For glibc, you'll want to consult it's documentation and
be sure to use a recommended gcc version, same with the kernel.
What kind of changes usually require that version x of kernel
requires version y of binutils and gcc-z.
Bugs.
And is there any relation between compiler version used for kernel
and application compilation??
No.
For eg: can i run a system with linux-2.4.20 kernel (compiled with
gcc-2.95) and have applications compiled with gcc-4 running on it?
Yes.