LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 09-15-2007, 04:18 PM   #1
cricballa
Member
 
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?

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

Rep: Reputation: 168Reputation: 168
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. ;-)
 
Old 09-29-2007, 01:28 AM   #3
cricballa
Member
 
Registered: Jan 2007
Posts: 33

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


Reply

Tags
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 schatoor 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


All times are GMT -5. The time now is 04:48 PM.

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