Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] genkernel: Failed to compile the "bzImage" target
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
stemadev
n00b
n00b


Joined: 01 Mar 2011
Posts: 13
Location: Verona, Italy

PostPosted: Wed Mar 02, 2011 10:36 pm    Post subject: [SOLVED] genkernel: Failed to compile the "bzImage" Reply with quote

I have tried to install gentoo from minimal cd using the official tutorial but when i run
Code:
genkernel all
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
* Running with options: all

* Linux Kernel 2.6.36-gentoo-r5 for x86_64...
* 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
* 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
View user's profile Send private message
Raptor85
Apprentice
Apprentice


Joined: 29 Dec 2007
Posts: 208

PostPosted: Wed Mar 02, 2011 10:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Electromaniac
n00b
n00b


Joined: 02 Mar 2011
Posts: 27

PostPosted: Wed Mar 02, 2011 10:55 pm    Post subject: Reply with quote

you have to install lzma tools in order to work with bzImage. Install it with emerge lzma-utils
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6922
Location: Goose Creek SC

PostPosted: Thu Mar 03, 2011 12:55 am    Post subject: Reply with quote

in the chroot, you can:
Code:
emerge lzma-utils

or
Code:
emerge xz-utils

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
View user's profile Send private message
stemadev
n00b
n00b


Joined: 01 Mar 2011
Posts: 13
Location: Verona, Italy

PostPosted: Fri Mar 04, 2011 7:51 am    Post subject: Reply with quote

Thanks it works!
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