The genkernel cannot produce a kernel because an error with the "zImage.initrd" target. Reproducible: Always Steps to Reproduce: 1. cd /usr/src/linux 2. genkernel all 3. Actual Results: localhost linux # genkernel all * Gentoo Linux Genkernel; Version 3.2.5 * Running with options: all * Linux Kernel 2.6.12-gentoo-r5 for ppc... * kernel: >> Running mrproper... * config: Using config from /usr/share/genkernel/ppc/kernel-config-2.6 * Previous config backed up to .config.bak * >> Running oldconfig... * kernel: >> Cleaning... * >> Compiling 2.6.12-gentoo-r5 vmlinux... * >> Starting supplimental compile of 2.6.12-gentoo-r5: zImage.initrd... * ERROR: Failed to compile the "zImage.initrd" target... * -- Grepping log... -- SCSI generic support (CHR_DEV_SG) [Y/n/m/?] y * * Some SCSI devices (e.g. CD jukebox) support multiple LUNs * Probe all LUNs on each SCSI device (SCSI_MULTI_LUN) [Y/n/?] y Verbose SCSI error reporting (kernel size +=12K) (SCSI_CONSTANTS) [N/y/?] n -- CC arch/ppc/platforms/pmac_smp.o LD arch/ppc/lib/built-in.o CC arch/ppc/platforms/chrp_smp.o CC arch/ppc/syslib/prep_nvram.o arch/ppc/platforms/pmac_smp.c: In function `smp_core99_kick_cpu': arch/ppc/platforms/pmac_smp.c:505: warning: 'new_vector' might be used uninitialized in this function -- CC kernel/workqueue.o CC kernel/pid.o CC kernel/rcupdate.o CC mm/bootmem.o CC kernel/intermodule.o kernel/intermodule.c:179: warning: `inter_module_register' is deprecated (declared at kernel/ intermodule.c:38) kernel/intermodule.c:180: warning: `inter_module_unregister' is deprecated (declared at kernel/ intermodule.c:79) kernel/intermodule.c:182: warning: `inter_module_put' is deprecated (declared at kernel/ intermodule.c:160) -- CC kernel/power/process.o CC mm/highmem.o CC kernel/power/console.o CC kernel/power/pm.o CC mm/madvise.o kernel/power/pm.c:259: warning: `pm_register' is deprecated (declared at kernel/power/pm.c:62) kernel/power/pm.c:260: warning: `pm_unregister' is deprecated (declared at kernel/power/pm.c:86) kernel/power/pm.c:261: warning: `pm_unregister_all' is deprecated (declared at kernel/power/pm.c: 115) kernel/power/pm.c:262: warning: `pm_send_all' is deprecated (declared at kernel/power/pm.c:234) -- LD drivers/scsi/sym53c8xx_2/sym53c8xx.o LD drivers/scsi/sym53c8xx_2/built-in.o CC drivers/scsi/mesh.o CC fs/xfs/xfs_dir2_block.o drivers/scsi/mesh.c: In function `mesh_probe': drivers/scsi/mesh.c:1963: warning: ignoring return value of `scsi_add_host', declared with attribute warn_unused_result -- AS arch/ppc/boot/simple/head.o CC arch/ppc/boot/openfirmware/dummy.o AS arch/ppc/boot/simple/relocate.o MISSING arch/ppc/boot/images/ramdisk.image.gz RAM disk image must be provided separately make[2]: *** [arch/ppc/boot/images/ramdisk.image.gz] Error 1 make[1]: *** [openfirmware] Error 2 -- -R .stabstr -R .sysmap arch/ppc/boot/utils/mkprep -pbp arch/ppc/boot/simple/zvmlinux.initrd arch/ppc/boot/images/ zImage.initrd.prep.smp arch/ppc/boot/utils/mkbugboot arch/ppc/boot/simple/zvmlinux.initrd arch/ppc/boot/images/ zImage.initrd.bugboot cp -f arch/ppc/boot/simple/zvmlinux.initrd arch/ppc/boot/images/zImage.initrd.elf rm -f arch/ppc/boot/simple/zvmlinux.initrd make: *** [zImage.initrd] Error 2 * Gentoo Linux Genkernel; Version 3.2.5 * Running with options: all COMMAND: make -j2 CC="gcc" LD="ld" AS="as" prepare * ERROR: Failed to compile the "zImage.initrd" target... * -- 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! * Expected Results: Compiled and instaled kernel. # -------------------------- # /etc/make.conf # MacMini - queru@queru.org # Julio 2005. # -------------------------- CFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec" CHOST="powerpc-unknown-linux-gnu" USE="apache2 bash-completion cdb chroot clamav gd gd-external \ ipv6 jpeg2k maildir mime pdf php threads vhosts X509 acl libclamav \ -ldap -kerberos alsa arts avi -fortran \ gpm -gtk -gtk2 kde -gnome qt dvd cdr \ -tcltk ruby \ " CXXFLAGS="${CFLAGS}" MAKEOPTS="-j2" GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://ftp.easynet.nl/mirror/gentoo/ ftp:// ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
You need to run genkernel with --genzimage.
Really? Ufffff... A change of this size must be reflected in the documentation and the genkernel should say 'You need --genzimage!' when this error appears.
With --genzimage works. Thanks for solution.