* Kernel Module Compilation error
@ 2014-04-14 21:56 Arun M Kumar
2014-04-14 16:32 ` Pranay Kr. Srivastava
2014-04-14 16:58 ` Valdis.Kletnieks at vt.edu
0 siblings, 2 replies; 3+ messages in thread
From: Arun M Kumar @ 2014-04-14 21:56 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Kernel Module Compilation error
2014-04-14 21:56 Kernel Module Compilation error Arun M Kumar
@ 2014-04-14 16:32 ` Pranay Kr. Srivastava
2014-04-14 16:58 ` Valdis.Kletnieks at vt.edu
1 sibling, 0 replies; 3+ messages in thread
From: Pranay Kr. Srivastava @ 2014-04-14 16:32 UTC (permalink / raw)
To: kernelnewbies
On April 15, 2014 3:26:14 AM GMT+05:30, Arun M Kumar <arunkr.linux@gmail.com> wrote:
>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.
>
Your linux-stable is build right? If not try to build it first then compile your module.
> 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*
>
This is your running /installed kernel not the one you are building it against.
>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*
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Kernelnewbies mailing list
>Kernelnewbies at kernelnewbies.org
>http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Kernel Module Compilation error
2014-04-14 21:56 Kernel Module Compilation error Arun M Kumar
2014-04-14 16:32 ` Pranay Kr. Srivastava
@ 2014-04-14 16:58 ` Valdis.Kletnieks at vt.edu
1 sibling, 0 replies; 3+ messages in thread
From: Valdis.Kletnieks at vt.edu @ 2014-04-14 16:58 UTC (permalink / raw)
To: kernelnewbies
On Tue, 15 Apr 2014 03:26:14 +0530, Arun M Kumar said:
> /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
> what could be the possible cause of this error?
Based on the error messages, I'd say you're trying to compile in 64-bit mode
with a compiler build to support only 32-bit, or similar.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140414/5d0137d3/attachment.bin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-04-14 21:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-14 21:56 Kernel Module Compilation error Arun M Kumar
2014-04-14 16:32 ` Pranay Kr. Srivastava
2014-04-14 16:58 ` Valdis.Kletnieks at vt.edu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).