Error: make: *** [makefile:224: __sub-make] Error 2 While Compiling Linux 6.11.7 Kernel

Posted by LinkStormer@reddit | linux | View on Reddit | 6 comments

I am compiling the most recent linux kernel on a Peppermint OS Virtual Machine for a scholar project, while also documenting everything i do for the kernel getting compiled. After waiting 4-5 hours to compile the kernel, the following error pops up and closes the script

make : *** [makefile:224: __sub-make] Error 2

The whole process so far is the following:

sudo apt update sudo apt install -y build-essential libncurses-dev bison flex libssl-dev libelf-dev zlib1g-dev

mkdir kernelbuild && cd kernelbuild
wget https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.11.7.tar.xz
tar -xf linux-6.11.7.tar.xz
cd linux-6.11.7

sudo cp /boot/config-$(uname -r) .config
make menuconfig

make -j2

Tried searching about that same error but it only redirects me to XDA for android topics and r/Gentoo for an error message that includes more error codes rather than only the Error 2

I don't know what else to do and my classmates don't know either what can be the problem. ¿Could you please help me?

I did the same commands from before, expecting to have my kernel compiled in 2 hours and finished so i could continue my project.