I try to compile the kernel using “CachyOS Kernel Manager”, after added the gpg key.
But the tar is incomplete. I could NOT grab the missing file from other distro, because the script will first erase the cache folder then untar the kernel.
==> Making package: linux-cachyos-custom 7.1.1-2 (Mi 24 Jun 2026 20:14:07)
==> Checking runtime dependencies…
==> Checking buildtime dependencies…
==> Retrieving sources…
→ Found cachyos-7.1.1-2.tar.gz
→ Found cachyos-7.1.1-2.tar.gz.asc
→ Found config
→ Downloading dkms-clang.patch…
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1857 100 1857 0 0 5488 0 0
==> WARNING: Skipping verification of source file checksums.
==> Verifying source file signatures with gpg…
cachyos-7.1.1-2.tar.gz … Passed
==> Removing existing $srcdir/ directory…
==> Extracting sources…
→ Extracting cachyos-7.1.1-2.tar.gz with bsdtar
==> Starting prepare()…
Setting version…
Applying patch dkms-clang.patch…
patching file scripts/Makefile.clang
patching file scripts/Makefile.warn
Hunk #2 succeeded at 95 (offset -5 lines).
Setting config…
Enabling CachyOS config…
Selecting CACHYOS CPU scheduler…
Selecting ‘thin’ LLVM level…
Setting tick rate to 1000Hz…
Selecting ‘full’ tick type…
Selecting ‘full’ preempt type…
Enabling KBUILD_CFLAGS -O3…
Selecting ‘always’ TRANSPARENT_HUGEPAGE config…
Rewrite configuration…
SYNC include/config/auto.conf
HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c:92:10: fatal error: ‘sys/types.h’ file not found
92 | #include <sys/types.h>
| ^~~~~~~~~~~~~
1 error generated.
make[3]: *** [scripts/Makefile.host:114: scripts/basic/fixdep] Error 1
make[2]: *** [Makefile:666: scripts_basic] Error 2
/home/abc/.cache/cachyos-km/pkgbuilds/linux-cachyos/src/cachyos-7.1.1-2/Makefile:802: include/config/auto.conf: No such file or directory
make[1]: *** [/home/abc/.cache/cachyos-km/pkgbuilds/linux-cachyos/src/cachyos-7.1.1-2/Makefile:904: include/config/auto.conf] Error 2
make: *** [Makefile:248: __sub-make] Error 2
==> ERROR: A failure occurred in prepare().
Aborting…
Press enter to exit