Results 1 to 3 of 3
hay dude
I'm trying to build my own kernel module.
source file is ok but the problem is the Makefile.
when I run the "make" command, It's not properly compiled ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-27-2007 #1
Error in own Module compilation // Makefile error
hay dude
I'm trying to build my own kernel module.
source file is ok but the problem is the Makefile.
when I run the "make" command, It's not properly compiled and give the error message like following
make -C /lib/modules/2.6.15-26-amd64-generic/build SUBDIR=/home/vecima11/Desktop/module modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.15-26-amd64-generic'
CHK include/linux/version.h
/bin/sh: include/linux/version.h.tmp: Permission denied
UPD include/linux/version.h
mv: cannot stat `include/linux/version.h.tmp': No such file or directory
make[1]: *** [include/linux/version.h] Error 1
make[1]: Leaving directory `/usr/src/linux-headers-2.6.15-26-amd64-generic'
make: *** [default] Error 2
can anybody help me out for find the solution of this error.
cheers,
Linux is Rocking
- 04-27-2007 #2
Hay dude
I solved the last problem but now I'm getting error like following
make -C /lib/modules/2.6.15-26-amd64-generic/build SUBDIR=/home/vecima11/Desktop/module modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.15-26-amd64-generic'
CHK include/linux/version.h
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/split-include
HOSTCC scripts/basic/docproc
SPLIT include/linux/autoconf.h -> include/config/*
HOSTCC scripts/genksyms/genksyms.o
HOSTCC scripts/genksyms/lex.o
HOSTCC scripts/genksyms/parse.o
HOSTLD scripts/genksyms/genksyms
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/kallsyms
HOSTCC scripts/conmakehash
make[2]: *** No rule to make target `arch/x86_64/kernel/../../i386/kernel/cpuid.o', needed by `arch/x86_64/kernel/msr.o'. Stop.
make[1]: *** [arch/x86_64/kernel] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.15-26-amd64-generic'
make: *** [default] Error 2
can anybody tell me what's the problem with compilation?
is dat problem with architecture or what?
cheer,
S
- 05-04-2007 #3


Reply With Quote

