You are not logged in.

#1 2016-06-07 15:40:52

mariojuniorjp
Member
Registered: 2014-07-06
Posts: 16

Error on make_modules install

Hi folks! I compiled the kernel, but in time to install the modules I get this error:

[botnet@botnet:linux-4.6.1]$ sudo make modules_install
  INSTALL arch/x86/crypto/aes-x86_64.ko
  INSTALL arch/x86/crypto/aesni-intel.ko
  INSTALL arch/x86/crypto/crc32-pclmul.ko
  INSTALL arch/x86/crypto/crc32c-intel.ko
cp: impossível obter estado de 'arch/x86/crypto/aes-x86_64.ko': Arquivo ou diretório não encontrado
cp: impossível obter estado de 'arch/x86/crypto/aesni-intel.ko': Arquivo ou diretório não encontrado
  INSTALL arch/x86/crypto/ghash-clmulni-intel.ko
gzip: /lib/modules/4.6.1-ARCH/kernel/arch/x86/crypto/aes-x86_64.ko: No such file or directory
scripts/Makefile.modinst:35: recipe for target 'arch/x86/crypto/aes-x86_64.ko' failed
make[1]: *** [arch/x86/crypto/aes-x86_64.ko] Error 1
gzip: /lib/modules/4.6.1-ARCH/kernel/arch/x86/crypto/aesni-intel.ko: No such file or directory
make[1]: ** Esperando que outros processos terminem.
scripts/Makefile.modinst:35: recipe for target 'arch/x86/crypto/aesni-intel.ko' failed
make[1]: *** [arch/x86/crypto/aesni-intel.ko] Error 1
cp: impossível obter estado de 'arch/x86/crypto/crc32c-intel.ko': Arquivo ou diretório não encontrado
gzip: /lib/modules/4.6.1-ARCH/kernel/arch/x86/crypto/crc32c-intel.ko: No such file or directory
cp: impossível obter estado de 'arch/x86/crypto/crc32-pclmul.ko': Arquivo ou diretório não encontrado
scripts/Makefile.modinst:35: recipe for target 'arch/x86/crypto/crc32c-intel.ko' failed
make[1]: *** [arch/x86/crypto/crc32c-intel.ko] Error 1
  INSTALL arch/x86/kernel/msr.ko
cp: impossível obter estado de 'arch/x86/crypto/ghash-clmulni-intel.ko': Arquivo ou diretório não encontrado
gzip: /lib/modules/4.6.1-ARCH/kernel/arch/x86/crypto/crc32-pclmul.ko: No such file or directory
scripts/Makefile.modinst:35: recipe for target 'arch/x86/crypto/crc32-pclmul.ko' failed
make[1]: *** [arch/x86/crypto/crc32-pclmul.ko] Error 1
gzip: /lib/modules/4.6.1-ARCH/kernel/arch/x86/crypto/ghash-clmulni-intel.ko: No such file or directory
  INSTALL arch/x86/crypto/glue_helper.ko
scripts/Makefile.modinst:35: recipe for target 'arch/x86/crypto/ghash-clmulni-intel.ko' failed
make[1]: *** [arch/x86/crypto/ghash-clmulni-intel.ko] Error 1
  INSTALL arch/x86/crypto/crct10dif-pclmul.ko
cp: impossível obter estado de 'arch/x86/kernel/msr.ko': Arquivo ou diretório não encontrado
cp: impossível obter estado de 'arch/x86/crypto/glue_helper.ko': Arquivo ou diretório não encontrado
gzip: /lib/modules/4.6.1-ARCH/kernel/arch/x86/kernel/msr.ko: No such file or directory
scripts/Makefile.modinst:35: recipe for target 'arch/x86/kernel/msr.ko' failed
make[1]: *** [arch/x86/kernel/msr.ko] Error 1
gzip: /lib/modules/4.6.1-ARCH/kernel/arch/x86/crypto/glue_helper.ko: No such file or directory
scripts/Makefile.modinst:35: recipe for target 'arch/x86/crypto/glue_helper.ko' failed
make[1]: *** [arch/x86/crypto/glue_helper.ko] Error 1
cp: impossível obter estado de 'arch/x86/crypto/crct10dif-pclmul.ko': Arquivo ou diretório não encontrado
gzip: /lib/modules/4.6.1-ARCH/kernel/arch/x86/crypto/crct10dif-pclmul.ko: No such file or directory
scripts/Makefile.modinst:35: recipe for target 'arch/x86/crypto/crct10dif-pclmul.ko' failed
make[1]: *** [arch/x86/crypto/crct10dif-pclmul.ko] Error 1
Makefile:1165: recipe for target '_modinst_' failed
make: *** [_modinst_] Error 2
[botnet@botnet:linux-4.6.1]$ sudo make modules_install
  INSTALL arch/x86/crypto/aes-x86_64.ko
cp: impossível obter estado de 'arch/x86/crypto/aes-x86_64.ko': Arquivo ou diretório não encontrado
gzip: /lib/modules/4.6.1-ARCH/kernel/arch/x86/crypto/aes-x86_64.ko: No such file or directory
scripts/Makefile.modinst:35: recipe for target 'arch/x86/crypto/aes-x86_64.ko' failed
make[1]: *** [arch/x86/crypto/aes-x86_64.ko] Error 1
Makefile:1165: recipe for target '_modinst_' failed
make: *** [_modinst_] Error 2

How do I fix this? Thanks! smile

Offline

#2 2016-06-07 16:01:06

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,785

Re: Error on make_modules install

Note sure exactly, but...   Are you compiling the Arch mainline kernel?  Or are you compiling something to replace the main line kernel?   
If you are running the mainline kernel, and then you run make modules_install you will try to overwrite the modules for the running kernel.  This is Bad™.

Make sure you change the name of the kernel to something unique.  It is one of the options in make config


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2016-06-07 16:39:08

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: Error on make_modules install

As ewaller says, go to "general setup" and change "local version" to absolutely anything other than -ARCH.

Then, if you are using linux-4.6.1 from repo, reinstall it because you may have broken it and if you are unlucky it may not boot again.

Then run make once again and make sure there are no errors because it's clear that those modules haven't actually been built for some reason.

Last edited by mich41 (2016-06-07 16:41:24)

Offline

Board footer

Powered by FluxBB