Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54501 - Can't emerge media-video/nvidia-kernel-1.0.5336-r4 with gentoo-dev-sources-2.6.7, "Unable to determine kernel version".
Summary: Can't emerge media-video/nvidia-kernel-1.0.5336-r4 with gentoo-dev-sources-2....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
: 55053 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-20 03:15 UTC by Xake
Modified: 2004-07-16 23:43 UTC (History)
3 users (show)

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 Xake 2004-06-20 03:15:51 UTC
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"
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2004-06-20 05:33:50 UTC
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 ...
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2004-06-20 05:41:04 UTC
'make prepare-all' for later 2.6 kernels should do the job btw
Comment 3 Xake 2004-06-20 07:48:17 UTC
Everything was compiled, but just running "make prepare-all" did the work....
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2004-06-20 08:05:54 UTC
So it worked fine after running that?
Comment 5 Xake 2004-06-20 08:37:29 UTC
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...
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2004-06-20 08:50:03 UTC
Please check comment #5 guys ...
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2004-06-26 10:03:46 UTC
*** Bug 55053 has been marked as a duplicate of this bug. ***
Comment 8 Andrew Bevitt 2004-06-26 17:35:25 UTC
Kalle are you using the koutput feature of the new kernels???
Comment 9 Frank 2004-06-27 04:48:16 UTC
running:

make prepare-all
emerge nvidia-kernel

did not make any difference for me (#55053).
Comment 10 Andrew Bevitt 2004-06-27 05:36:08 UTC
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.
Comment 11 Martin Schlemmer (RETIRED) gentoo-dev 2004-06-27 08:07:23 UTC
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.
Comment 12 Andrew Bevitt 2004-06-27 19:04:58 UTC
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).
Comment 13 Xake 2004-06-28 06:33:09 UTC
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.
Comment 14 Andrew Bevitt 2004-06-28 07:01:01 UTC
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).
Comment 15 Stuart Coyle 2004-06-29 04:21:10 UTC
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.

  
Comment 16 Andrew Bevitt 2004-06-30 01:01:33 UTC
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).
Comment 17 Tim Yamin (RETIRED) gentoo-dev 2004-07-03 13:17:18 UTC
This looks like more of a KOUTPUT issue than a genkernel issue so I'm reassigning this...
Comment 18 Andrew Bevitt 2004-07-03 18:39:06 UTC
Anyone with futher information please post it...? Especially wrt to comment #16
Comment 19 Frank 2004-07-04 03:36:15 UTC
I just emerged nvidia-kernel-1.0.6106 without problems. The changes made work for me.
Comment 20 Stuart Coyle 2004-07-04 23:40:25 UTC
I also have emerged nvidia-1.0.6106 with no difficulties.
It seems the patch worked.
Comment 21 Andrew Bevitt 2004-07-16 23:43:34 UTC
Fixed.