I have Ubuntu 16.04 LTS installed and have installed linux-headers. I am in the middle of trying to build uClibc-ng and it needs the linux headers. So when I run the following command from the linux-headers directory I get the following error messages. What step am I missing?
sudo make INSALL_HDR_PATH=/tmp/linux-headers headers_install CHK include/generated/uapi/linux/version.h UPD include/generated/uapi/linux/version.h make: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl' needed by 'arch/x86/entry/syscalls/../include/generated/asm/syscalls_32.h'. Stop. arc/x86/Makefile:216: recipe for target 'archheaders' failed. make: *** [archheaders] Error 2
I created a new VM to play with, and its
uname -a is:
Linux ubuntu 4.15.0-46-generic #49~16.04.1-Ubuntu SMP Tue Feb 12 17:45:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
- What is the difference between
- On my VM I have 2 sets
linux-headerdirectories. One with
4.14.0-29and one with
4.14.0-46. Within each of those sets is 2 directories. One with and one without
-generic. Do I need to maintain both of these sets?
- Does anyone know of any instructions of what steps need to be performed on a fresh 16.04 Ubuntu image in order to be able to get the linux-headers?