Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Compiling kernel Error 2 arch/x86 first time install
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
GnuSprout
n00b
n00b


Joined: 07 Nov 2020
Posts: 3

PostPosted: Sat Nov 07, 2020 4:16 pm    Post subject: [SOLVED]Compiling kernel Error 2 arch/x86 first time install Reply with quote

Greetings. I'm new to gentoo and today I was trying to install it on my machine.

I've been following the installation handbook but I've been unable to finish my kernel compiling. And this is the error that I get.

Code:
OBJCOPY arch/x86/boot/compressed/vmlinux.bin
RELOCS arch/x86/boot/compressed/vmlinux.relocs
LZ4 arch/x86/boot/compressed/vmlinux.bin.lz4

/bin/sh: lz4c: command not found
make[2]: *** [arch/x86/boot/compressed/Makefile:148: arch/x86/boot/compressed/vmlinux.bin.lz4] Error 127

make[2]: *** Deleting file 'arch/x86/boot/compressed/vmlinux.bin.lz4'
make[1]: *** [arch/x86/boot/Makefile:112 arch/x86/boot/compressed/vmlinux] Error 2
make: *** [arch/x86/Makefile:285: bzImage] Error 2


I've been looking around for a fix but haven't seen any Error 2 post with that particular makefile (Makefile:285 / 112).

Tried doing a

Code:
make clean

But did also not work.

What should I do?

Thank you


Last edited by GnuSprout on Sun Nov 15, 2020 4:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5544
Location: Bavaria

PostPosted: Sat Nov 07, 2020 5:07 pm    Post subject: Compiling kernel Error 2 arch/x86 gentoo first time install Reply with quote

GnuSprout wrote:
Code:
LZ4 arch/x86/boot/compressed/vmlinux.bin.lz4
[...]
/bin/sh: lz4c: command not found

What should I do?


Try this:
General setup --> Kernel compression mode (Gzip) --->

If you have a running system later, you then can switch to LZ4.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23280

PostPosted: Sat Nov 07, 2020 6:15 pm    Post subject: Reply with quote

GnuSprout wrote:
I've been following the installation handbook but I've been unable to finish my kernel compiling. And this is the error that I get.
Code:
OBJCOPY arch/x86/boot/compressed/vmlinux.bin
RELOCS arch/x86/boot/compressed/vmlinux.relocs
LZ4 arch/x86/boot/compressed/vmlinux.bin.lz4

/bin/sh: lz4c: command not found
make[2]: *** [arch/x86/boot/compressed/Makefile:148: arch/x86/boot/compressed/vmlinux.bin.lz4] Error 127
You told the kernel to use LZ4 compression, but you did not install the tool lz4c, which the kernel needs in order to do such compression. This tool comes from the package app-arch/lz4. You can emerge that package, or take pietinger's suggestion to tell the kernel not to use LZ4, at which point you will not need the lz4c tool.
Back to top
View user's profile Send private message
GnuSprout
n00b
n00b


Joined: 07 Nov 2020
Posts: 3

PostPosted: Sat Nov 07, 2020 8:16 pm    Post subject: Reply with quote

Quote:
You told the kernel to use LZ4 compression, but you did not install the tool lz4c, which the kernel needs in order to do such compression. This tool comes from the package app-arch/lz4. You can emerge that package, or take pietinger's suggestion to tell the kernel not to use LZ4, at which point you will not need the lz4c tool.


This worked. I managed to finish compiling and got to reboot into the OS. Thank you very much.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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