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.
AutoModerator@reddit
This submission has been removed due to receiving too many reports from users. The mods have been notified and will re-approve if this removal was inappropriate, or leave it removed.
This is most likely because:
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
macromorgan@reddit
Can you paste more of the error?
After you copy your current config to .config try running “make olddefconfig” then run “make menuconfig”. olddefconfig updates your .config file with the default values for anything that’s changed.
Do that, and try to paste as much of the error if you can. Ideally see if it’s a specific module or c file that’s failing.
LinkStormer@reddit (OP)
plus, make olddefconfig shows these error messages:
LinkStormer@reddit (OP)
that's the whole error, the rest of the output was "X thing compiled" and then the aforementioned error as it shows on the text
Ok_Exchange4707@reddit
Try
rm .config make oldconfig
Then if you want to change anything, make menuconfig
LinkStormer@reddit (OP)
done, now it shows many questions about "Build ID Salt" and other kernel stuff, what do i do?