livecd linux # emerge x11-drivers/nvidia-drivers * IMPORTANT: 1 news items need reading for repository 'gentoo'. * Use eselect news to read news items. Calculating dependencies... done! >>> Verifying ebuild manifests >>> Emerging (1 of 1) x11-drivers/nvidia-drivers-96.43.11 openpty failed: 'out of pty devices' * NVIDIA-Linux-x86-96.43.11-pkg0.run RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.30-gentoo-r4 * Checking for MTRR support ... [ ok ] >>> Unpacking source... >>> Unpacking NVIDIA-Linux-x86-96.43.11-pkg0.run to /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/work/NVIDIA-Linux-x86-96.43.11-pkg0 * Applying NVIDIA_glx-defines.patch ... [ ok ] * Applying NVIDIA_glx-glheader.patch ... [ ok ] * Converting NVIDIA-Linux-x86-96.43.11-pkg0/usr/src/nv/Makefile.kbuild to use M= instead of SUBDIRS= ... [ ok ] >>> Source unpacked in /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/work >>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/work ... /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/temp/environment: line 2786: cd: /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/work/nvidia-drivers-96.43.11: No such file or directory ln: creating symbolic link `Module.symvers': File exists * Preparing nvidia module make HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/usr/src/linux HOST_CC=i686-pc-linux-gnu-gcc clean module NVIDIA: calling KBUILD... make CC=cc KBUILD_VERBOSE=1 -C /usr/src/linux M=/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/work/NVIDIA-Linux-x86-96.43.11-pkg0/usr/src/nv modules test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \ echo; \ echo " ERROR: Kernel configuration is invalid."; \ echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \ echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ echo; \ /bin/false) mkdir -p /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/work/NVIDIA-Linux-x86-96.43.11-pkg0/usr/src/nv/.tmp_versions ; rm -f /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/work/NVIDIA-Linux-x86-96.43.11-pkg0/usr/src/nv/.tmp_versions/* make -f scripts/Makefile.build obj=/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/work/NVIDIA-Linux-x86-96.43.11-pkg0/usr/src/nv cc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/work/NVIDIA-Linux-x86-96.43.11-pkg0/usr/src/nv/.nv.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include -Iinclude -I/usr/src/linux-2.6.30-gentoo-r4/arch/x86/include -include include/linux/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -fno-delete-null-pointer-checks -Os -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=athlon -mtune=generic -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -I/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/work/NVIDIA-Linux-x86-96.43.11-pkg0/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar -Werror -MD -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"96.43.11\" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/work/NVIDIA-Linux-x86-96.43.11-pkg0/usr/src/nv/nv.o /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/work/NVIDIA-Linux-x86-96.43.11-pkg0/usr/src/nv/nv.c /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/work/NVIDIA-Linux-x86-96.43.11-pkg0/usr/src/nv/nv.c: In function 'nvos_proc_create': /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/work/NVIDIA-Linux-x86-96.43.11-pkg0/usr/src/nv/nv.c:502: error: 'struct proc_dir_entry' has no member named 'owner' /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/work/NVIDIA-Linux-x86-96.43.11-pkg0/usr/src/nv/nv.c:503: error: 'struct proc_dir_entry' has no member named 'owner' /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/work/NVIDIA-Linux-x86-96.43.11-pkg0/usr/src/nv/nv.c:504: error: 'struct proc_dir_entry' has no member named 'owner' /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/work/NVIDIA-Linux-x86-96.43.11-pkg0/usr/src/nv/nv.c:524: error: 'struct proc_dir_entry' has no member named 'owner' /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/work/NVIDIA-Linux-x86-96.43.11-pkg0/usr/src/nv/nv.c:537: error: 'struct proc_dir_entry' has no member named 'owner' /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/work/NVIDIA-Linux-x86-96.43.11-pkg0/usr/src/nv/nv.c:548: error: 'struct proc_dir_entry' has no member named 'owner' /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/work/NVIDIA-Linux-x86-96.43.11-pkg0/usr/src/nv/nv.c:558: error: 'struct proc_dir_entry' has no member named 'owner' /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/work/NVIDIA-Linux-x86-96.43.11-pkg0/usr/src/nv/nv.c:568: error: 'struct proc_dir_entry' has no member named 'owner' /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/work/NVIDIA-Linux-x86-96.43.11-pkg0/usr/src/nv/nv.c:579: error: 'struct proc_dir_entry' has no member named 'owner' /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/work/NVIDIA-Linux-x86-96.43.11-pkg0/usr/src/nv/nv.c:586: error: 'struct proc_dir_entry' has no member named 'owner' /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/work/NVIDIA-Linux-x86-96.43.11-pkg0/usr/src/nv/nv.c: In function 'nvos_proc_add_warning_file': /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/work/NVIDIA-Linux-x86-96.43.11-pkg0/usr/src/nv/nv.c:613: error: 'struct proc_dir_entry' has no member named 'owner' make[3]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/work/NVIDIA-Linux-x86-96.43.11-pkg0/usr/src/nv/nv.o] Error 1 make[2]: *** [_module_/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/work/NVIDIA-Linux-x86-96.43.11-pkg0/usr/src/nv] Error 2 NVIDIA: left KBUILD. nvidia.ko failed to build! make[1]: *** [module] Error 1 make: *** [module] Error 2 * * ERROR: x11-drivers/nvidia-drivers-96.43.11 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3776: Called linux-mod_src_compile * environment, line 2805: 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}"; * The die message: * Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/usr/src/linux HOST_CC=i686-pc-linux-gnu-gcc clean module * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/temp/environment'. * >>> Failed to emerge x11-drivers/nvidia-drivers-96.43.11, Log file: >>> '/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/temp/build.log' * Messages for package x11-drivers/nvidia-drivers-96.43.11: * * ERROR: x11-drivers/nvidia-drivers-96.43.11 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3776: Called linux-mod_src_compile * environment, line 2805: 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}"; * The die message: * Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/usr/src/linux HOST_CC=i686-pc-linux-gnu-gcc clean module * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.11/temp/environment'. * * IMPORTANT: 1 news items need reading for repository 'gentoo'. * Use eselect news to read news items. ------------------------------------------------------------------- ----------after running in cnosole ------------------------------------------------------------------- livecd linux # make oldconfig && make prepare scripts/kconfig/conf -o arch/x86/Kconfig # # configuration written to .config # scripts/kconfig/conf -s arch/x86/Kconfig CHK include/linux/version.h CHK include/linux/utsrelease.h SYMLINK include/asm -> include/asm-x86 CALL scripts/checksyscalls.sh -----------------results are the same Reproducible: Always Steps to Reproduce: 1."emerge x11-drivers/nvidia-drivers" with nvidia-drivers masked > 97 2. 3.
I can confirm this. Since I got a rather old nvidia card: shell> lspci | grep -i nvidia 01:00.0 VGA compatible controller: nVidia Corporation NV18GL [Quadro NVS 280 SD] (rev c1) and NVidia dropped support for that card from their drivers years ago, I'm stuck with that version of the driver. I'd switch to the opensource driver, but as far as I know it doesn't support a dual head setup. NVidia proposes the following solution: http://forums.nvidia.com/lofiversion/index.php?t93482.html This boils down to comment all references to "owner" in the file nv.c Exact versions: * x11-drivers/nvidia-drivers-96.43.11 * sys-kernel/gentoo-sources-2.6.30-r4
You could follow the workaround for nvidia-drivers, but if I were you I'd try out the nouveau driver since it is supposed to work pretty well with older Nvidia cards. The nouveau driver is available in sunrise overlay and in x11 overlay; the sunrise version uses a particular snapshot, and the x11 overlay ebuild "live" and builds from the very latest source code (so results could depend on whether the code is in good shape on the day you build it).
Please try =x11-drivers/nvidia-drivers-96.43.13 instead.
*** This bug has been marked as a duplicate of bug 281302 ***
Reinstalled system with nvidia-96.11.13, the error above disappeared. Everything works ok)