After emerge of gentoo-dev-sources 2.6.7-r8, kernel-config complains about missing version.h Same goes for r7 btw Reproducible: Always Steps to Reproduce: 1. emerge sys-kernel/gentoo-dev-sources-2.6.7-r8 2. config-kernel --make-koutput /usr/src/linux-2.6.7-gentoo-r8 3. Actual Results: * Changing kernel found in /usr/src/linux-2.6.7-gentoo-r8 * to output to /var/tmp/kernel-output/2.6.7-gentoo-r8 * You will lose all of your compiled files in /usr/src/linux-2.6.7-gentoo-r8 * Hit Control C to cancel this now. 5 4 3 2 1 * Running 'make mrproper to clean your kernel tree (This make take a while) awk: cmd. line:2: fatal: cannot open file `/usr/src/linux-2.6.7-gentoo-r8/include/linux/version.h' for reading (No such file or directory) * Error running 'make mrproper' in your kernel tree Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-gentoo-r5) ================================================================= System uname: 2.6.7-gentoo-r5 i686 AMD Athlon(tm) Processor Gentoo Base System version 1.5.1 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ibiblio.org/pub/Linux/distributions/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/bmg-gnome-current" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow X alsa apm arts avi berkdb bindist bonobo cdr crypt cups directfb dvd dvdr encode esd foomaticdb gdbm gif gimpprint gnome gnome2 gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile imlib java jpeg ldap libg++ libwww mad mikmod mmx motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell sse ssl svga tcpd tiff truetype usb x86 xml2 xmms xv zlib"
Odd that make mrproper has issues of version.h isn't there. I'll look into it
looks like the offending line is: drivers/char/speakup/Makefile:5:V := $(shell awk '/UTS_RELEASE/ {print substr($$3,2,3)}' $(TOPDIR)/include/linux/version.h) The patch which adds this line changed between gentoo-dev-sources-2.6.7-r1 and gentoo-dev-sources-2.6.7-r2, but it looks to have been broken before then, also. The bug seems tickled by the fact that config-kernel assumes that any output on stderr from `make mrproper` implies a critical failure.
Created attachment 35127 [details, diff] modifies Makefile to actually check for version.h before running awk Someone with better understanding of the kernel build process will want to make sure that this doesn't create more problems than it fixes.
encountered error 77 when emerging gentoo-dev-sources from 2-6-7 r11 in livecd Universal. Is this the same problem?
what about gentoo-dev-sources-2.6.8-r8 I feel it have seems bug I can't rebuild slmodem and ati-drivers portage # emerge -v slmodem ... make: Leaving directory `/var/tmp/portage/slmodem-2.9.10/work/slmodem-2.9.10' >>> Test phase [not enabled]: net-dialup/slmodem-2.9.10 >>> Install slmodem-2.9.10 into /var/tmp/portage/slmodem-2.9.10/image/ category net-dialup make -C drivers install -D -m 755 modem/modem_test /var/tmp/portage/slmodem-2.9.10/image//usr/sbin/modem_test make[1]: Entering directory `/var/tmp/portage/slmodem-2.9.10/work/slmodem-2.9.10/drivers' make modules -C /lib/modules/2.6.8-gentoo-r8/build SUBDIRS=/var/tmp/portage/slmodem-2.9.10/work/slmodem-2.9.10/drivers O=/lib/modules/2.6.8-gentoo-r8/build make[2]: Entering directory `/usr/src/linux-2.6.8-gentoo-r8' CC [M] /var/tmp/portage/slmodem-2.9.10/work/slmodem-2.9.10/drivers/amrmo_init.o CC [M] /var/tmp/portage/slmodem-2.9.10/work/slmodem-2.9.10/drivers/sysdep_amr.o In file included from include/linux/module.h:10, from /var/tmp/portage/slmodem-2.9.10/work/slmodem-2.9.10/drivers/amrmo_init.c:47: include/linux/sched.h:4:36: asm/param.h: No such file or directory In file included from include/linux/types.h:13, from include/linux/capability.h:16, from include/linux/sched.h:7, from include/linux/module.h:10, from /var/tmp/portage/slmodem-2.9.10/work/slmodem-2.9.10/drivers/amrmo_init.c:47: include/linux/posix_types.h:47:29: asm/posix_types.h: No such file or directory In file included from include/linux/capability.h:16, from include/linux/sched.h:7, from include/linux/module.h:10, from /var/tmp/portage/slmodem-2.9.10/work/slmodem-2.9.10/drivers/amrmo_init.c:47: include/linux/types.h:14:23: asm/types.h: No such file or directory In file included from include/linux/capability.h:16, from include/linux/sched.h:7, from include/linux/module.h:10, from /var/tmp/portage/slmodem-2.9.10/work/slmodem-2.9.10/drivers/amrmo_init.c:47: include/linux/types.h:18: error: parse error before "__kernel_dev_t" include/linux/types.h:18: warning: type defaults to `int' in declaration of `__kernel_dev_t' ... ... portage # ll /usr/src/linux-2.6.8-gentoo-r8/include/linux/version.h ls: /usr/src/linux-2.6.8-gentoo-r8/include/linux/version.h: No such file or directory and many .h files are absent with 2.6.8-gentoo-r7 all ok
The version of the kernel that i used when reporting this bug is 'old' now but it frequently happens that the version.h is missing on recent kernels 2.6.9-r3 for example. Is this because kernel dev-sources are released too quickly ?
version.h is created during the compile of the kernel LOL after you finish compiling you should have a version.h I have yet to see a release that hasn't worked this way. Please build the kernel then report back on weather your still missing a header for the version.
re #7, i can't compile the kernel because the first step, the setup, fails when running a command like this: config-kernel --make-koutput=/usr/src/linux-2.6.8-gentoo-r8 The patch in the kernel Makefile suggested in #3 needs to be "merged into the main branch", who can do this ?
I get the same error when running make mrproper...this is including a source tree that had previously been built (2.6.7-gentoo-r6), and the newest on my system (2.6.9-gentoo-r1).
Addendum to #9: This was all encountered when I ran into an error installing the nvidia-kernel package, and through this found a work-around that fixed this error. Running 'make prepare-all' in the source tree fixed the errors.
I had the same problem but what I found was: I used to like symlinking a couple directories in /usr/include to link with the current kernel source tree in the proper locations. This was the way things used to swing but at some point this became a bad idea. Things were changed around and now adays you see packages like linux-headers and linux26-headers. This scheme doesn't sit well with me but apparently, this is the way it is. Check to see if you have the proper headers package merged (linux-headers for 2.4.x and linux26-headers for 2.6.x). Remerge it for good measure as something might have disappeared. When I was missing version.h, I checked and found that I had the old 2.4.x headers from my initial install months ago. I did some reading and changed things over to linux26-headers and everything was well again. Give it a try and see what happens (won't hurt things, at least).
config-kernel is deprecated and done with. Marking this WONTFIX.