-1

I have built Linux kernel from source with make and make modules_install. But I issue the install command:

$ sudo make -j8 V=1 install
arch/x86/Makefile:142: CONFIG_X86_X32 enabled but no binutils support
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (        \
echo >&2;                           \
echo >&2 "  ERROR: Kernel configuration is invalid.";       \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
echo >&2 ;                          \
/bin/false)
sh ./arch/x86/boot/install.sh 5.15.10 \
    arch/x86/boot/bzImage System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.15.10 /boot/vmlinuz-5.15.10
run-parts: executing /etc/kernel/postinst.d/dkms 5.15.10 /boot/vmlinuz-5.15.10
 * dkms: running auto installation service for kernel 5.15.10                                                      
Kernel preparation unnecessary for this kernel.  Skipping...

Building module: cleaning build area...... make KERNELRELEASE=5.15.10 all INCLUDEDIR=/lib/modules/5.15.10/build/include KVERSION=5.15.10 DKMS_BUILD=1 ...

This command goes on for hours. What is really going?

sal_guy
  • 119

1 Answers1

4

From the output you show, it looks like your machine is recompiling all of the kernel modules you have, to work with the new kernel. That's what dkms (Dynamic Kernel Module Support) does. Since this is compilation, it is expected to take quite a long time.

As long as you keep seeing output there (there should be various compilation messages), there should be no problem and it will finish. Eventually.

terdon
  • 104,119