Last day I emerge sys-kernel/gentoo-dev-sources-2.6.7. Have run the system without problems with dev-sources 2.6.5 and a manually patched 2.6.6 (since there never was a released dev-2.6.6). Now I can't emerge media-video/nvidia-kernel-1.0.5336-r4. It just gives me this error: >>> Source unpacked. Unable to determine kernel version. make: *** [select_makefile] Fel 1 !!! ERROR: media-video/nvidia-kernel-1.0.5336-r4 failed. !!! Function src_compile, Line 118, Exitcode 2 !!! Failed to build module I really miss GLX.... I'm sorry if I maybe made a dup, but I really could not find anything while searching. Reproducible: Always Steps to Reproduce: 1. emerge gentoo-dev-sources-2.6.7 2. compile and reboot 3. emerge media-video/nvidia-kernel-1.0.5336-r4 Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-gentoo) ================================================================= System uname: 2.6.7-gentoo i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-pipe -O3 -march=pentium4" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/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="-pipe -O3 -march=pentium4" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http:/gentoo.linux.no http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync1.no.gentoo.org/gentoo-x86-portage" USE="X acpi alsa avi berkdb cdr crypt cups dga encode flac foomaticdb gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 imlib ipv6 java joystick jpeg libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls nptl ogg oggvorbis opengl pam pdflib perl pic png ppds python quicktime readline sdl slang spell sse ssl svga tcltk tcpd theora threads tiff truetype x86 xml2 xmms xv zlib"
Is the sources compiled? That will happen if it cannot find include/linux/version.h which usually is not present in an configured and started to build kernel ...
'make prepare-all' for later 2.6 kernels should do the job btw
Everything was compiled, but just running "make prepare-all" did the work....
So it worked fine after running that?
Yes, it did. Maybe we should notify someone developing genkernel about this, since I usually do "genkernel all --menuconfig" by lazyness and apperently genkernel maybe should do some prepare-all'ing...
Please check comment #5 guys ...
*** Bug 55053 has been marked as a duplicate of this bug. ***
Kalle are you using the koutput feature of the new kernels???
running: make prepare-all emerge nvidia-kernel did not make any difference for me (#55053).
Thats because using koutput (I Believe) stuffs up Makefile.kbuild. I need kalle to answer the question in comment #8 to be sure, but I'm 99% certain. Once I am certain I will reopen bug #55053 for appropriate koutput tracking.
If that is the case, I am not sure what is the best way to proceed. Until the 'source symlink' thing comes into play, it will be shaky at best trying to figure out what to do.
I have a few exams this week but then im going to try and finish off patching the makefile to work properly under either circumstance... We may need to pass another make parameter from the ebuild though (${KV_OUTPUT} or similar probably).
I am not at home currenlty, but will bee tomorrow. I will try to give you an answer before thursday (at most) if it still is needed... But it would help if you give me a short guide to the koutput (like the commands and what to look for) so i dont have to read that much before i could give you feedback.
Kalle: does your kernel compile under /usr/src/linux? or under /var/tmp/kernel-output/${KV}/ .. if you dont know or never really thought about koutput then you are most likely not using it (if not definately).
I had the same problem with kbuild and the NVidia 5336 driver. I solved it kludgily by copying the /var/tmp/kernel-output/${KV} to /usr/src/linux and making sure that version.h was in /usr/src/linux/include/linux then using the NVIDIA-xxxx.run installer downloaded from nvidia. I note that the emerge still would not work, giving the same error as before.
Just commited fixes for the koutput strand of this to cvs. If you are experiencing problems try syncing your tree and remerging nvidia-kernel-1.0.5336-r4 (allow time for the cvs to disperse naturally).
This looks like more of a KOUTPUT issue than a genkernel issue so I'm reassigning this...
Anyone with futher information please post it...? Especially wrt to comment #16
I just emerged nvidia-kernel-1.0.6106 without problems. The changes made work for me.
I also have emerged nvidia-1.0.6106 with no difficulties. It seems the patch worked.
Fixed.