Hello! I use trisquel 8.0. I have no sense how to compile kernel, I tried
once it worked on 1 laptop, the other laptop stops and does not compile every
time. Please, what is wrong in these actions:
# apt-get update
# apt-get upgrade
# apt-get install dpkg-dev libncurses5-dev kernel-package fakeroot bzip2
build-essential
# uname -a
Linux asus 4.4.0-119-generic #143+8.0trisquel2 SMP Thu Apr 5 16:24:48 UTC
2018 x86_64 x86_64 x86_64 GNU/Linux
# ls /boot
abi-4.4.0-119-generic grub
retpoline-4.4.0-119-generic vmlinuz-4.4.0-119-generic
config-4.4.0-119-generic initrd.img-4.4.0-119-generic
System.map-4.4.0-119-generic
# apt-cache search linux-source
linux-source-4.4.0 - Linux-libre kernel source for version 4.4.0
linux-source - Linux kernel source with Ubuntu patches
linux-source-4.13.0 - Linux-libre kernel source for version 4.13.0
linux-source-4.8.0 - Linux-libre kernel source for version 4.8.0
# apt-get source linux-source-4.13.0
# ls
linux-hwe-4.13.0 linux-hwe_4.13.0-45.50~16.04.1+8.0trisquel1.dsc
linux-hwe_4.13.0-45.50~16.04.1+8.0trisquel1.tar.gz mybuild
# cd linux-hwe-4.13.0
# make O=/home/user/kernel/mybuild menuconfig
Then I loaded config from /boot/config-4.4.0-119-generic, switched off that I
do not need: IRDA и Bluetooth then saved config into
/home/user/kernel/mybuild/.config
# make O=/home/user/kernel/mybuild
/bin/bash
/home/y/kernel/linux-hwe-4.13.0/scripts/ubuntu-retpoline-extract-one
arch/x86/crypto/sha1-mb/sha1_mb_mgr_submit_avx2.o
/home/y/kernel/linux-hwe-4.13.0/arch/x86/crypto/sha1-mb/sha1_mb_mgr_submit_avx2.S
"";
AS [M] arch/x86/crypto/sha1-mb/sha1_x8_avx2.o
/bin/bash
/home/y/kernel/linux-hwe-4.13.0/scripts/ubuntu-retpoline-extract-one
arch/x86/crypto/sha1-mb/sha1_x8_avx2.o
/home/y/kernel/linux-hwe-4.13.0/arch/x86/crypto/sha1-mb/sha1_x8_avx2.S "";
LD [M] arch/x86/crypto/sha1-mb/sha1-mb.o
AS arch/x86/entry/entry_64.o
Segmentation fault
/home/y/kernel/linux-hwe-4.13.0/scripts/Makefile.build:419: ошибка
выполнения рецепта для цели
«arch/x86/entry/entry_64.o»
make[3]: *** [arch/x86/entry/entry_64.o] Ошибка 139
/home/y/kernel/linux-hwe-4.13.0/scripts/Makefile.build:589: ошибка
выполнения рецепта для цели «arch/x86/entry»
make[2]: *** [arch/x86/entry] Ошибка 2
/home/y/kernel/linux-hwe-4.13.0/Makefile:1055: ошибка
выполнения рецепта для цели «arch/x86»
make[1]: *** [arch/x86] Ошибка 2
make[1]: выход из каталога «/home/y/kernel/mybuild»
Makefile:145: ошибка выполнения рецепта для
цели «sub-make»
make: *** [sub-make] Ошибка 2
Sorry? Why does it stop?