i already comment the never include bits/setjmp.h
tried many command to make module, how to make for the file include <bits/setjmp.h> ?
for try and catch exception in module
wonder@wonder-VirtualBox:~/layer$ sudo make -C /usr/src/linux-headers-3.8.0-29-generic hello.c M=/home/wonder/layer modules
make: Entering directory `/usr/src/linux-headers-3.8.0-29-generic'
make: Nothing to be done for `/home/wonder/layer/hello.c'.
CC [M] /home/wonder/layer/hello.o
/home/wonder/layer/hello.c:10:25: fatal error: bits/setjmp.h: No such file or directory
compilation terminated.
make[1]: *** [/home/wonder/layer/hello.o] Error 1
make: *** [_module_/home/wonder/layer] Error 2
make: Leaving directory `/usr/src/linux-headers-3.8.0-29-generic'
wonder@wonder-VirtualBox:~/layer$ sudo make -C /usr/src/linux-headers-3.8.0-29-generic -C /usr/include/i386-linux-gnu/sys -C /usr/include/i386-linux-gnu hello.c M=/home/wonder/layer modules
make: Entering directory `/usr/include/i386-linux-gnu'
make: *** No rule to make target `hello.c'. Stop.
make: Leaving directory `/usr/include/i386-linux-gnu'
wonder@wonder-VirtualBox:~/layer$
Makefile
Code:
ccflags-y += -pg # enable profiling
obj-m += hello.o
hello.o:
make -o hello -C /usr/src/linux-headers-3.8.0-29-generic -C /usr/include/i386-linux-gnu/sys -C /usr/include/i386-linux-gnu M=$(PWD) modules
clean:
make -C /usr/src/linux-headers-3.8.0-29-generic -C /usr/include/i386-linux-gnu/sys M=$(PWD) clean