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

Re: Proprietary kernel module with Debian i386 system and AMD64 kernel



[..]

> > Now, I have another problem with it:
> > 
> > XserverY:~/aksparlnx-1.6-x86_64# make kernel26
> > make -C /usr/src/kernel-headers-2.6.8-11-amd64-k8/ here=$(pwd)/ SUBDIRS=
> > $(pwd) modules
> > make[1]: Entering directory `/usr/src/kernel-headers-2.6.8-11-amd64-k8'
> >   CC [M]  /root/aksparlnx-1.6-x86_64/aksparpub.o
> > cc1: error: code model `kernel' not supported in the 32 bit mode
> > make[2]: *** [/root/aksparlnx-1.6-x86_64/aksparpub.o] Error 1
> > make[1]: *** [_module_/root/aksparlnx-1.6-x86_64] Error 2
> > make[1]: Leaving directory `/usr/src/kernel-headers-2.6.8-11-amd64-k8'
> > make: *** [kernel26] Error 2
> > 
> > I guess this is because the compiler should try to cross-compile it. How
> > can I get out of this?
> > If it helps, I have acces to other Debian AMD64-installed machines.
> 
> I tried the following, without much success:
> CC="gcc-3.4 -m64" ARCH="x86_64" make kernel26

I could get it to build in an AMD64 chroot finally, but using this
command instead:
make CC=gcc-3.4 ARCH=x86_64 kernel26

> > Thanks
> > 
> > [..]



Reply to: