|
|
(Knoppix-ish) Determining version of gcc that a kernel was compiled with
This is posed as a general question: Suppose you have a kernel and
a running system that is running that kernel, and you need to know with
which version of gcc it was compiled. Is there a way to do this?
Note that I am *not* talking about what version of the kernel; I'm talking
about what version of gcc.
|
|
0
|
|
|
|
Reply
|
gazelle (565)
|
12/18/2003 6:14:00 PM |
|
> cat /proc/version
Linux version 2.4.23 (root@abit) (gcc version 2.96 20000731 (Red Hat Linux
7.3 2.96-113)) #4 Sat Nov 29 22:51:37 PST 2003
> gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
Kenny McCormack wrote:
> This is posed as a general question: Suppose you have a kernel and
> a running system that is running that kernel, and you need to know with
> which version of gcc it was compiled. Is there a way to do this?
> Note that I am *not* talking about what version of the kernel; I'm talking
> about what version of gcc.
>
|
|
0
|
|
|
|
Reply
|
NotARealAddress1 (4)
|
12/18/2003 6:52:01 PM
|
|
In article <lHmEb.12$QV5.7@newsread2.news.atl.earthlink.net>,
emilio lazardo <NotARealAddress@spam.this> wrote:
> > cat /proc/version
>Linux version 2.4.23 (root@abit) (gcc version 2.96 20000731 (Red Hat Linux
>7.3 2.96-113)) #4 Sat Nov 29 22:51:37 PST 2003
Yup! That's the magic bullet. I thought this information used to be
displayed by "uname", but that seems not to be the case.
> > gcc -v
>Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
>gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
I knew this, of course. Note that on (the 11/19/03 - AFAIK, current
version) Knoppix, the kernel is compiled with a version different from the
(default) gcc (*).
(*) Yes, I know that gcc-2.95 is also there.
|
|
0
|
|
|
|
Reply
|
gazelle (565)
|
12/18/2003 9:41:38 PM
|
|
|
2 Replies
47 Views
(page loaded in 0.255 seconds)
|
|
|
|
|
|
|
|
|