On Friday 27 January 2006 13:23, a tiny voice compelled Rafael Fernández López 
to write:
> 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.

The bottom line is that I couldn't get the nvidia module to load. I checked my 
emerge log and I had updated gcc and nvidia-kernel on the same day. What I 
forgot to take into account is that after udating my compiler, (unless, of 
course I upgraded with the --emptytree flag, I would still be compiling my 
nvidia-kernel with the old gcc-3.3.x
I have a brand new kernel and have recompiled nvidia-kernel. I can now load 
the module correctly and use it instead of "nv" Thanks again.
-- 
Regards, Ernie

-- 
gentoo-user@gentoo.org mailing list

Reply via email to