1 |
Ernie Schroder wrote: |
2 |
> On Friday 27 January 2006 10:41, a tiny voice compelled Phil Sexton to write: |
3 |
> |
4 |
>>Ernie Schroder wrote: |
5 |
>> |
6 |
>>>I used to know this but I can't find info today. How do I tell which |
7 |
>>>version of gcc was used to compile my kernel? |
8 |
>> |
9 |
>>This should do it: |
10 |
>>gcc -v |
11 |
>> |
12 |
> |
13 |
> |
14 |
> Maybe I wasn't clear enough Phil, I suspected that my kernel was built with an |
15 |
> old gcc and my nvidia modules with my current version (gcc-3.4.4-r1). |
16 |
> Andres' suggestion (cat /proc/version) was what I needed. |
17 |
> |
18 |
> $ cat /proc/version |
19 |
> <snip> |
20 |
> (gcc version 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8)) #1 Fri Dec 9 |
21 |
> 15:39:27 EST 2005 |
22 |
|
23 |
I most likely don't fully understand the difference between the |
24 |
two/three commands and I was going by a vague memory from a |
25 |
couple of years back. |
26 |
|
27 |
Could someone expound on these 3 commands? I don't really |
28 |
understand the man and info pages on these. |
29 |
|
30 |
gcc -v |
31 |
gcc --version |
32 |
(I thought the previous two were the same.) |
33 |
cat /proc/version |
34 |
|
35 |
Does one or more show the currently being used gcc and another |
36 |
show a previous version used for some other earlier compile(s)? |
37 |
|
38 |
TIA |
39 |
|
40 |
-- |
41 |
Phil |
42 |
My Home Page: http://fancypiper.info |
43 |
Our 2nd CD: http://www.cdbaby.com/naomisfancy |
44 |
Naomi's Fancy performances: |
45 |
http://naomisfancy.virtualave.net/schedule.html |
46 |
-- |
47 |
gentoo-user@g.o mailing list |