LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-27-2003, 09:54 AM   #1
SirRobbin
LQ Newbie
 
Registered: May 2003
Location: State College, PA
Distribution: Red Hat 8.0
Posts: 17

Rep: Reputation: 0
changing gcc versions


I recently recompiled a kernel to patch in a driver. The readme for the driver said to

insmod doc

after compiling. Here's the error I got:

Using /lib/modules/2.4.21/kernel/drivers/block/doc/doc.o
/lib/modules/2.4.21/kernel/drivers/block/doc/doc.o: The modules you are trying to load (/lib/modules/2.4.21/kernel/drivers/block/doc/doc.o) is compiled with a gcc version 2 compiler, while the kernel you are running is compiled with a gcc version 3 compiler. This is not known to work.

So from this error I'm assuming that I need to recompile the kernel with a gcc version 2 compiler in order to get this module to load.

My question is how do you specify what gcc version you want to use?

gcc is currently in /usr/lib/gcc-lib/i386-redhat-linux/3.2
and /usr/lib/gcc-lib/i386-Ada-linux/2.8.1
 
  


Reply



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
Need Two Versions of gcc on FC4 yellowdognerd Linux - Software 9 09-09-2005 12:46 PM
Is it possible to have two different versions of GCC in the same system ?? nasty_daemon Linux - Software 2 09-07-2005 10:49 AM
Two gcc Versions On The Same Installation? Xian Debian 4 08-16-2005 02:07 AM
multiple versions of gcc Avatar33 Linux - General 3 02-22-2005 02:06 PM
Can you have two different versions of gcc on the same system? the theorist Linux - Software 1 02-23-2004 04:53 PM

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

All times are GMT -5. The time now is 04:36 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