LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 03: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, 07:08 PM   #2
Peacedog
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.
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, 12: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



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 08:28 PM
compile kernel module got version mismatched? blackzone Programming 1 11-07-2004 09:41 PM
using gnu c compiler to compile objective c qanopus Linux - Software 1 10-20-2003 11:06 AM
Compile linux kernel using icc (intel c compiler) galad Linux - General 4 07-09-2003 06:56 AM
GNU libc installation to setup cross compiler env - kernel header file TOO OLD !! tanch00 Linux - Software 1 02-06-2002 02:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:51 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
Open Source Consulting | Domain Registration