Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 397453 - x11-drivers/nvidia-drivers-290.10 - *** Unable to determine the target kernel version. ***
Summary: x11-drivers/nvidia-drivers-290.10 - *** Unable to determine the target kernel...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-03 01:29 UTC by a_tevelev
Modified: 2012-03-23 15:36 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,4.85 KB, text/plain)
2012-01-03 01:30 UTC, a_tevelev
Details
emerge --info nvidia-drivers (emerge_nvidia-drivers.info,5.23 KB, text/plain)
2012-01-03 01:31 UTC, a_tevelev
Details
build.log (build.log.gz,2.34 KB, application/x-gzip)
2012-01-03 01:33 UTC, a_tevelev
Details
environment (environment,153.20 KB, text/plain)
2012-01-03 01:34 UTC, a_tevelev
Details
build for 3.1.6 gentoo sources (build_3.1.6.log.gz,2.34 KB, application/x-gzip)
2012-01-04 04:38 UTC, a_tevelev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description a_tevelev 2012-01-03 01:29:05 UTC
x11-drivers/nvidia-drivers-290.10 fails to build:

# emerge -v x11-drivers/nvidia-drivers
...

>>> Failed to emerge x11-drivers/nvidia-drivers-290.10, Log file:

>>>  '/tmp/portage/x11-drivers/nvidia-drivers-290.10/temp/build.log.gz'

 * Messages for package x11-drivers/nvidia-drivers-290.10:

 * Package:    x11-drivers/nvidia-drivers-290.10
 * Repository: gentoo
 * Maintainer: cardoe@gentoo.org jer@gentoo.org,spock@gentoo.org
 * USE:        acpi amd64 elibc_glibc gtk kernel_linux userland_GNU
 * FEATURES:   sandbox userpriv usersandbox
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/3.0.6-gentoo/build
 * Found sources for kernel version:
 *     3.0.6-gentoo
 * Checking for MTRR support ...
 * Applying 256.35-unified-arch.patch ...
 * Converting /kernel/Makefile.kbuild to use M= instead of SUBDIRS= ...
 * Preparing nvidia module
 * ERROR: x11-drivers/nvidia-drivers-290.10 failed (compile phase):
 *   Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=-m elf_x86_64  IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux              SYSOUT=/lib/modules/3.0.6-gentoo/build CC=x86_64-pc-linux-gnu-gcc clean module
 * 
 * Call stack:
 *     ebuild.sh, line   75:  Called src_compile
 *   environment, line 3809:  Called linux-mod_src_compile
 *   environment, line 2768:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                                               CROSS_COMPILE=${CHOST}-                            LDFLAGS=\"$(get_abi_LDFLAGS)\"                                           ${BUILD_FIXES}                                          ${BUILD_PARAMS}            ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 * 
 * If you need support, post the output of 'emerge --info =x11-drivers/nvidia-drivers-290.10',
 * the complete build log and the output of 'emerge -pqv =x11-drivers/nvidia-drivers-290.10'.
 * The complete build log is located at '/tmp/portage/x11-drivers/nvidia-drivers-290.10/temp/build.log.gz'.
 * The ebuild environment file is located at '/tmp/portage/x11-drivers/nvidia-drivers-290.10/temp/environment'.
 * S: '/tmp/portage/x11-drivers/nvidia-drivers-290.10/work/'

Reproducible: Always

Steps to Reproduce:
1. emerge x11-drivers/nvidia-drivers

Actual Results:  
Fails to emerge.

Expected Results:  
Installs successfully.

Installs on 2.6.39.3 vanilla kernel correctly.
Comment 1 a_tevelev 2012-01-03 01:30:20 UTC
Created attachment 297749 [details]
emerge --info
Comment 2 a_tevelev 2012-01-03 01:31:56 UTC
Created attachment 297751 [details]
emerge --info nvidia-drivers
Comment 3 a_tevelev 2012-01-03 01:33:19 UTC
Created attachment 297753 [details]
build.log
Comment 4 a_tevelev 2012-01-03 01:34:18 UTC
Created attachment 297755 [details]
environment
Comment 5 a_tevelev 2012-01-03 01:35:57 UTC
The kernel version on which nvidia-drivers fail to install is sys-kernel/gentoo-sources-3.0.6.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2012-01-03 10:04:36 UTC
Please post your output for `eselect kernel list'.
Comment 7 tdr 2012-01-03 10:32:16 UTC
Did you attempt to use the same kernel config with gentoo-sources-3.0.6 as you
used with vanilla-sources-2.6.39.3?  If so, try a fresh kernel config.  The
kernel config I used to test with was very basic, but I installed
gentoo-sources-3.0.6 and nvidia-drivers-290.10 compiled fine:

# readlink /usr/src/linux
linux-3.0.6-gentoo

>>> Emerging (1 of 1) x11-drivers/nvidia-drivers-290.10
 * NVIDIA-Linux-x86_64-290.10.run RMD160 SHA1 SHA256 size ;-) ...              
                                                                      [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
...
 * Found kernel object directory:
 *     /lib/modules/3.0.6-gentoo/build
 * Found sources for kernel version:
 *     3.0.6-gentoo
 * Checking for MTRR support ...                                               
                                                                      [ ok ]
>>> Unpacking source...
>>> Unpacking NVIDIA-Linux-x86_64-290.10.run to /var/tmp/portage/x11-drivers/nvidia-drivers-290.10/work
>>> Source unpacked in /var/tmp/portage/x11-drivers/nvidia-drivers-290.10/work
>>> Preparing source in /var/tmp/portage/x11-drivers/nvidia-drivers-290.10/work ...
 * Applying 256.35-unified-arch.patch ...                                      
                                                                      [ ok ]
 * Converting /kernel/Makefile.kbuild to use M= instead of SUBDIRS=            
                                                   [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-drivers/nvidia-drivers-290.10/work ...
>>> Source configured.
* Preparing nvidia module
...
...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-drivers/nvidia-drivers-290.10/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-290.10/work ...
>>> Install nvidia-drivers-290.10 into /var/tmp/portage/x11-drivers/nvidia-drivers-290.10/image/ category x11-drivers
 * Installing nvidia module
>>> Completed installing nvidia-drivers-290.10 into /var/tmp/portage/x11-drivers/nvidia-drivers-290.10/image/
Comment 8 tdr 2012-01-03 11:04:12 UTC
(In reply to comment #7)
> Did you attempt to use the same kernel config with gentoo-sources-3.0.6 as you
> used with vanilla-sources-2.6.39.3?  If so, try a fresh kernel config.  The
> kernel config I used to test with was very basic, but I installed
> gentoo-sources-3.0.6 and nvidia-drivers-290.10 compiled fine:
> 
> # readlink /usr/src/linux
> linux-3.0.6-gentoo
> 
> >>> Emerging (1 of 1) x11-drivers/nvidia-drivers-290.10
>  * NVIDIA-Linux-x86_64-290.10.run RMD160 SHA1 SHA256 size ;-) ...              
>                                                                       [ ok ]
>  * Determining the location of the kernel source code
>  * Found kernel source directory:
>  *     /usr/src/linux
> ...
>  * Found kernel object directory:
>  *     /lib/modules/3.0.6-gentoo/build
>  * Found sources for kernel version:
>  *     3.0.6-gentoo
>  * Checking for MTRR support ...                                               
>                                                                       [ ok ]
> >>> Unpacking source...
> >>> Unpacking NVIDIA-Linux-x86_64-290.10.run to /var/tmp/portage/x11-drivers/nvidia-drivers-290.10/work
> >>> Source unpacked in /var/tmp/portage/x11-drivers/nvidia-drivers-290.10/work
> >>> Preparing source in /var/tmp/portage/x11-drivers/nvidia-drivers-290.10/work ...
>  * Applying 256.35-unified-arch.patch ...                                      
>                                                                       [ ok ]
>  * Converting /kernel/Makefile.kbuild to use M= instead of SUBDIRS=            
>                                                    [ ok ]
> >>> Source prepared.
> >>> Configuring source in /var/tmp/portage/x11-drivers/nvidia-drivers-290.10/work ...
> >>> Source configured.
> * Preparing nvidia module
> ...
> ...
> >>> Source prepared.
> >>> Configuring source in /var/tmp/portage/x11-drivers/nvidia-drivers-290.10/work ...
> >>> Source configured.
> >>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-290.10/work ...
> >>> Install nvidia-drivers-290.10 into /var/tmp/portage/x11-drivers/nvidia-drivers-290.10/image/ category x11-drivers
>  * Installing nvidia module
> >>> Completed installing nvidia-drivers-290.10 into /var/tmp/portage/x11-drivers/nvidia-drivers-290.10/image/

^^
missed the *** Unable to determine the target kernel version. *** part.
Looks like the kernel sym link exists and is valid (directory exits), but was the kernel source --unmerged-ed?  #6 comment should show if it was
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2012-01-04 03:47:58 UTC
(In reply to comment #7)
> Did you attempt to use the same kernel config with gentoo-sources-3.0.6 as you
> used with vanilla-sources-2.6.39.3?  If so, try a fresh kernel config.  The
> kernel config I used to test with was very basic, but I installed
> gentoo-sources-3.0.6 and nvidia-drivers-290.10 compiled fine:
> 
> # readlink /usr/src/linux
> linux-3.0.6-gentoo
> 
> >>> Emerging (1 of 1) x11-drivers/nvidia-drivers-290.10

Please don't provide general help here - this is a bug tracker and not a support forum. If there's a bug we'll find it and if there isn't, this was the wrong venue to bring it up in.
Comment 10 a_tevelev 2012-01-04 04:36:58 UTC
# eselect kernel list
Available kernel symlink targets:
  [1]   linux-2.6.39.3
  [2]   linux-3.0.6-gentoo
  [3]   linux-3.1.6-gentoo *

Tried with sys-kernel/gentoo-sources-3.1.6 and a new .config file - the same result:

 * Messages for package x11-drivers/nvidia-drivers-290.10:

 * Package:    x11-drivers/nvidia-drivers-290.10
 * Repository: gentoo
 * Maintainer: cardoe@gentoo.org jer@gentoo.org,spock@gentoo.org
 * USE:        acpi amd64 elibc_glibc gtk kernel_linux userland_GNU
 * FEATURES:   sandbox userpriv usersandbox
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/3.1.6-gentoo/build
 * Found sources for kernel version:
 *     3.1.6-gentoo
 * Checking for MTRR support ...
 * Applying 256.35-unified-arch.patch ...
 * Converting /kernel/Makefile.kbuild to use M= instead of SUBDIRS= ...
 * Preparing nvidia module
 * ERROR: x11-drivers/nvidia-drivers-290.10 failed (compile phase):
 *   Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=-m elf_x86_64  IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux              SYSOUT=/lib/modules/3.1.6-gentoo/build CC=x86_64-pc-linux-gnu-gcc clean module
 * 
 * Call stack:
 *     ebuild.sh, line   75:  Called src_compile
 *   environment, line 3807:  Called linux-mod_src_compile
 *   environment, line 2768:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                                               CROSS_COMPILE=${CHOST}-                            LDFLAGS=\"$(get_abi_LDFLAGS)\"                                           ${BUILD_FIXES}                                          ${BUILD_PARAMS}            ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 * 
 * If you need support, post the output of 'emerge --info =x11-drivers/nvidia-drivers-290.10',
 * the complete build log and the output of 'emerge -pqv =x11-drivers/nvidia-drivers-290.10'.
 * The complete build log is located at '/tmp/portage/x11-drivers/nvidia-drivers-290.10/temp/build.log.gz'.
 * The ebuild environment file is located at '/tmp/portage/x11-drivers/nvidia-drivers-290.10/temp/environment'.
 * S: '/tmp/portage/x11-drivers/nvidia-drivers-290.10/work/'

Attaching a new build.log file.

Is there anything specific it is looking for in .config file?
Comment 11 a_tevelev 2012-01-04 04:38:00 UTC
Created attachment 297867 [details]
build for 3.1.6 gentoo sources
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2012-01-04 06:23:25 UTC
I'm sure this is a duplicate...
Comment 13 Doug Goldstein (RETIRED) gentoo-dev 2012-03-23 15:36:13 UTC
The versions of nvidia-drivers you were using didn't support those kernels. Use a more recent nvidia-drivers version.