As gentoo-sources-2.6.25 are now stable on x86, it would be nice to have also a working ebuild for the oldschool legacy nvidia cards... :-) Thanks! Reproducible: Always Steps to Reproduce: 1.compile a 2.6.25 kernel 2.emerge nvidia-drivers/nvidia-drivers-71.86.04 Actual Results: >>> Emerging (1 of 1) x11-drivers/nvidia-drivers-71.86.04 to / * NVIDIA-Linux-x86-71.86.04-pkg0.run RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking NVIDIA-Linux-x86-71.86.04-pkg0.run ;-) ... [ ok ] * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.25-gentoo-r4 * Checking for MTRR support ... [ ok ] >>> Unpacking source... Creating directory NVIDIA-Linux-x86-71.86.04-pkg0 Verifying archive integrity... OK Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 71.86.04....................................................................... * Applying NVIDIA_glx-defines.patch ... [ ok ] * Applying NVIDIA_glx-glheader.patch ... [ ok ] * Converting Makefile.kbuild to use M= instead of SUBDIRS= ... [ ok ] >>> Source unpacked. >>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.04/work/NVIDIA-Linux-x86-71.86.04-pkg0/usr/src/nv ... * Preparing nvidia module NVIDIA: calling KBUILD... make CC=i686-pc-linux-gnu-gcc KBUILD_VERBOSE=1 -C /usr/src/linux M=/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.04/work/NVIDIA-Linux-x86-71.86.04-pkg0/usr/src/nv modules make[2]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. 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-71.86.04/work/NVIDIA-Linux-x86-71.86.04-pkg0/usr/src/nv/.tmp_versions ; rm -f /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.04/work/NVIDIA-Linux-x86-71.86.04-pkg0/usr/src/nv/.tmp_versions/* make -f scripts/Makefile.build obj=/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.04/work/NVIDIA-Linux-x86-71.86.04-pkg0/usr/src/nv i686-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.04/work/NVIDIA-Linux-x86-71.86.04-pkg0/usr/src/nv/.nv.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os -fno-stack-protector -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=pentium2 -mtune=i686 -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 -Iinclude/asm-x86/mach-default -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -I/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.04/work/NVIDIA-Linux-x86-71.86.04-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 -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_VERSION_STRING=\"71.86.04\" -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -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-71.86.04/work/NVIDIA-Linux-x86-71.86.04-pkg0/usr/src/nv/.tmp_nv.o /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.04/work/NVIDIA-Linux-x86-71.86.04-pkg0/usr/src/nv/nv.c i686-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.04/work/NVIDIA-Linux-x86-71.86.04-pkg0/usr/src/nv/.nv-vm.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os -fno-stack-protector -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=pentium2 -mtune=i686 -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 -Iinclude/asm-x86/mach-default -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -I/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.04/work/NVIDIA-Linux-x86-71.86.04-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 -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_VERSION_STRING=\"71.86.04\" -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_vm)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.04/work/NVIDIA-Linux-x86-71.86.04-pkg0/usr/src/nv/.tmp_nv-vm.o /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.04/work/NVIDIA-Linux-x86-71.86.04-pkg0/usr/src/nv/nv-vm.c /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.04/work/NVIDIA-Linux-x86-71.86.04-pkg0/usr/src/nv/nv-vm.c: In function 'nv_set_page_attrib_uncached': /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.04/work/NVIDIA-Linux-x86-71.86.04-pkg0/usr/src/nv/nv-vm.c:64: warning: 'change_page_attr' is deprecated (declared at include/asm/cacheflush.h:28) /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.04/work/NVIDIA-Linux-x86-71.86.04-pkg0/usr/src/nv/nv-vm.c: In function 'nv_set_page_attrib_cached': /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.04/work/NVIDIA-Linux-x86-71.86.04-pkg0/usr/src/nv/nv-vm.c:79: warning: 'change_page_attr' is deprecated (declared at include/asm/cacheflush.h:28) /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.04/work/NVIDIA-Linux-x86-71.86.04-pkg0/usr/src/nv/nv-vm.c: In function 'nv_flush_caches': /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.04/work/NVIDIA-Linux-x86-71.86.04-pkg0/usr/src/nv/nv-vm.c:363: error: implicit declaration of function 'global_flush_tlb' make[3]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.04/work/NVIDIA-Linux-x86-71.86.04-pkg0/usr/src/nv/nv-vm.o] Error 1 make[2]: *** [_module_/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.04/work/NVIDIA-Linux-x86-71.86.04-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-71.86.04 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3568: Called linux-mod_src_compile * environment, line 2634: Called die * The specific snippet of code: * eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" CC=\"$(get-KERNEL_CC)\" LDFLAGS=\"$(get_abi_LDFLAGS)\" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}"; * The die message: * Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLAGS= IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/usr/src/linux 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-71.86.04/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.04/temp/environment'. * * Messages for package x11-drivers/nvidia-drivers-71.86.04: * * ERROR: x11-drivers/nvidia-drivers-71.86.04 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3568: Called linux-mod_src_compile * environment, line 2634: Called die * The specific snippet of code: * eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" CC=\"$(get-KERNEL_CC)\" LDFLAGS=\"$(get_abi_LDFLAGS)\" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}"; * The die message: * Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLAGS= IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/usr/src/linux 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-71.86.04/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.04/temp/environment'. * The patch can be found here: http://www.nvnews.net/vbulletin/showthread.php?s=870cd0095b1076a84891a4ee01815e69&t=110088
Ah, yes. Sorry that got overlooked. On it.
+ 21 May 2008; <chainsaw@gentoo.org> + +files/NVIDIA_kernel-71.86.04-2305230.diff, + nvidia-drivers-71.86.04.ebuild: + Add patch to allow building on 2.6.25 kernels; thanks to Andreas + <andreas.schuerch@nativenet.ch>. No revision bump, the module didnt build + for affected users. Closes bug #223047. This is in CVS now, please allow up to 2 hours for this to propagate before you run emerge --sync. Thank you for your contribution to Gentoo Linux :)