Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-15-2007, 04:18 PM   #1
Registered: Jan 2007
Posts: 33

Rep: Reputation: 15
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?

Old 09-15-2007, 08:08 PM   #2
LQ Guru
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Hi cricballa, Welcome to lq. I think this will do it.
peacedog@peacedog:~$ cat /proc/version
Linux version (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. ;-)
Old 09-29-2007, 01:28 AM   #3
Registered: Jan 2007
Posts: 33

Original Poster
Rep: Reputation: 15
Thanks Peacedog. This was it. I get my version numbers.


compiler, gnu, versions

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm about to compile a kernel... but what version should I use... 2.4.29 or 2.6.10??? Shagrath239 Slackware 8 02-13-2005 09:28 PM
compile kernel module got version mismatched? blackzone Programming 1 11-07-2004 10:41 PM
using gnu c compiler to compile objective c qanopus Linux - Software 1 10-20-2003 12:06 PM
Compile linux kernel using icc (intel c compiler) galad Linux - General 4 07-09-2003 07:56 AM
GNU libc installation to setup cross compiler env - kernel header file TOO OLD !! tanch00 Linux - Software 1 02-06-2002 03:33 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:52 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration