Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 473596 - `genkernel all' fails with "ERROR: Error: No kernel .config specified, or file not found!"
Summary: `genkernel all' fails with "ERROR: Error: No kernel .config specified, or fil...
Status: RESOLVED DUPLICATE of bug 468460
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 473202
  Show dependency tree
 
Reported: 2013-06-17 14:51 UTC by Jeroen Roovers (RETIRED)
Modified: 2013-06-17 15:41 UTC (History)
2 users (show)

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


Attachments
genkernel.log (--loglevel=5) (genkernel.log,3.04 KB, text/plain)
2013-06-17 14:53 UTC, Jeroen Roovers (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2013-06-17 14:51:26 UTC
karsten ~ # genkernel all
* Gentoo Linux Genkernel; Version 3.4.45.1          
* Running with options: all
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/parisc64/config.sh ..                                             
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/parisc64/modules_load ..                                       
*
* ERROR: Error: No kernel .config specified, or file not found!
* 
* -- Grepping log... --
* 
* Running with options: all
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/parisc64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/parisc64/modules_load ..
*
* ERROR: Error: No kernel .config specified, or file not found!
* 
* -- 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!
* 
karsten ~ # ls -ld /usr/src/linux
lrwxrwxrwx 1 root root 14 Jun 15 17:25 /usr/src/linux -> linux-3.10-rc5
karsten ~ # ls -l /usr/src/linux/.config
-rw-r--r-- 1 root root 57351 Jun 13 15:03 /usr/src/linux/.config


Trying something more specific to building a 64-bit kernel:
karsten ~ # genkernel --arch-override=parisc --kernel-cross-compile=hppa64-unknown-linux-gnu- all
* Gentoo Linux Genkernel; Version 3.4.45.1
* Running with options: --arch-override=parisc --kernel-cross-compile=hppa64-unknown-linux-gnu- all

* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/parisc/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/parisc/modules_load ..

* ERROR: Error: No kernel .config specified, or file not found!
* 
* -- Grepping log... --
* 
* Running with options: --arch-override=parisc --kernel-cross-compile=hppa64-unknown-linux-gnu- all
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/parisc/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/parisc/modules_load ..
*
* ERROR: Error: No kernel .config specified, or file not found!
* 
* -- 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!
*
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-17 14:53:12 UTC
Created attachment 351236 [details]
genkernel.log (--loglevel=5)
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-17 15:07:29 UTC
Adding --kernel-config=/usr/src/linux/.config curiously does work, even though --kernel-dir defaults to /usr/src/linux and even though genkernel:

     "by default genkernel uses the config from the
      previous build of the same kernel version or a default kernel config if
      there isn't a previous config."
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-17 15:10:35 UTC
Oh, with that addition it fails after mrproper:

* Linux Kernel 3.10.0-rc5-JeR for parisc...                                                                                         
* .. with config file /usr/src/linux-3.10-rc5/.config                                                                               
* kernel: Using config from /usr/src/linux-3.10-rc5/.config                                                                         
*         Previous config backed up to .config--2013-06-17--17-05-12.bak                                                            
* kernel: >> Running mrproper...                                                                                                    
COMMAND: make -j2  CROSS_COMPILE="hppa64-unknown-linux-gnu-" mrproper                                                               
  CLEAN   .                                                                                                                         
  CLEAN   arch/parisc/kernel                                                                                                        
  CLEAN   drivers/eisa                                                                                                              
  CLEAN   kernel                                                                                                                    
  CLEAN   lib/raid6                                                                                                                 
  CLEAN   lib                                                                                                                       
  CLEAN   usr                                                                                                                       
  CLEAN   drivers/scsi                                                                                                              
  CLEAN   scripts/basic                                                                                                             
  CLEAN   scripts/kconfig                                                                                                           
  CLEAN   scripts/mod                                                                                                               
  CLEAN   scripts                                                                                                                   
  CLEAN   drivers/tty/vt                                                                                                            
  CLEAN   drivers/video/logo                                                                                                        
  CLEAN   .tmp_versions                                                                                                             
  CLEAN   include/config include/generated arch/parisc/include/generated                                                            
  CLEAN   .config .config.old .version include/generated/uapi/linux/version.h Module.symvers                                        
cp: cannot stat '/usr/src/linux-3.10-rc5/.config': No such file or directory                                                        
* ERROR: Could not copy configuration file!                                                                                         
*                                                                                                                                   
* -- Grepping log... --                                                                                                             
*                                                                                                                                   
*   DOKEYMAPAUTO not set.                                                                                                           
*   BUSYBOX_CONFIG not set.                                                                                                         
*   INSTALL defaulted to "yes".                                                                                                     
* KERNEL_ARCH=parisc                                                                                                                
*                                                                                                                                   
* ERROR: Could not copy configuration file!                                                                                         
*                                                                                                                                   
* -- 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!                                                                    
*
Comment 4 Rick Farina (Zero_Chaos) gentoo-dev 2013-06-17 15:41:45 UTC

*** This bug has been marked as a duplicate of bug 468460 ***