Article 566TT Error compiling Linux-kernel - "make: *** No rule to make target. Stop."

Error compiling Linux-kernel - "make: *** No rule to make target. Stop."

by
Teso
from LinuxQuestions.org on (#566TT)
After Ubuntu 19.10 carried an update/upgrade, the Linux-kernel was updated to version "linux-5.3.0-xx-generic". I uninstalled it with the command:
Code:apt remove --purge *5.3.0-xx* && apt autoremove && apt autocleanI have uninstalled kernels this way many times and never had a problem, everything worked fine.
Now when I try to compile a kernel, I get this error message:
Code:root@linux:/usr/src# make O-/build/linux-kernel/linux-5.7.10-test/ makemenuconfig
make: *** No rule to make target 'O-/build/linux-kernel/linux-5.7.10-test/'. Stop.Apparently files that were needed for compilation were deleted.
I'm not sure how to fix it...

--EDIT--

Before anyone asks this question...
Yes, i installed the necessary dependencies.
Quote:
Originally Posted by ~/linux-5.7.10/Documentation/process/changes.rst.
GNU C..................4.6..............gcc --version
GNU make...............3.81.............make --version
binutils...............2.23.............ld -v
flex...................2.5.35...........flex --version
bison..................2.0..............bison --version
util-linux.............2.10o............fdformat --version
kmod...................13...............depmod -V
e2fsprogs..............1.41.4...........e2fsck -V
jfsutils...............1.1.3............fsck.jfs -V
reiserfsprogs..........3.6.3............reiserfsck -V
xfsprogs...............2.6.0............xfs_db -V
squashfs-tools.........4.0..............mksquashfs -version
btrfs-progs............0.18.............btrfsck
pcmciautils............004..............pccardctl -V
quota-tools............3.09.............quota -V
PPP....................2.4.0............pppd --version
nfs-utils..............1.0.5............showmount --version
procps.................3.2.0............ps --version
oprofile...............0.9..............oprofiled --version
udev...................081..............udevd --version
grub...................0.93.............grub --version.||.grub-install.--version
mcelog.................0.6..............mcelog --version
iptables...............1.4.2............iptables -V
openssl & libcrypto....1.0.0............openssl.version
bc.....................1.06.95..........bc.--version
Sphinx\ [#f1]_.........1.3..............sphinx-build --version
latest?d=yIl2AUoC8zA latest?i=z4NVjtC9jHI:SVs0Z1zBf2I:F7zBnMy latest?i=z4NVjtC9jHI:SVs0Z1zBf2I:V_sGLiP latest?d=qj6IDK7rITs latest?i=z4NVjtC9jHI:SVs0Z1zBf2I:gIN9vFwz4NVjtC9jHI
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments