[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Compiling a kernel module. gcc-3.3 vs. gcc-3.4



As far as I know, the kernel and its modules need to be build with the same version of gcc. If your kernel was build with 3.4 (see /proc/version), then you need to download gcc-3.4 and compile the modules with gcc-3.4. You'll need to either chance the symbolic link of /usr/bin/gcc to gcc-3.4 or change your comile options.


----- Original Message ----- From: "James Hansen" <jhansen@ncipher.com>
To: <debian-amd64@lists.debian.org>
Sent: Friday, October 14, 2005 11:28 AM
Subject: Compiling a kernel module. gcc-3.3 vs. gcc-3.4


I'm having problems building and installing a kernel module for the amd64 port of debian.

It seems that debian is shipped with gcc-3.3 as it's compiler, but it looks like the amd64 kernel is built with gcc-3.4

(from a syslog message I'm getting when I modprobe a driver)

Oct 14 16:54:39 localhost kernel: mydriver: version magic '2.6.8-11-amd64-generic gcc-3.3' should be '2.6.8-11-amd64-generic gcc-3.4'

Is this actually the case, and if so is this going to continue when this becomes an official debian distribution?

Oh, and also what can I do about this? Do I have to fetch gcc-3.4 to build kernel modules? (Or rebuild my kernel with gcc-3.3)

Thanks people.

James


--
To UNSUBSCRIBE, email to debian-amd64-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org





Reply to: