Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Got error: No rule to make target while compiling linux Kernel

I am trying to compile my linux Kernel, after customizing my kernel configuration, I taped the command make to start compiling but an error occurs as follows:

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 Please

like image 378
asma Avatar asked Sep 01 '13 09:09

asma


People also ask

Where is the kernel config file?

The kernel configs are stored in the kernel/configs repo. Kernel configuration settings that must be present for Android to function are located in the base config fragment, android-base. config .


1 Answers

To build the Linux kernel for Ubuntu,
one can obtain the proper patched sources by running the command,

sudo apt-get install linux-source

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

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

like image 159
TheCodeArtist Avatar answered Sep 28 '22 16:09

TheCodeArtist