running catalyst 2.0_rc12. in catalyst.conf: options="autoresume ccache kerncache pkgcache seedcache snapcache" during building stage4, genkernel fails with the errors shown below. if options="autoresume kerncache pkgcache seedcache snapcache" then genkernel runs just fine. * Gentoo Linux Genkernel; Version 3.3.6 * Running with options: --callback=PKGDIR=/usr/portage/packages/gk_binaries/brontes/ebuilds emerge -kb media-video/nvidia-glx --cachedir=/usr/portage/packages/gk_binaries/brontes-genkernel_cache-20060103.1 --no-mountboot --kerneldir=/usr/src/linux --kernel-config=/var/tmp/brontes.config --modulespackage=/usr/portage/packages/gk_binaries/brontes-modules-20060103.1.tar.bz2 --minkernpackage=/usr/portage/packages/gk_binaries/brontes-kernel-initrd-20060103.1.tar.bz2 --kerncache=/usr/portage/packages/gk_binaries/brontes-kerncache-20060103.1.tar.bz2 all --kernel-cc=/usr/lib/ccache/bin/gcc --utils-cc=/usr/lib/ccache/bin/gcc * Linux Kernel 2.6.14-gentoo-r5 for x86_64... * kernel: >> Running mrproper... * config: Using config from /var/tmp/brontes.config * Previous config backed up to .config.bak * >> Running oldconfig... * kernel: >> Cleaning... * kernel: >> Making dependencies... * ERROR: Failed to compile the "prepare" target... * -- Grepping log... -- * Running with options: --callback=PKGDIR=/usr/portage/packages/gk_binaries/brontes/ebuilds emerge -kb media-video/nvidia-glx --cachedir=/usr/portage/packages/gk_binaries/brontes-genkernel_cache-20060103.1 --no-mountboot --kerneldir=/usr/src/linux --kernel-config=/var/tmp/brontes.config --modulespackage=/usr/portage/packages/gk_binaries/brontes-modules-20060103.1.tar.bz2 --minkernpackage=/usr/portage/packages/gk_binaries/brontes-kernel-initrd-20060103.1.tar.bz2 --kerncache=/usr/portage/packages/gk_binaries/brontes-kerncache-20060103.1.tar.bz2 all --kernel-cc=/usr/lib/ccache/bin/gcc --utils-cc=/usr/lib/ccache/bin/gcc * Linux Kernel 2.6.14-gentoo-r5 for x86_64... * kernel: >> Running mrproper... COMMAND: make -j2 CC="/usr/lib/ccache/bin/gcc" LD="ld" AS="as" mrproper ccache: failed to create (null)/.ccache (No such file or directory) -- SCSI media changer support (CHR_DEV_SCH) [N/m/y/?] n * * 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 -- CRC16 functions (CRC16) [Y/n/m/?] y CRC32 functions (CRC32) [Y/?] y CRC32c (Castagnoli, et al) Cyclic Redundancy-Check (LIBCRC32C) [Y/?] y * kernel: >> Cleaning... COMMAND: make -j2 CC="/usr/lib/ccache/bin/gcc" LD="ld" AS="as" clean ccache: failed to create (null)/.ccache (No such file or directory) awk: cmd. line:1: fatal: cannot open file `/usr/portage/packages/gk_binaries/brontes/usr/src/linux-2.6.14-gentoo-r5/include/linux/version.h' for reading (No such file or directory) * kernel: >> Making dependencies... COMMAND: make -j2 CC="/usr/lib/ccache/bin/gcc" LD="ld" AS="as" dep ccache: failed to create (null)/.ccache (No such file or directory) *** Warning: make dep is unnecessary now. COMMAND: make -j2 CC="/usr/lib/ccache/bin/gcc" LD="ld" AS="as" prepare ccache: failed to create (null)/.ccache (No such file or directory) -- # # using defaults found in .config # SPLIT include/linux/autoconf.h -> include/config/* CC arch/x86_64/kernel/asm-offsets.s ccache: failed to create (null)/.ccache (No such file or directory) make[1]: *** [arch/x86_64/kernel/asm-offsets.s] Error 1 make: *** [prepare0] Error 2 * Gentoo Linux Genkernel; Version 3.3.6 * Running with options: --callback=PKGDIR=/usr/portage/packages/gk_binaries/brontes/ebuilds emerge -kb media-video/nvidia-glx --cachedir=/usr/portage/packages/gk_binaries/brontes-genkernel_cache-20060103.1 --no-mountboot --kerneldir=/usr/src/linux --kernel-config=/var/tmp/brontes.config --modulespackage=/usr/portage/packages/gk_binaries/brontes-modules-20060103.1.tar.bz2 --minkernpackage=/usr/portage/packages/gk_binaries/brontes-kernel-initrd-20060103.1.tar.bz2 --kerncache=/usr/portage/packages/gk_binaries/brontes-kerncache-20060103.1.tar.bz2 all --kernel-cc=/usr/lib/ccache/bin/gcc --utils-cc=/usr/lib/ccache/bin/gcc * ERROR: Failed to compile the "prepare" 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! * !!! catalyst: Runscript kernel build failed Traceback (most recent call last): File "modules/generic_stage_target.py", line 1178, in build_kernel "Runscript kernel build failed",env=self.env) File "/usr/lib/catalyst2/modules/catalyst_support.py", line 485, in cmd raise CatalystError,myexc CatalystError: <unprintable instance object> None !!! catalyst: build aborting due to kernel build error. Catalyst aborting....
As far as I can tell from the distance, $HOME gets unset so $CCACHE_DIR which defaults to "$HOME/.ccache" is broken (`man ccache`). Setting an explicit CCACHE_DIR should fix this.
Fixed in CVS with a workaround until we can revisit it...
This should be resolved properly in 2.0_rc15...