error compiling the kernel
by chalie862 from LinuxQuestions.org on (#52PWB)
am geting this
i run this make -j4 bzImage && make -j4 modules && sudo make -j4 modules_install
sudo make install [sudo] password for lnxvm:
sh ./arch/x86/boot/install.sh 5.6.3tshifhiwa1982 arch/x86/boot/bzImage \
System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.6.3tshifhiwa1982 /boot/vmlinuz-5.6.3tshifhiwa1982
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.6.3tshifhiwa1982 /boot/vmlinuz-5.6.3tshifhiwa1982
update-initramfs: Generating /boot/initrd.img-5.6.3tshifhiwa1982
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 5.6.3tshifhiwa1982 /boot/vmlinuz-5.6.3tshifhiwa1982
run-parts: executing /etc/kernel/postinst.d/update-notifier 5.6.3tshifhiwa1982 /boot/vmlinuz-5.6.3tshifhiwa1982
run-parts: executing /etc/kernel/postinst.d/vboxadd 5.6.3tshifhiwa1982 /boot/vmlinuz-5.6.3tshifhiwa1982
VirtualBox Guest Additions: Building the modules for kernel 5.6.3tshifhiwa1982.
VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out what
went wrong
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 5.6.3tshifhiwa1982 /boot/vmlinuz-5.6.3tshifhiwa1982
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.6.3tshifhiwa1982
Found initrd image: /boot/initrd.img-5.6.3tshifhiwa1982
Found linux image: /boot/vmlinuz-5.0.0-23-generic
Found initrd image: /boot/initrd.img-5.0.0-23-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done
cat /var/log/vboxadd-setup.log
Building the main Guest Additions module for kernel 5.6.3tshifhiwa1982.
Error building the module. Build output follows.
Makefile:29: arch/x86/boot/Makefile.include.header: No such file or directory
Makefile:159: arch/x86/boot/Makefile.include.footer: No such file or directory
make[2]: *** No rule to make target 'arch/x86/boot/Makefile.include.footer'. Stop.
i did run sudo make modules_install
INSTALL sound/soc/xilinx/snd-soc-xlnx-i2s.ko
INSTALL sound/soc/xtensa/snd-soc-xtfpga-i2s.ko
INSTALL sound/soc/zte/zx-tdm.ko
INSTALL sound/soundcore.ko
INSTALL sound/synth/emux/snd-emux-synth.ko
INSTALL sound/synth/snd-util-mem.ko
INSTALL sound/usb/6fire/snd-usb-6fire.ko
INSTALL sound/usb/bcd2000/snd-bcd2000.ko
INSTALL sound/usb/caiaq/snd-usb-caiaq.ko
INSTALL sound/usb/hiface/snd-usb-hiface.ko
INSTALL sound/usb/line6/snd-usb-line6.ko
INSTALL sound/usb/line6/snd-usb-pod.ko
INSTALL sound/usb/line6/snd-usb-podhd.ko
INSTALL sound/usb/line6/snd-usb-toneport.ko
INSTALL sound/usb/line6/snd-usb-variax.ko
INSTALL sound/usb/misc/snd-ua101.ko
INSTALL sound/usb/snd-usb-audio.ko
INSTALL sound/usb/snd-usbmidi-lib.ko
INSTALL sound/usb/usx2y/snd-usb-us122l.ko
INSTALL sound/usb/usx2y/snd-usb-usx2y.ko
INSTALL sound/x86/snd-hdmi-lpe-audio.ko
INSTALL sound/xen/snd_xen_front.ko
INSTALL virt/lib/irqbypass.ko
DEPMOD 5.6.3tshifhiwa1982
but not geting lib/modules
/usr/src/kernel/linux-5.6.3/lib$ cd modules
-bash: cd: modules: No such file or directory
lnxvm@lnxvm-VirtualBox:/usr/src/kernel/linux-5.6.3/lib$ pwd
/usr/src/kernel/linux-5.6.3/lib


i run this make -j4 bzImage && make -j4 modules && sudo make -j4 modules_install
sudo make install [sudo] password for lnxvm:
sh ./arch/x86/boot/install.sh 5.6.3tshifhiwa1982 arch/x86/boot/bzImage \
System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.6.3tshifhiwa1982 /boot/vmlinuz-5.6.3tshifhiwa1982
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.6.3tshifhiwa1982 /boot/vmlinuz-5.6.3tshifhiwa1982
update-initramfs: Generating /boot/initrd.img-5.6.3tshifhiwa1982
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 5.6.3tshifhiwa1982 /boot/vmlinuz-5.6.3tshifhiwa1982
run-parts: executing /etc/kernel/postinst.d/update-notifier 5.6.3tshifhiwa1982 /boot/vmlinuz-5.6.3tshifhiwa1982
run-parts: executing /etc/kernel/postinst.d/vboxadd 5.6.3tshifhiwa1982 /boot/vmlinuz-5.6.3tshifhiwa1982
VirtualBox Guest Additions: Building the modules for kernel 5.6.3tshifhiwa1982.
VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out what
went wrong
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 5.6.3tshifhiwa1982 /boot/vmlinuz-5.6.3tshifhiwa1982
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.6.3tshifhiwa1982
Found initrd image: /boot/initrd.img-5.6.3tshifhiwa1982
Found linux image: /boot/vmlinuz-5.0.0-23-generic
Found initrd image: /boot/initrd.img-5.0.0-23-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done
cat /var/log/vboxadd-setup.log
Building the main Guest Additions module for kernel 5.6.3tshifhiwa1982.
Error building the module. Build output follows.
Makefile:29: arch/x86/boot/Makefile.include.header: No such file or directory
Makefile:159: arch/x86/boot/Makefile.include.footer: No such file or directory
make[2]: *** No rule to make target 'arch/x86/boot/Makefile.include.footer'. Stop.
i did run sudo make modules_install
INSTALL sound/soc/xilinx/snd-soc-xlnx-i2s.ko
INSTALL sound/soc/xtensa/snd-soc-xtfpga-i2s.ko
INSTALL sound/soc/zte/zx-tdm.ko
INSTALL sound/soundcore.ko
INSTALL sound/synth/emux/snd-emux-synth.ko
INSTALL sound/synth/snd-util-mem.ko
INSTALL sound/usb/6fire/snd-usb-6fire.ko
INSTALL sound/usb/bcd2000/snd-bcd2000.ko
INSTALL sound/usb/caiaq/snd-usb-caiaq.ko
INSTALL sound/usb/hiface/snd-usb-hiface.ko
INSTALL sound/usb/line6/snd-usb-line6.ko
INSTALL sound/usb/line6/snd-usb-pod.ko
INSTALL sound/usb/line6/snd-usb-podhd.ko
INSTALL sound/usb/line6/snd-usb-toneport.ko
INSTALL sound/usb/line6/snd-usb-variax.ko
INSTALL sound/usb/misc/snd-ua101.ko
INSTALL sound/usb/snd-usb-audio.ko
INSTALL sound/usb/snd-usbmidi-lib.ko
INSTALL sound/usb/usx2y/snd-usb-us122l.ko
INSTALL sound/usb/usx2y/snd-usb-usx2y.ko
INSTALL sound/x86/snd-hdmi-lpe-audio.ko
INSTALL sound/xen/snd_xen_front.ko
INSTALL virt/lib/irqbypass.ko
DEPMOD 5.6.3tshifhiwa1982
but not geting lib/modules
/usr/src/kernel/linux-5.6.3/lib$ cd modules
-bash: cd: modules: No such file or directory
lnxvm@lnxvm-VirtualBox:/usr/src/kernel/linux-5.6.3/lib$ pwd
/usr/src/kernel/linux-5.6.3/lib