Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel compile zstd: error 11
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Kurmis
n00b
n00b


Joined: 04 Jun 2010
Posts: 43
Location: LV

PostPosted: Sat Dec 28, 2024 12:29 pm    Post subject: Kernel compile zstd: error 11 Reply with quote

Good day experts.
On olde Pentium4 32bit machine i try to install gentoo stage3-i686-systemd-20241209T170323Z.tar.xz .

Following https://wiki.gentoo.org/wiki/Handbook:X86/Installation/Kernel#Installing_the_kernel_sources
Code:
(chroot) emerge --ask sys-kernel/gentoo-sources
(chroot) make menuconfig
Configuring CPU type, filesystems ...
Code:
(chroot) make && make modules_install
. . .
. . .
TEST    posttest
arch/x86/tools/insn_sanity: Success: decoded and checked 1000000 random instructions with 0 errors (seed:0xa2a2bdb)
  ZSTD22  arch/x86/boot/compressed/vmlinux.bin.zst
zstd: error 11 : Allocation error : not enough memory
make[2]: *** [arch/x86/boot/compressed/Makefile:151: arch/x86/boot/compressed/vmlinux.bin.zst] Error 11
make[2]: *** Deleting file 'arch/x86/boot/compressed/vmlinux.bin.zst'
make[1]: *** [arch/x86/boot/Makefile:116: arch/x86/boot/compressed/vmlinux] Error 2
make: *** [arch/x86/Makefile:276: bzImage] Error 2
Is it bug in gentoo-sources or maybe i miss some steps before make ?

During make in another terminal free return something like this
Code:
 $ free
               total        used        free      shared  buff/cache   available
Mem:         8034664     1417340     2829588      352180     3787736     5958920
Swap:        8388604           0     8388604

Code:
(chroot) eix gentoo-sources
     Installed versions:  6.1.118(6.1.118)^bs(15:04:47 12/16/24)(-build -experimental -symlink)

How to fix it ?
Tnx in advance @ all.
Back to top
View user's profile Send private message
freke
Veteran
Veteran


Joined: 23 Jan 2003
Posts: 1040
Location: Somewhere in Denmark

PostPosted: Sat Dec 28, 2024 2:23 pm    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-p-8641020.html?sid=635b65fe95262560a1d4e35b47becaa2

It seems zstd22 uses (too) much RAM - you can try different compression method (ie. lzo)
Back to top
View user's profile Send private message
Kurmis
n00b
n00b


Joined: 04 Jun 2010
Posts: 43
Location: LV

PostPosted: Sat Dec 28, 2024 2:49 pm    Post subject: Reply with quote

Can Thou, please, show me exact example how to try different compression method ?

In given link /usr/src/linux/arch/x86/boot/compressed/Makefile is changed
Code:
$(call if_changed,zstd22)
->
$(call if_changed,zstd)
But i have
Code:
$(obj)/vmlinux.bin.zst: $(vmlinux.bin.all-y) FORCE
   $(call if_changed,zstd22_with_size)

here is no zstd22 but zstd22_with_size .
What is legal values for replace this ? zstd_with_size or zstd or something else ?

Is it possible to pass command line args to make instead of change Makefile ?
Back to top
View user's profile Send private message
freke
Veteran
Veteran


Joined: 23 Jan 2003
Posts: 1040
Location: Somewhere in Denmark

PostPosted: Sat Dec 28, 2024 3:16 pm    Post subject: Reply with quote

Code:
make menuconfig

-> General setup -> Kernel compression mode -> select ie. lzo
Back to top
View user's profile Send private message
Kurmis
n00b
n00b


Joined: 04 Jun 2010
Posts: 43
Location: LV

PostPosted: Sat Dec 28, 2024 3:38 pm    Post subject: Reply with quote

I have zstd22_with_size manually changed to zstd_with_size and to zstd
zstd_with_size did not work, but with zstd i have successfully generated bzImage .
Code:
(chroot) diff usr/src/linux/arch/x86/boot/compressed/Makefile.bak00 /usr/src/linux/arch/x86/boot/compressed/Makefile
151c151
<    $(call if_changed,zstd22_with_size)
---
>    $(call if_changed,zstd)
Thanks a lot , next time i will try
Code:
(chroot) make menuconfig   
---> General setup
  ---> Kernel compression mode
    ---> LZO
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum