Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73983 - nvidia-kernel fails to detect KBUILD_OUTPUT
Summary: nvidia-kernel fails to detect KBUILD_OUTPUT
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-10 00:17 UTC by George Papadopoulos
Modified: 2004-12-10 23:38 UTC (History)
1 user (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 George Papadopoulos 2004-12-10 00:17:19 UTC
I`m using koutput on an x86 system with the gentoo-2.6.9-r9 kernel. I tried emerging nvidia-kernel after compiling my kernel but it exited with an error that the .config configuration file could not be found. After copying .config to /usr/src/linux everything worked fine. 
  I believe there is a bug here. The configuration file should have been sought at /var/tmp/kernel-output/...

Reproducible: Always
Steps to Reproduce:
1.update kernel to latest version
2. Enable koutput
3. emerge nvidia-kernel
Comment 1 Andrew Bevitt 2004-12-10 04:50:37 UTC
There are two ways this is supported

1) you have KBUILD_OUTPUT set in your environment then this should work.
2) the build process looks in /usr/src/linux/Makefile for KBUILD_OUTPUT

1) is unlikely in your case, so can you please check the Makefile is correct.
However if you specified the output using O= on the CLI when compiling your kernel then you will need to do so again to merge nvidia-kernel.
Comment 2 Kostas Kavourakis 2004-12-10 06:31:05 UTC
I am also affected by this bug. I checked the kernel makefile as suggested by Andrew Bevitt, and KBUILD_OUTPUT is indeed defined correctly there. This used to work without problems until December 5th, the last time I had nvidia-kernel build successfully. Since then, I didn't change anything in my kernel configuration, so this must a bug introduced recently, probably in some eclass file.
Comment 3 Andrew Bevitt 2004-12-10 12:15:23 UTC
John: You wanted some test cases :)
Comment 4 John Mylchreest (RETIRED) gentoo-dev 2004-12-10 14:35:10 UTC
could you please do me a favour and attach your kernel Makefile and .config
please also state your version of make (make -v), and the sources you are using.

passing O= for the record wont work for modules in the portage tree, since O is already defined in the portage environment and cannot be reused.
if we are passing anything, it should be KBUILD_OUTPUT.

Cheers.
Comment 5 John Mylchreest (RETIRED) gentoo-dev 2004-12-10 15:07:23 UTC
Problem was added with a patch which I didn't fully check before applying.
My apologies.
Has now been fixed as of 1.8
Comment 6 Kostas Kavourakis 2004-12-10 22:48:34 UTC
Unfortunately, now I'm getting this:
x86
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.9-gentoo-r9

 * getfilevar requires 2 variables, with the second a valid file.
 *    getfilevar <VARIABLE> <CONFIGFILE>
 * Could not find a usable .config in the kernel source directory.
 * Please ensure that /usr/src/linux points to a configured set of Linux sources

!!! ERROR: media-video/nvidia-kernel-1.0.6629 failed.
!!! Function get_version, Line 231, Exitcode 0
!!! .config not found in /usr/src/linux
!!! If you need support, post the topmost build error, NOT this status message.
Comment 7 Kostas Kavourakis 2004-12-10 23:38:11 UTC
Well, I decided to delete my kernel output dir, and rerun config-kernel --make-koutput. After compiling the kernel, it just plain worked! Case closed (I hope!).