-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Phil Sexton wrote:
> Ernie Schroder wrote:
> 
>> On Friday 27 January 2006 10:41, a tiny voice compelled Phil Sexton to
>> write:
>>
>>> Ernie Schroder wrote:
>>>
>>>> I used to know this but I can't find info today. How do I tell which
>>>> version of gcc was used to compile my kernel?
>>>
>>>
>>> This should do it:
>>> gcc -v
>>>
>>
>>
>> Maybe I wasn't clear enough Phil, I suspected that my kernel was built
>> with an old gcc and my nvidia modules with my current version
>> (gcc-3.4.4-r1).
>> Andres' suggestion (cat /proc/version) was what I needed.
>>
>> $ cat /proc/version
>> <snip>
>> (gcc version 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8)) #1 Fri
>> Dec 9 15:39:27 EST 2005
> 
> 
> I most likely don't fully understand the difference between the
> two/three commands and I was going by a vague memory from a couple of
> years back.
> 
> Could someone expound on these 3 commands?  I don't really understand
> the man and info pages on these.
> 
> gcc -v
> gcc --version
> (I thought the previous two were the same.)
> cat /proc/version
> 
> Does one or more show the currently being used gcc and another show a
> previous version used for some other earlier compile(s)?
> 
> TIA
> 

Well, you can have upgraded GCC and have compiled your RUNNING kernel
with your old gcc version.

If you run `gcc -v` you only will get your NEW gcc version, but he
wanted to know with which version did he compile his kernel, and is not
with `gcc -v`. You can check it out with `cat /proc/version`.

Bye,
Rafael Fernández López.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFD2mUZ9RRlaicc3IERAviSAJ4qEinUJ/Ymwe+ZCQdw2DRcLaWA3gCfe5wE
r2HLnubJjueN7v3cyY0/4b4=
=Qqt5
-----END PGP SIGNATURE-----
-- 
gentoo-user@gentoo.org mailing list

Reply via email to