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.
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?
config-kernel is no longer supported. Does it work without the config-kernel stuff?
Please reopen when you reply to comment #2
I was told to # emerge linux-header that seems to fix the issue.