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.
Created attachment 297749 [details] emerge --info
Created attachment 297751 [details] emerge --info nvidia-drivers
Created attachment 297753 [details] build.log
Created attachment 297755 [details] environment
The kernel version on which nvidia-drivers fail to install is sys-kernel/gentoo-sources-3.0.6.
Please post your output for `eselect kernel list'.
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/
(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
(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.
# 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?
Created attachment 297867 [details] build for 3.1.6 gentoo sources
I'm sure this is a duplicate...
The versions of nvidia-drivers you were using didn't support those kernels. Use a more recent nvidia-drivers version.