Kernel Module Compilation error

Arun M Kumar arunkr.linux at gmail.com
Mon Apr 14 17:56:14 EDT 2014


Hi,

     I get the following error while compiling my very basic kernel 
Module (a hello world module)

*
//--------------------------------------------------------------------------------------------------------------*
make -C /home/arun/Dev/linux-stable M=/home/arun/Dev/practice/Kmodules 
modules
make[1]: Entering directory `/home/arun/Dev/linux-stable'

   WARNING: Symbol version dump /home/arun/Dev/linux-stable/Module.symvers
            is missing; modules will have no dependencies and modversions.

   CC [M]  /home/arun/Dev/practice/Kmodules/Hello_world.o
/home/arun/Dev/practice/Kmodules/Hello_world.c:1:0: error: code model 
'kernel' not supported in the 32 bit mode
/home/arun/Dev/practice/Kmodules/Hello_world.c:1:0: sorry, 
unimplemented: 64-bit mode not compiled in
make[2]: *** [/home/arun/Dev/practice/Kmodules/Hello_world.o] Error 1
make[1]: *** [_module_/home/arun/Dev/practice/Kmodules] Error 2
make[1]: Leaving directory `/home/arun/Dev/linux-stable'
make: *** [all] Error 2
*//-----------------------------------------------------------------------------------------------------------------*

what could be the possible cause of this error?

on my system

*$uname -a*

returns the following..

*Linux linux-xh55.site 3.4.6-2.10-desktop #1 SMP PREEMPT Thu Jul 26 
09:36:26 UTC 2012 (641c197) i686 i686 i386 GNU/Linux*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140415/824dc2a5/attachment.html 


More information about the Kernelnewbies mailing list