Skip to contentSkip to conversation

reg: modules make in Ubuntu

DISCUSSION Tej Parkash 2 participants 3 messages May 26, 2007

lore
Share & tools
lore
#0 lore raw

make[1]: Entering directory `/usr/src/linux-headers-2.6.20-15-generic'
CHK include/linux/version.h
CHK include/linux/utsrelease.h
make[2]: *** No rule to make target arch/i386/kernel/msr.c', needed by arch/i386/kernel/msr.o'. Stop.
make[1]: *** [arch/i386/kernel] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-15-generic'
make: *** [all] Error 2

what the hack is this. no kernel version is having this file in this particular location as asked in error. then why this error is coming in this kernel version.

TEJ

#1 lore raw
Quoted 9 lines · Tej Parkash

make[1]: Entering directory `/usr/src/linux-headers-2.6.20-15-generic'
CHK include/linux/version.h
CHK include/linux/utsrelease.h
make[2]: *** No rule to make target arch/i386/kernel/msr.c', needed by arch/i386/kernel/msr.o'. Stop.
make[1]: *** [arch/i386/kernel] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-15-generic'
make: *** [all] Error 2

Quoted 3 lines

what the hack is this. no kernel version is having this file in this particular location as asked in error. then why this error is coming in this kernel version.

Looks like you are trying to build a kernel but have only headers judging from the directoryname.

Could you please prove a bit more context if you need additional help. Like (but not limited to):
-> Actual commandline
-> Any own kbuild/Makefiles
-> .config

Sam

#2 lore raw
Quoted 10 lines · Sam Ravnborg
Quoted 9 lines · Tej Parkash

make[1]: Entering directory `/usr/src/linux-headers-2.6.20-15-generic'
CHK include/linux/version.h
CHK include/linux/utsrelease.h
make[2]: *** No rule to make target arch/i386/kernel/msr.c', needed by arch/i386/kernel/msr.o'. Stop.
make[1]: *** [arch/i386/kernel] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-15-generic'
make: *** [all] Error 2

Quoted 5 lines
Quoted 3 lines

what the hack is this. no kernel version is having this file in this particular location as asked in error. then why this error is coming in this kernel version.

Looks like you are trying to build a kernel but have only headers judging from the directoryname.

yaa u r correct
but i am wondering like how those file can be missed from the required location. if they are so important to build the module.. even if it is missed is there any other procedure to build the module
i am trying it on other kernel version.

Quoted 9 lines

Could you please prove a bit more context if you need additional help. Like (but not limited to):
-> Actual commandline
-> Any own kbuild/Makefiles
-> .config

Sam

thanks
tej