F5F Stay Refreshed Software Operating Systems Attempting to build the kernel version 5.1.7 using LZO encountered issues.

Attempting to build the kernel version 5.1.7 using LZO encountered issues.

Attempting to build the kernel version 5.1.7 using LZO encountered issues.

L
165
11-12-2025, 02:17 PM
#1
Hello everyone, I've chosen to build the Linux kernel on my own after facing several problems with my system. I opted for xz compression for my laptop, but I'm hoping to test LZO compression instead. During the bzImage build process, the makefile generated these errors: DESCEND objtool CALL scripts/atomic/check-atomics.sh CALL scripts/checksyscalls.sh CHK include/generated/compile.h MKPIGGY arch/x86/boot/compressed/piggy.S arch/x86/boot/compressed/vmlinux.bin.lzo: Invalid argument arch/x86/boot/compressed/vmlinux.bin.lzo: Invalid argument make[2]: *** [arch/x86/boot/compressed/piggy.S] Error 1 make[2]: *** Deleting file 'arch/x86/boot/compressed/piggy.S' make[1]: *** [arch/x86/boot/Makefile:112: arch/x86/boot/compressed/vmlinux] Error 2 make: *** [arch/x86/Makefile:283: bzImage] Error 2 If someone with experience in this area is willing to assist, it would be greatly appreciated. Thanks ahead! ~Breadpudding
L
LuisinDosCraft
11-12-2025, 02:17 PM #1

Hello everyone, I've chosen to build the Linux kernel on my own after facing several problems with my system. I opted for xz compression for my laptop, but I'm hoping to test LZO compression instead. During the bzImage build process, the makefile generated these errors: DESCEND objtool CALL scripts/atomic/check-atomics.sh CALL scripts/checksyscalls.sh CHK include/generated/compile.h MKPIGGY arch/x86/boot/compressed/piggy.S arch/x86/boot/compressed/vmlinux.bin.lzo: Invalid argument arch/x86/boot/compressed/vmlinux.bin.lzo: Invalid argument make[2]: *** [arch/x86/boot/compressed/piggy.S] Error 1 make[2]: *** Deleting file 'arch/x86/boot/compressed/piggy.S' make[1]: *** [arch/x86/boot/Makefile:112: arch/x86/boot/compressed/vmlinux] Error 2 make: *** [arch/x86/Makefile:283: bzImage] Error 2 If someone with experience in this area is willing to assist, it would be greatly appreciated. Thanks ahead! ~Breadpudding

H
Hydroforce33
Senior Member
550
11-12-2025, 05:33 PM
#2
I never built the kernel from source; I usually grab it from the repository, though most distributions keep it in /boot.
H
Hydroforce33
11-12-2025, 05:33 PM #2

I never built the kernel from source; I usually grab it from the repository, though most distributions keep it in /boot.

P
PapieszZKremu
Member
132
11-13-2025, 02:56 AM
#3
I chose this action since the newest kernel stopped me from starting, and the previous kernel I used no longer works with my ath10k drivers.
P
PapieszZKremu
11-13-2025, 02:56 AM #3

I chose this action since the newest kernel stopped me from starting, and the previous kernel I used no longer works with my ath10k drivers.

P
phenixGronc
Junior Member
10
11-14-2025, 06:30 PM
#4
What distro you running on? For Ubuntu based distros, I'm pretty sure there is a ppa with lists of many old kernels. Manually compiling kernels is a chore and involves manually configuring the modules. https://www.google.com/amp/s/www.cyberci...6.html/amp You may want to back up your current kernel before switching.
P
phenixGronc
11-14-2025, 06:30 PM #4

What distro you running on? For Ubuntu based distros, I'm pretty sure there is a ppa with lists of many old kernels. Manually compiling kernels is a chore and involves manually configuring the modules. https://www.google.com/amp/s/www.cyberci...6.html/amp You may want to back up your current kernel before switching.

E
EMF11
Junior Member
45
11-16-2025, 12:36 AM
#5
Are you aiming to build the kernel image or the initramfs?
E
EMF11
11-16-2025, 12:36 AM #5

Are you aiming to build the kernel image or the initramfs?

A
Amtrak10
Senior Member
639
11-17-2025, 01:41 AM
#6
It looks like the system doesn't support LZO compression. You might want to install lzop and test it, or check your distribution details. Good luck!
A
Amtrak10
11-17-2025, 01:41 AM #6

It looks like the system doesn't support LZO compression. You might want to install lzop and test it, or check your distribution details. Good luck!

H
haley123
Member
187
11-17-2025, 03:08 AM
#7
I'm using Debian Sid on my home computer. I don't mind compiling a kernel—just run make a few times. The answer is yes. I'm using the latest source from kernel.org. Since I have lzop, I'm confused about the failure. I had problems earlier, so I reinstalled it, cleared the partially built files, and started over.
H
haley123
11-17-2025, 03:08 AM #7

I'm using Debian Sid on my home computer. I don't mind compiling a kernel—just run make a few times. The answer is yes. I'm using the latest source from kernel.org. Since I have lzop, I'm confused about the failure. I had problems earlier, so I reinstalled it, cleared the partially built files, and started over.