reg: modules make in Ubuntu
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
Quoted 9 lines · Tej Parkash
make[1]: Entering directory `/usr/src/linux-headers-2.6.20-15-generic'
CHKinclude/linux/version.h
CHKinclude/linux/utsrelease.h
make[2]: *** No rule to make targetarch/i386/kernel/msr.c', needed byarch/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
Quoted 10 lines · Sam Ravnborg
Quoted 9 lines · Tej Parkash
make[1]: Entering directory `/usr/src/linux-headers-2.6.20-15-generic'
CHKinclude/linux/version.h
CHKinclude/linux/utsrelease.h
make[2]: *** No rule to make targetarch/i386/kernel/msr.c', needed byarch/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
-> .configSam
thanks
tej