0

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)?

3
  • 2
    "Error 2' is ENOENT No such file or directory. Did you read README*? Did you ./Configure or make menuconfig first? Have you sudo apt install build-essential? Commented Jun 6, 2025 at 23:27
  • I did make menuconfig. I installed build-essential. I have now to read REAME and tell Ubuntu I read them... Commented Jun 7, 2025 at 23:19
  • Btw I did the compile on Debian and it worked. Maybe README will tell me Ubuntu is so much different. Commented Jun 7, 2025 at 23:21

1 Answer 1

1

I got my answer. I had to generate a key and then specify it in the .config file - or to disable the key. Here the url that helped me : https://stackoverflow.com/questions/67670169/compiling-kernel-gives-error-no-rule-to-make-target-debian-certs-debian-uefi-ce

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.