Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 117648 - catalyst+genkernel+ccache (null)/.ccache failure
Summary: catalyst+genkernel+ccache (null)/.ccache failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Catalyst (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Catalyst Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-03 12:08 UTC by Rajiv Aaron Manglani (RETIRED)
Modified: 2006-01-16 07:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rajiv Aaron Manglani (RETIRED) gentoo-dev 2006-01-03 12:08:50 UTC
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....
Comment 1 Kalin KOZHUHAROV 2006-01-03 12:20:58 UTC
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.
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2006-01-04 12:36:45 UTC
Fixed in CVS with a workaround until we can revisit it...
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2006-01-16 07:39:34 UTC
This should be resolved properly in 2.0_rc15...