Error received: there is no rule to create a target when compiling linux Kernel

I try to compile my linux Kernel after configuring my kernel configuration, I wrote a make command to start compilation, but an error occurred:

asma@ubuntu :/usr/src/linux$ make make[1]: *** No rule to make target `/usr/src/linux-headers-3.5.0-23/arch/x86/syscalls/syscall_32.tbl', needed by `arch/x86/syscalls/../include/generated/asm/unistd_32.h'. Stop. make: *** [archheaders] Error 2 

How can I fix this problem?

+6
source share
1 answer

To create the Linux kernel for Ubuntu,
you can get the correct corrected sources by running the command,

 sudo apt-get install linux-source 

(in older versions of Ubuntu, the package name was linux-tree )

Sources are installed in /usr/src/linux-source-<version-num>/ .

+5
source

Source: https://habr.com/ru/post/952918/


All Articles