I try to compile Linux kernel 6.8.12 on Ubuntu 24.04. I installed required package to compile, unzipped the tar file from kernel.org and took a config file from /boot to execute make menuconfig to produce my .config. Then, I did make -j4; on
CC [M] kernel/kheaders.o,
I got that:
make[1]: *** [/home/lemste/depotgit/ubuntu_kernel/linux-6.8.12/Makefile:1921 : .] Erreur 2
make: *** [Makefile:240 : __sub-make] Erreur 2
I did the same on a linux-6.12.32 kernel, always on Ubuntu, I got the same; BUT on Debian 12 with linux-6.12.30 kernel, I managed to build the kernel and to install it.
Is there a special step I have to do with Ubuntu in order to compile successfully the kernel (like replace Ubuntu by Debian)?
ENOENT No such file or directory. Did you readREADME*? Did you./Configureormake menuconfigfirst? Have yousudo apt install build-essential?