View Full Version : kernel module compilation error

May 2nd, 2007, 09:07 AM

Whenever I tried to compile may test kernel module the following problem will come, so anybody help me to figure out this problem excatly what's this.

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?