Skip to content

Need help running the LTO kernel  #34

@majin2020

Description

@majin2020

hi,
I got an x86 machine and installed Ubuntu 18 to compile the LTO kernel, but I tried all the LTO kernels, and tried compilers gcc 7.3.0, gcc 7.5.0, gcc 9.3.0, but none of them worked. If you use defconfig to compile the kernel, the system cannot be started, as shown in the following figure.
Example: lto-5.1-3.
Run the following command: make defconfig make menuconfig make modules -j32 make -j32 make modules_install -j32 make install -j32
The system cannot be started. Errors like this.
image

If the config of the current system is used, just like cp /boot/config-'uname -r'-generic ./.config make menuconfig make modules -j32 make -j32 make modules_install -j32 make install -j32 ,many warnings will be displayed, and the installation fails, as shown in the following figure.

When the make modules_install -j32 is run, there will be many warnings similar to the following, which disappear when I run the make menuconfig and select "N". However, it does not affect the error reported when the make install -j32 is executed.

depmod: WARNING: /lib/modules/5.1.0-rc1majin-os-is-flto.12.11+/kernel/arch/x86/crypto/sha256-ssse3.ko needs unknown symbol sh
a256_transform_ssse3
depmod: WARNING: /lib/modules/5.1.0-rc1majin-os-is-flto.12.11+/kernel/arch/x86/crypto/sha256-ssse3.ko needs unknown symbol sh
a256_transform_rorx
depmod: WARNING: /lib/modules/5.1.0-rc1majin-os-is-flto.12.11+/kernel/arch/x86/crypto/sha256-ssse3.ko needs unknown symbol sh
a256_transform_avx
depmod: WARNING: /lib/modules/5.1.0-rc1majin-os-is-flto.12.11+/kernel/arch/x86/crypto/sha512-ssse3.ko needs unknown symbol sh
a512_transform_ssse3
depmod: WARNING: /lib/modules/5.1.0-rc1majin-os-is-flto.12.11+/kernel/arch/x86/crypto/sha512-ssse3.ko needs unknown symbol sh
a512_transform_rorx
depmod: WARNING: /lib/modules/5.1.0-rc1majin-os-is-flto.12.11+/kernel/arch/x86/crypto/sha512-ssse3.ko needs unknown symbol sh
a512_transform_avx
depmod: WARNING: /lib/modules/5.1.0-rc1majin-os-is-flto.12.11+/kernel/arch/x86/crypto/crct10dif-pclmul.ko needs unknown symbo
l crc_t10dif_pcl
depmod: WARNING: /lib/modules/5.1.0-rc1majin-os-is-flto.12.11+/kernel/arch/x86/kvm/kvm-intel.ko needs unknown symbol vmx_vmen
ter
depmod: WARNING: /lib/modules/5.1.0-rc1majin-os-is-flto.12.11+/kernel/arch/x86/kvm/kvm-intel.ko needs unknown symbol vmx_vmex
it
depmod: WARNING: /lib/modules/5.1.0-rc1majin-os-is-flto.12.11+/kernel/arch/x86/kvm/kvm-intel.ko needs unknown symbol __vmx_vc
pu_run

When the make install -j32 run, the following error message is displayed:

System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.1.0-rc1majin-os-is-flto.12.11+ /boot/vmlinuz-5.1.0-rc1majin-os
-is-flto.12.11+
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.1.0-rc1majin-os-is-flto.12.11+ /boot/vmlinuz-5.1.0-rc1majin-os-
is-flto.12.11+
update-initramfs: Generating /boot/initrd.img-5.1.0-rc1majin-os-is-flto.12.11+
/usr/share/initramfs-tools/hooks/amd64_microcode: 108: /usr/share/initramfs-tools/hooks/amd64_microcode: cannot create ./mkin
itramfs-EFW_lNW2SrArqD/early-initramfs.cpio: Directory nonexistent
E: amd64-microcode: failed to create or prepend the early initramfs to the initramfs
cp: failed to access './mkinitramfs_495pIX/lib/systemd/network/': No such file or directory
E: /usr/share/initramfs-tools/hooks/udev failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.1.0-rc1majin-os-is-flto.12.11+ with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
arch/x86/boot/Makefile:155: recipe for target 'install' failed
make[2]: *** [install] Error 1
arch/x86/Makefile:288: recipe for target 'install' failed
make[1]: *** [install] Error 2
Makefile:170: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2

Then the system will crash.

I've spent nearly three weeks compiling the LTO kernel, so can you tell me what environment it takes to compile successfully and get into the system? Or how can I run the LTO kernel?

Could you help me for this ? Looking forward to your reply.

@andikleen @arndb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions