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:


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 |