Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77608 - Unable to mrproper forever due to make's "prepare2" failure
Summary: Unable to mrproper forever due to make's "prepare2" failure
Status: VERIFIED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal major (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-11 17:57 UTC by Steve Egbert
Modified: 2005-02-09 22:35 UTC (History)
0 users

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 Steve Egbert 2005-01-11 17:57:39 UTC
Having installed genkernel, my config-kernel is:

KBUILD_OUTPUT_PREFIX=/var/tmp/kernel-output
AUTO_SYMLINK=yes
LINUX_PORTAGE_WRITABLE=no


I am unable to get past the point of "mrproper" using "genkernel --debuglevel=5 all"

linux # genkernel all    
...
  UPD     include/asm-i386/asm_offsets.h
*         >> Compiling 2.6.10-gentoo-r4 bzImage...
COMMAND: make -j2 CC="gcc" LD="ld" AS="as" bzImage
  Using /usr/src/linux-2.6.10-gentoo-r4 as source for kernel
  /usr/src/linux-2.6.10-gentoo-r4 is not clean, please run 'make
  in the '/usr/src/linux-2.6.10-gentoo-r4' directory.
make[1]: *** [prepare2] Error 1
make: *** [bzImage] Error 2
* ERROR: Failed to compile the "bzImage" target...



/var/log/genkernel.log does not reveal any new details compared to actual terminal output.


Proceed to doing manual "make mrproper" reveals the same error.

linux # make mrproper
  CLEAN   scripts/basic
  CLEAN   scripts/kconfig
  CLEAN   .config include/linux/autoconf.h
linux # make oldconfig
...
   <snipped large output, appears normal, no error>
...
linux # make all      
  Using /usr/src/linux-2.6.10-gentoo-r4 as source for kernel
  /usr/src/linux-2.6.10-gentoo-r4 is not clean, please run 'make mrproper'
  in the '/usr/src/linux-2.6.10-gentoo-r4' directory.
make[1]: *** [prepare2] Error 1
make: *** [all] Error 2

<repeat, rinse, and lather, same result>

Nothing I do seems to break the infinite loop of not being able to do a mrproper.
Comment 1 Steve Egbert 2005-01-11 18:30:23 UTC
Once I removed the $(srcdir)/include/asm and ".config" file, I was able to resume the traditional "make all" is now working...

Keep in mind, the $(srcdir) is located under the "/usr/src/linux-2.6.10-gentoo-r4" and not the "/var/tmp/kernel-output/2.6.10-gentoo-r4".

Repeat the same two file removal (manual mrproper?) in $(srcdir) and then do "genkernel all" and you'll get


CC arch/i386/kernel/asm-offsets.s
In file included from /usr/src/linux-2.6.10-gentoo-r4/arch/i386/kernel/asm-offsets.c:7:
/usr/src/linux-2.6.10-gentoo-r4/include/linux/sched.h:4:37: asm/param.h: No such file or directory

No further combination of genkernel options (--oldconfig, --mrproper) can get me going again.  But I've managed to get make the traditional kernel make going doing the following:

linux # cd /usr/src/linux-2.6.10-gentoo-r4/
linux # rm .config include/asm
linux # make oldconfig all

So....  I must have lost my dual-track perspective here...  Is this a chicken and the egg issue or ???

Again....

linux # cd /usr/src/linux-2.6.10-gentoo-r4/
linux # make mrproper
linux # genkernel oldconfig all
...
...
CC arch/i386/kernel/asm-offsets.s
In file included from /usr/src/linux-2.6.10-gentoo-r4/arch/i386/kernel/asm-offsets.c:7:
/usr/src/linux-2.6.10-gentoo-r4/include/linux/sched.h:4:37: asm/param.h: No such file or directory


What does it take to get "genkernel" to properly generate the "include/asm" symbolic link?



Comment 2 Daniel Drake (RETIRED) gentoo-dev 2005-01-28 03:43:08 UTC
config-kernel is no longer supported. Does it work without the config-kernel stuff?
Comment 3 Daniel Drake (RETIRED) gentoo-dev 2005-02-09 07:49:04 UTC
Please reopen when you reply to comment #2
Comment 4 Steve Egbert 2005-02-09 22:35:29 UTC
I was told to

# emerge linux-header

that seems to fix the issue.