LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   GNU compiler version used to compile a kernel (https://www.linuxquestions.org/questions/linux-newbie-8/gnu-compiler-version-used-to-compile-a-kernel-584932/)

cricballa 09-15-2007 03:18 PM

GNU compiler version used to compile a kernel
 
I need to build a device driver using the same version of GNU compiler as was used to compile the kernel. How could I know the version of Gnu ompiler that was used to compile my kernel?

cric

Peacedog 09-15-2007 07:08 PM

Hi cricballa, Welcome to lq. I think this will do it.
Code:

peacedog@peacedog:~$ cat /proc/version
Linux version 2.6.21.5-smp (root@midas) (gcc version 4.1.2) #2 SMP Tue Jun 19 14:58:11 CDT 2007

I hope that's what you're looking for.
Good luck. ;-)

cricballa 09-29-2007 12:28 AM

Thanks Peacedog. This was it. I get my version numbers.
cric


All times are GMT -5. The time now is 02:07 AM.