Trying to build a new kernel and having SSL error

Asked by Volkan Doner

Hello I'm new on Linux and trying to build a new kernel. When I try to run sudo make module_install I'm having below errors. Can you please hep me to find the solution
--------------------------------------------------------------------------------------------
ddoner@VolkanDoner-VB:~/Desktop/linux-5.13.13$ sudo make modules_install -j 8
[sudo] password for ddoner:
arch/x86/Makefile:148: CONFIG_X86_X32 enabled but no binutils support
  INSTALL /lib/modules/5.13.13VolkanDoner/kernel/arch/x86/crypto/aegis128-aesni.ko
  INSTALL /lib/modules/5.13.13VolkanDoner/kernel/arch/x86/crypto/aesni-intel.ko
  INSTALL /lib/modules/5.13.13VolkanDoner/kernel/arch/x86/crypto/blake2s-x86_64.ko
  INSTALL /lib/modules/5.13.13VolkanDoner/kernel/arch/x86/crypto/blowfish-x86_64.ko
  INSTALL /lib/modules/5.13.13VolkanDoner/kernel/arch/x86/crypto/camellia-aesni-avx-x86_64.ko
  INSTALL /lib/modules/5.13.13VolkanDoner/kernel/arch/x86/crypto/camellia-aesni-avx2.ko
  SIGN /lib/modules/5.13.13VolkanDoner/kernel/arch/x86/crypto/aegis128-aesni.ko
  SIGN /lib/modules/5.13.13VolkanDoner/kernel/arch/x86/crypto/aesni-intel.ko
  SIGN /lib/modules/5.13.13VolkanDoner/kernel/arch/x86/crypto/blake2s-x86_64.ko
  SIGN /lib/modules/5.13.13VolkanDoner/kernel/arch/x86/crypto/blowfish-x86_64.ko
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
sign-file: : No such file or directory
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
sign-file: : No such file or directory
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
sign-file: : No such file or directory
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
sign-file: : No such file or directory
  SIGN /lib/modules/5.13.13VolkanDoner/kernel/arch/x86/crypto/camellia-aesni-avx-x86_64.ko
make[1]: *** [scripts/Makefile.modinst:83: /lib/modules/5.13.13VolkanDoner/kernel/arch/x86/crypto/aegis128-aesni.ko] Error 1
make[1]: *** Deleting file '/lib/modules/5.13.13VolkanDoner/kernel/arch/x86/crypto/aegis128-aesni.ko'
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [scripts/Makefile.modinst:83: /lib/modules/5.13.13VolkanDoner/kernel/arch/x86/crypto/aesni-intel.ko] Error 1
make[1]: *** Deleting file '/lib/modules/5.13.13VolkanDoner/kernel/arch/x86/crypto/aesni-intel.ko'
make[1]: *** [scripts/Makefile.modinst:83: /lib/modules/5.13.13VolkanDoner/kernel/arch/x86/crypto/blake2s-x86_64.ko] Error 1
make[1]: *** Deleting file '/lib/modules/5.13.13VolkanDoner/kernel/arch/x86/crypto/blake2s-x86_64.ko'
make[1]: *** [scripts/Makefile.modinst:83: /lib/modules/5.13.13VolkanDoner/kernel/arch/x86/crypto/blowfish-x86_64.ko] Error 1
make[1]: *** Deleting file '/lib/modules/5.13.13VolkanDoner/kernel/arch/x86/crypto/blowfish-x86_64.ko'
  SIGN /lib/modules/5.13.13VolkanDoner/kernel/arch/x86/crypto/camellia-aesni-avx2.ko
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
sign-file: : No such file or directory
make[1]: *** [scripts/Makefile.modinst:83: /lib/modules/5.13.13VolkanDoner/kernel/arch/x86/crypto/camellia-aesni-avx-x86_64.ko] Error 1
make[1]: *** Deleting file '/lib/modules/5.13.13VolkanDoner/kernel/arch/x86/crypto/camellia-aesni-avx-x86_64.ko'
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
sign-file: : No such file or directory
make[1]: *** [scripts/Makefile.modinst:83: /lib/modules/5.13.13VolkanDoner/kernel/arch/x86/crypto/camellia-aesni-avx2.ko] Error 1
make[1]: *** Deleting file '/lib/modules/5.13.13VolkanDoner/kernel/arch/x86/crypto/camellia-aesni-avx2.ko'
make: *** [Makefile:1788: modules_install] Error 2

Question information

Language:
English Edit question
Status:
Open
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Maybe the same problem as https://superuser.com/questions/1214116/no-openssl-sign-file-signing-key-pem-leads-to-error-while-loading-kernel-modules

Why do you want to compile the kernel from scratch?
There is a repository with pre-compiled versions (including 5.13.13), see https://wiki.ubuntu.com/Kernel/MainlineBuilds

Revision history for this message
Volkan Doner (ddoner) said :
#2

I've tried this before but it didn't work. It's a class project, and asking us to compile new one

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Do you have a key pair for signing the modules available on your system?

The messages

- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
sign-file: : No such file or directory

indicate that the build process does not know the file name of the signature key.

A web search shows several occurrences of messages like

- SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178
sign-file: certs/signing_key.pem: No such file or directory

which name the file (certs/signing_key.pem) but in these cases the error is that the file then is missing.
In your case it seems to me that already the configuration item that defines which signature file to use is missing.

Revision history for this message
Volkan Doner (ddoner) said :
#4

I have realized that the signing_key.pem was empty and I created new cert key by using the above persons attached link. Right now, signing_key.pem in the certs. Also, in .config CONFIG_SYSTEM_TRUSTED_KEY and CONFIG_MODULE_SIG_KEY are already configured. Looks like above problem turned to the below.

 ddoner@VolkanDoner-VB:~/Desktop/linux-5.13.13$ sudo make modules_install
arch/x86/Makefile:148: CONFIG_X86_X32 enabled but no binutils support
  INSTALL /lib/modules/5.13.13VolkanDoner/kernel/arch/x86/crypto/aegis128-aesni.ko
  SIGN /lib/modules/5.13.13VolkanDoner/kernel/arch/x86/crypto/aegis128-aesni.ko
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
sign-file: : No such file or directory
make[1]: *** [scripts/Makefile.modinst:83: /lib/modules/5.13.13VolkanDoner/kernel/arch/x86/crypto/aegis128-aesni.ko] Error 1
make[1]: *** Deleting file '/lib/modules/5.13.13VolkanDoner/kernel/arch/x86/crypto/aegis128-aesni.ko'
make: *** [Makefile:1788: modules_install] Error 2

Can you help with this problem?

Provide an answer of your own, or ask Volkan Doner for more information if necessary.

To post a message you must log in.