* ERROR: Kernel configuration is invalid. include/linux/autoconf.h or include/config/auto.conf are missing. Run 'make oldconfig && make prepare' on kernel src to fix it. 2. ERROR: Kernel configuration is invalid. include/linux/autoconf.h or include/config/auto.conf are missing. Run 'make oldconfig && make prepare' on kernel src to fix it. 6. ERROR: Kernel configuration is invalid. include/linux/autoconf.h or include/config/auto.conf are missing. Run 'make oldconfig && make prepare' on kernel src to fix it. 23 ERROR: Kernel configuration is invalid. include/linux/autoconf.h or include/config/auto.conf are missing. Run 'make oldconfig && make prepare' on kernel src to fix it. -gentoo-r3 /usr/portage/eclass/linux-info.eclass: line 200: [: too many arguments >>> Unpacking source... >>> Unpacking iptables-1.3.8.tar.bz2 to /var/tmp/portage/net-firewall/iptables-1.3.8-r2/work
please give more details including emerge info and which package you are trying to merge.
/usr/src/linux pointed to a new kernel and I had made make oldconfig only, but didn't build it. If you read the pasted data again, you see which ebuild I did try to build.
> Kernel configuration is invalid. > include/linux/autoconf.h or include/config/auto.conf are missing. > Run 'make oldconfig && make prepare' on kernel src to fix it. you forgot make prepare I'm afraid.
(In reply to comment #3) > you forgot make prepare I'm afraid. Apparently, tell me something new... ;) Too hard to kindly check this and let the ebuild die properly, instead letting some warnings and and an eclass error flow by and then building iptables, without any further notice!? I just stumbled about it, by looking at the lines, accidentally.
this line in linux-info.eclass: [ ${test} ${operator} ${value} ] && return 0 || return 1 isn't valid, so the class will return 0 even on error.
which is caused by get_version returning the entire error message along with the version in ${KV_MAJOR} ${KV_MINOR} and ${KV_PATCH}. pkg_setup() { get_version echo $KV_MAJOR echo $KV_MINOR echo $KV_PATCH } * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * * ERROR: Kernel configuration is invalid. * include/linux/autoconf.h or include/config/auto.conf are missing. * Run 'make oldconfig && make prepare' on kernel src to fix it. * * 2. * ERROR: Kernel configuration is invalid. * include/linux/autoconf.h or include/config/auto.conf are missing. * Run 'make oldconfig && make prepare' on kernel src to fix it. * * 6. * ERROR: Kernel configuration is invalid. * include/linux/autoconf.h or include/config/auto.conf are missing. * Run 'make oldconfig && make prepare' on kernel src to fix it. * * 28 * ERROR: Kernel configuration is invalid. * include/linux/autoconf.h or include/config/auto.conf are missing. * Run 'make oldconfig && make prepare' on kernel src to fix it. * * -gentoo ERROR: Kernel configuration is invalid. include/linux/autoconf.h or include/config/auto.conf are missing. Run 'make oldconfig && make prepare' on kernel src to fix it. 2 ERROR: Kernel configuration is invalid. include/linux/autoconf.h or include/config/auto.conf are missing. Run 'make oldconfig && make prepare' on kernel src to fix it. 6 ERROR: Kernel configuration is invalid. include/linux/autoconf.h or include/config/auto.conf are missing. Run 'make oldconfig && make prepare' on kernel src to fix it. 28
Please retest with 1.79 of linux-info.eclass or newer. The getfilevar_noexec logic should kick in for your case.