I'm not really sure what's going on, but the kernel compiles fine by doing 'make', so I'm supposing that this is a genkernel bug. Here is the relevant portion of my (and also the only part I saved from destruction, unfortunately) log from genkernel: *** End of Linux kernel configuration. *** Execute 'make' to build the kernel or try 'make help'. * >> Compiling 2.6.9-gentoo-r4 bzImage... * ERROR: Failed to compile the "bzImage" 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) [N/y/?] n Verbose SCSI error reporting (kernel size +=12K) (SCSI_CONSTANTS) [N/y/?] n -- CC init/main.o /bin/sh: line 1: [: missing `]' /bin/sh: line 1: [: missing `]' CPIO usr/initramfs_data.cpio /bin/sh: line 1: ./: is a directory make[1]: *** [usr/initramfs_data.cpio] Error 126 make: *** [usr] Error 2 -- CC init/version.o LD init/mounts.o LD init/built-in.o * Gentoo Linux Genkernel; Version 3.1.0a * ERROR: Failed to compile the "bzImage" target... Reproducible: Always Steps to Reproduce: 1. genkernel --bootsplash [--gensplash] [--udev] --kerneldir=/usr/src/linux-2.6.9-gentoo-r* --install --bootloader=grub 2. 3. Actual Results: After getting the above error, I was able to cd to /usr/src/linux-2.6.9-gentoo-r4, type make (and see the same /bin/sh error, except make continues where genkernel fails), and then control-C it and then start up genkernel again with --no-mrproper and --no-clean.
Mind attaching usr/Makefile from your source tree please?
Created attachment 44883 [details] /usr/src/linux/usr/Makefile
Well, looking at that Makefile I don't see any problems ... other than the tabs getting replaced by whitespaces. Is this the same in the Makefile on your system?
No, the tabs are still there on my system.
Here too. Although the error is slightly different. When running genkernel 3.1.0a on sys-kernel/development-sources-2.6.9, thusly: genkernel --clean --mrproper --gconfig --no-bootsplash --bootloader=grub --install all the process fails with the following output and error(s). I also noticed that my copy of usr/Makefile is different than that which was attached by bencollins (see next attachment as well as including the following output from genkernel): COMMAND: make -j2 CC="gcc" LD="ld" AS="as" bzImage CHK include/linux/version.h make[1]: `arch/i386/kernel/asm-offsets.s' is up to date. CC init/main.o CHK include/linux/compile.h UPD include/linux/compile.h CC init/do_mounts.o CC init/do_mounts_devfs.o /bin/sh: line 0: [: missing `]' /bin/sh: line 0: [: missing `]' /bin/sh: line 0: [: missing `]' /bin/sh: line 0: [: missing `]' /bin/sh: line 0: [: missing `]' CPIO usr/initramfs_data.cpio /bin/sh: ./: is a directory make[1]: *** [usr/initramfs_data.cpio] Error 126 make: *** [usr] Error 2 make: *** Waiting for unfinished jobs.... CC init/do_mounts_rd.o CC init/do_mounts_initrd.o CC init/initramfs.o CC init/version.o LD init/mounts.o LD init/built-in.o * Gentoo Linux Genkernel; Version 3.1.0a * ERROR: Failed to compile the "bzImage" target... * -- Grepping log... -- * -- End log... --
Created attachment 44938 [details] /usr/src/linux-2.6.9/usr/Makefile
Ok, I see the problem with David's Makefile but not Benjamin's for some reason... Can you please revert the Makefile to the one I'll attached to this bug, and apply the patch I am to attach to /usr/share/genkernel/genkernel - hopefully this should fix it, and if you could confirm that it would be very helpful. Thanks!
Created attachment 44940 [details] 2.6.9-orig Makefile
Created attachment 44941 [details, diff] Patch
Tim, that seemed to fix it. The Makefile you attached appears to be identical to the first one Benjamin attached (attachment-id: 44883). Is that usr/Makefile included in a newer gentoo-dev-sources ebuild? Maybe it's time I switched from development-sources to gentoo-dev-sources... Thanks for the genkernel patch!
No, the problem is genkernel running a sed incorrectly on the Makefile (which is the same in gentoo-dev-sources as development-sources) that allows gensplash to compile correctly. Issue fixed in CVS, new genkernel should be coming out shortly...
Ok, the patch is in genkernel-3.0.2c, it should reach rsync shortly. Please reopen this bug if you have any problems. Thanks!