Kernel compilation fails when removing source and build directory. 6.4.y
How do I fix this compilation error?
----- rm: cannot remove: .../modules/6.4.11-1/source: No such file or directory rm: cannot remove: .../modules/6.4.11-1/build: No such file or directory ==> ERROR: A failure occured in package_linux(). Aborting... Press enter to exit ----- This compilation error happenes when I tried to compile the 6.4.11-1 Linux Kernel on an arch(based) distribution. Some things to note: - The path is correct (I typed a shorter version on this post), I am using a kernel PKGBUILD from CachyOS. I know this issue is unrelated to CachyOS, because I tried using the TKG install build on normal arch, which resulted in the same error. I have also tested it with EndeavourOS. - A few days ago I was able to compile kernel 6.4.10-273 just fine, using the basically the same kernel configuration. (I have attempted to specifically select this kernel version, which now displays the same error) Things I have tried: - Clean install of Arch: (EndeavourOS, CachyOS, archlinux install script, manual install of arch), results in the same error being displayed after compilation. - Setting rm -f instead of rm in the script to ignore nonexistent directories / files. (Still fails because module symvers is not found) - Compiling with the standard CPU scheduler - Compiling without any patches - Compiling using the default kernel settings - Completely wiping every disk in my system and reinstalling linux. - Disabling XMP memory profile and disabling my CPU overclock. - Compile with march=generic - Attempt compilation using TKG glitch build script, and CachyOS kernel PKGBUILD script, both display this error. - Compiling with everything disabled in menuconfig - Disabling ccache (I only found one instance of another person having this issue, which they resolved by doing so) did not work. I have no clue how I can solve this issue, or what caused it to happen in the first place. No hardware changes or changes to bios settings were made, compilation worked fine a few days prior. I am new to Linux so I would greatly appreciate it if someone could help me out here. |
Greetings, AvidKotlinDenier & welcome to LQ.
They are both symlinks to the kernel top source dir. They have obviously been deleted. Probably the correct thing to do is type these lines in a terminal Code:
sudo ln -s /usr/src/linux-6.4.11-1 /lib/modules/6.4.11-1/build |
All times are GMT -5. The time now is 02:36 AM. |