View previous topic :: View next topic |
Author |
Message |
stemadev n00b
Joined: 01 Mar 2011 Posts: 13 Location: Verona, Italy
|
Posted: Wed Mar 02, 2011 10:36 pm Post subject: [SOLVED] genkernel: Failed to compile the "bzImage" |
|
|
I have tried to install gentoo from minimal cd using the official tutorial but when i run it fails and the output is:
Failed to compile the "bzImage" target
This below is the genkernel log
Code: | * Gentoo Linux Genkernel; Version 3.4.10.907[0m
* Running with options: all
* Linux Kernel 2.6.36-gentoo-r5[0m for x86_64[0m...
* kernel: >> Running mrproper...
COMMAND: make -j2 CC="gcc" LD="ld" AS="as" ARCH="x86"
* config: Using config from /usr/share/genkernel/arch/x86_64/kernel-config
* Previous config backed up to .config.bak
* >> Running oldconfig...
COMMAND: make -j2 CC="gcc" LD="ld" AS="as" ARCH="x86"
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
scripts/basic/docproc.c: In function 'docsect':
scripts/basic/docproc.c:336: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --oldconfig arch/x86/Kconfig
#
# configuration written to .config
#
* kernel: >> Cleaning...
COMMAND: make -j2 CC="gcc" LD="ld" AS="as" ARCH="x86"
COMMAND: make -j2 CC="gcc" LD="ld" AS="as" ARCH="x86"
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc |
....and more or less 2000 lines after
Code: |
arch/x86/boot/compressed/mkpiggy.c: In function 'main':
arch/x86/boot/compressed/mkpiggy.c:65: warning: ignoring return value of 'fread', declared with attribute warn_unused_result
CC arch/x86/boot/main.o
LZMA arch/x86/boot/compressed/vmlinux.bin.lzma
/bin/sh: lzma: command not found
make[2]: *** [arch/x86/boot/compressed/vmlinux.bin.lzma] Error 1
make[1]: *** [arch/x86/boot/compressed/vmlinux] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [bzImage] Error 2
* Gentoo Linux Genkernel; Version 3.4.10.907[0m
* Running with options: all
* ERROR: Failed to compile the "bzImage" target...
* -- Grepping log... --
* -- End log... --
* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
* |
how can i do?
(sorry for the edit but i wrote a grammar error -.- )
Last edited by stemadev on Fri Mar 04, 2011 7:52 am; edited 1 time in total |
|
Back to top |
|
|
Raptor85 Apprentice
Joined: 29 Dec 2007 Posts: 208
|
Posted: Wed Mar 02, 2011 10:49 pm Post subject: |
|
|
Quote: | /bin/sh: lzma: command not found |
sounds like you have it set to lzma compress but don't have any lzma tools installed. You can either install app-arch/lzma-utils or change the compression. (I don't use genkernel so I'm not sure as to how on that one, maybe someone else can fill you in on that) |
|
Back to top |
|
|
Electromaniac n00b
Joined: 02 Mar 2011 Posts: 27
|
Posted: Wed Mar 02, 2011 10:55 pm Post subject: |
|
|
you have to install lzma tools in order to work with bzImage. Install it with emerge lzma-utils |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Thu Mar 03, 2011 12:55 am Post subject: |
|
|
in the chroot, you can:
or
or
Code: | genkernel --menuconfig all |
in menuconfig set Quote: | General setup ---> Kernel compression mode (Gzip) ---> | instead of Quote: | General setup ---> Kernel compression mode (Gzip) ---> |
_________________ Defund the FCC. |
|
Back to top |
|
|
stemadev n00b
Joined: 01 Mar 2011 Posts: 13 Location: Verona, Italy
|
Posted: Fri Mar 04, 2011 7:51 am Post subject: |
|
|
Thanks it works! |
|
Back to top |
|
|
|