When attempting to compile my custom Linux kernel, the sudo make modules_install command failed, resulting in the following errors:
INSTALL /lib/modules/5.14.0-rc7+/kernel/arch/x86/crypto/blake2s-x86_64.ko
SIGN /lib/modules/5.14.0-rc7+/kernel/arch/x86/crypto/blake2s-x86_64.ko
At main.c:160:
- SSL error:FFFFFFFF80000002:system library::No such file or directory: crypto/bio/bss_file.c:67
- SSL error:10000080:BIO routines::no such file: crypto/bio/bss_file.c:75
sign-file: : No such file or directory
make[1]: *** [scripts/Makefile.modinst:83: /lib/modules/5.14.0-rc7+/kernel/arch/x86/crypto/blake2s-x86_64.ko] Error 1
make[1]: *** Deleting file '/lib/modules/5.14.0-rc7+/kernel/arch/x86/crypto/blake2s-x86_64.ko'
make: *** [Makefile:1777: modules_install] Error 2
How can I overcome this issue?
I also tried to compile the latest version (6.X) and also 5.1X. Thank you all.
I get a similar error when building kernel 6.6.6 or 6.6.7 including the missing bss_file.c file. It took me forever to find the cause. It is very weird, despite it is "SSL errors" it seems to have nothing to do with that. For some reason it has to do with using ZSTD compression for kernel modules. I could trace it back to a kernel .config option. Try to change the following two options in the kernel .config file to the following, and then it should build fine:
I have no idea why that is related, but I changed configurations and diffed many .config files for a while until I realized it. The error message is not very helpful here.
For comparison, that are the last lines of my kernel build output when building with
make -j12 bindeb-pkg