-   Linux - Newbie (
-   -   changing gcc versions (

SirRobbin 08-27-2003 10:54 AM

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

All times are GMT -5. The time now is 09:33 AM.