Re: Compiling a kernel module. gcc-3.3 vs. gcc-3.4
I was having this same problem, even though I had both gcc-3.3 and gcc-3.4
installed. The problem was only in the link of /usr/bin/gcc. You should have
gcc-3.4 installed (avvailable in etch), and make sure that the link at
/usr/bin/gcc points to /usr/bin/gcc-3.4. Once that is done, modules will build
against gcc 3.4 and you will be able to insert them without problem.
jamie.
On Fri, Oct 14, 2005 at 05:28:02PM +0100, James Hansen wrote:
> 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: