Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 247461 - x11-drivers/nvidia-drivers-96.43.09 (beta) version bump
Summary: x11-drivers/nvidia-drivers-96.43.09 (beta) version bump
Status: RESOLVED DUPLICATE of bug 242476
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 1 vote (vote)
Assignee: Ricardo Mendoza (RETIRED)
URL: http://www.nvnews.net/vbulletin/showt...
Whiteboard:
Keywords:
Depends on:
Blocks: 242476
  Show dependency tree
 
Reported: 2008-11-18 18:18 UTC by Petr Pisar
Modified: 2008-12-18 20:59 UTC (History)
7 users (show)

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


Attachments
Ebuild for 96.43.09 version (nvidia-drivers-96.43.09.ebuild.diff,878 bytes, patch)
2008-11-18 18:22 UTC, Petr Pisar
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisar 2008-11-18 18:18:45 UTC
nVidia released its legacy graphics card driver version 96.43.09 in beta status. 

This version is the only one which is compatible with Linux 2.6.27. According release notes it adds support for xorg-server-1.5 and fixes some bugs.

It would nice if gentoo provided this version because current state blocks owners of such old fashion cars in kernel upgrade.
Comment 1 Petr Pisar 2008-11-18 18:22:10 UTC
Created attachment 172278 [details, diff]
Ebuild for 96.43.09 version

This patch points to unstable drivers distribution server. (Tested only on x86.)
Comment 2 Neil 2008-11-21 14:43:17 UTC
(In reply to comment #1)

What kernel version have you built this against?

It compiled fine against sys-kernel/gentoo-sources-2.6.26-r3 but bizarrely fails against sys-kernel/gentoo-sources-2.6.27-r3?
Comment 3 Neil 2008-11-21 14:56:09 UTC
(In reply to comment #2)


To add a bit more info, trying to emerge the ebuild it dies with....

******************* emerging nvidia-drivers *******************************
 # emerge nvidia-drivers
WARNING: repository at /usr/local/portage/hugin is missing a repo_name entry

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] x11-drivers/nvidia-drivers-96.43.07  USE="acpi gtk (-multilib)" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) x11-drivers/nvidia-drivers-96.43.07
 * NVIDIA-Linux-x86-96.43.07-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.27-gentoo-r3
 * Checking for MTRR support ...                                                                                           [ ok ]
>>> Unpacking source...
Creating directory NVIDIA-Linux-x86-96.43.07-pkg0
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 96.43.07.............................................................................................................................
 * Applying NVIDIA_glx-defines.patch ...                                                                                   [ ok ]
 * Applying NVIDIA_glx-glheader.patch ...                                                                                  [ ok ]
 * Applying NVIDIA_i2c-hwmon.patch ...                                                                                     [ ok ]
 * Converting Makefile.kbuild to use M= instead of SUBDIRS= ...                                                            [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv ...
ln: creating symbolic link `Module.symvers': File exists
 * Preparing nvidia module
make -j1 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 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.07/work/NVIDIA-Linux-x86-96.43.07-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.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/.tmp_versions ; rm -f /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/.tmp_versions/*
make -f scripts/Makefile.build obj=/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv
  cc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/.nv.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include -D__KERNEL__ -Iinclude  -I/usr/src/linux-2.6.27-gentoo-r3/arch/x86/include -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=athlon -mtune=generic -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 -fno-stack-protector -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -I/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-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.07\" -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.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/nv.o /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/nv.c
In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/nv.c:14:
/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/nv-linux.h:106:27: error: asm/semaphore.h: No such file or directory
In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/nv.c:14:
/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/nv-linux.h: In function 'nv_execute_on_all_cpus':
/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/nv-linux.h:627: error: too many arguments to function 'on_each_cpu'
/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/nv.c: In function 'nv_kern_cpu_callback':
/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/nv.c:1191: error: too many arguments to function 'smp_call_function'
/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/nv.c:1198: error: too many arguments to function 'smp_call_function'
make[3]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/nv.o] Error 1
make[2]: *** [_module_/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-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.07 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3615:  Called linux-mod_src_compile
 *             environment, line 2680:  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 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.07/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/temp/environment'.
 *

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

>>>  '/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/temp/build.log'

******************* emerging nvidia-drivers *******************************
Comment 4 Neil 2008-11-21 14:56:52 UTC
(In reply to comment #3)

...yet if I CD to the directory I can build the module manually with....

****************** compiling module manually ******************************
# make module
NVIDIA: calling KBUILD...
make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.26-gentoo-r1/build KBUILD_VERBOSE=1 -C /lib/modules/2.6.26-gentoo-r1/source M=/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv modules
make -C /lib/modules/2.6.26-gentoo-r1/build \
        KBUILD_SRC=/usr/src/linux-2.6.26-gentoo-r1 \
        KBUILD_EXTMOD="/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv" -f /usr/src/linux-2.6.26-gentoo-r1/Makefile \
        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.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/.tmp_versions ; rm -f /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/.tmp_versions/*
make -f /usr/src/linux-2.6.26-gentoo-r1/scripts/Makefile.build obj=/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv
  cc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/.nv.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.26-gentoo-r1/include -include include/linux/autoconf.h  -I/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv -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=athlon -mtune=generic -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 -I/usr/src/linux-2.6.26-gentoo-r1/include/asm-x86/mach-default -Iinclude/asm-x86/mach-default -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign  -I/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-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.07\" -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.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/nv.o /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/nv.c
  cc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/.nv-vm.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.26-gentoo-r1/include -include include/linux/autoconf.h  -I/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv -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=athlon -mtune=generic -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 -I/usr/src/linux-2.6.26-gentoo-r1/include/asm-x86/mach-default -Iinclude/asm-x86/mach-default -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign  -I/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-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.07\" -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-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/nv-vm.o /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/nv-vm.c
  cc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/.os-agp.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.26-gentoo-r1/include -include include/linux/autoconf.h  -I/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv -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=athlon -mtune=generic -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 -I/usr/src/linux-2.6.26-gentoo-r1/include/asm-x86/mach-default -Iinclude/asm-x86/mach-default -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign  -I/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-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.07\" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(os_agp)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/os-agp.o /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/os-agp.c
  cc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/.os-interface.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.26-gentoo-r1/include -include include/linux/autoconf.h  -I/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv -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=athlon -mtune=generic -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 -I/usr/src/linux-2.6.26-gentoo-r1/include/asm-x86/mach-default -Iinclude/asm-x86/mach-default -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign  -I/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-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.07\" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(os_interface)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/os-interface.o /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/os-interface.c
  cc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/.os-registry.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.26-gentoo-r1/include -include include/linux/autoconf.h  -I/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv -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=athlon -mtune=generic -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 -I/usr/src/linux-2.6.26-gentoo-r1/include/asm-x86/mach-default -Iinclude/asm-x86/mach-default -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign  -I/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-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.07\" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(os_registry)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/os-registry.o /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/os-registry.c
  cc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/.nv-i2c.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.26-gentoo-r1/include -include include/linux/autoconf.h  -I/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv -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=athlon -mtune=generic -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 -I/usr/src/linux-2.6.26-gentoo-r1/include/asm-x86/mach-default -Iinclude/asm-x86/mach-default -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign  -I/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-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.07\" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_i2c)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/nv-i2c.o /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/nv-i2c.c
  ld -m elf_i386   -r -o /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/nvidia.o /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/nv-kernel.o /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/nv.o /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/nv-vm.o /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/os-agp.o /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/os-interface.o /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/os-registry.o /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/nv-i2c.o
(cat /dev/null;   echo kernel//var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/nvidia.ko;) > /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/modules.order
  Building modules, stage 2.
make -f /usr/src/linux-2.6.26-gentoo-r1/scripts/Makefile.modpost
  scripts/mod/modpost   -i /usr/src/linux-2.6.26-gentoo-r1/Module.symvers -I /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/Module.symvers  -o /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/Module.symvers -S   -w  -s
  cc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/.nvidia.mod.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.26-gentoo-r1/include -include include/linux/autoconf.h  -I/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv -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=athlon -mtune=generic -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 -I/usr/src/linux-2.6.26-gentoo-r1/include/asm-x86/mach-default -Iinclude/asm-x86/mach-default -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign  -I/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-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.07\" -UDEBUG -U_DEBUG -DNDEBUG  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nvidia.mod)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -DMODULE -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/nvidia.mod.o /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/nvidia.mod.c
  ld -r -m elf_i386  --build-id -o /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/nvidia.ko /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/nvidia.o /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.07/work/NVIDIA-Linux-x86-96.43.07-pkg0/usr/src/nv/nvidia.mod.o
NVIDIA: left KBUILD.
****************** compiling module manually ******************************

So it doesn't look like the problem is with nvidia-drivers per se but how the ebuild is handling it.  I suspect its in the wrong directory at some point which is why the ebuild is complaining about not being able to find  "asm/semaphore.h"
Comment 5 Neil 2008-11-22 10:48:38 UTC
(In reply to comment #4)

Ok scratch the above, I'm an idiot and forgot to remove a mask in /etc/portage/package.mask that I had in place to prevent newer (incompatable) versions of the driver from being emerged.  Installs fine.
Comment 6 Krzysztof Głowiński 2008-12-03 11:24:25 UTC
(In reply to comment #1)

>>> Source compiled.                                                                                                            
>>> Test phase [not enabled]: x11-drivers/nvidia-drivers-96.43.09                                                               

>>> Install nvidia-drivers-96.43.09 into /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.09/image/ category x11-drivers
 * Installing nvidia module                                                                                              
 *                                                                                                                       
 * ERROR: x11-drivers/nvidia-drivers-96.43.09 failed.                                                                    
 * Call stack:                                                                                                           
 *               ebuild.sh, line   49:  Called src_install                                                               
 *             environment, line 3624:  Called die                                                                       
 * The specific snippet of code:                                                                                         
 *           [ -f "${FILESDIR}/nvidia" ] || die "nvidia missing in FILESDIR";                                            
 *  The die message:                                                                                                     
 *   nvidia missing in FILESDIR                                                                                          
 *                                                                                                                       
 * 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.09/temp/build.log'.             
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.09/temp/environment'.    
 * This ebuild is from an overlay: '/home/wspolne/ebuildy/'                                                              
 *                                                                                                                       

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

>>>  '/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.09/temp/build.log'

 
Comment 7 Petr Pisar 2008-12-03 13:23:04 UTC
(In reply to comment #6)
> 
> >>> Install nvidia-drivers-96.43.09 into /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.09/image/ category x11-drivers
>
>  * ERROR: x11-drivers/nvidia-drivers-96.43.09 failed.                           
>  * Call stack:                                                                  
>  *               ebuild.sh, line   49:  Called src_install                      
>  *             environment, line 3624:  Called die                              
>  * The specific snippet of code:                                                
>  *           [ -f "${FILESDIR}/nvidia" ] || die "nvidia missing in FILESDIR";   
>  *  The die message:                                                            
>  *   nvidia missing in FILESDIR                                                 
 
You have no nvidia file under ${FILESDIR}. Did you forget to copy files subdirectory from original nvidia-drivers to the overloay?
Comment 8 Piotr Szymaniak 2008-12-03 14:34:00 UTC
Works fine here.
Comment 9 Sebastian Krämer 2008-12-03 20:48:28 UTC
I just copied (and renamed) the existing ebuild from the portage tree (as well as the files folder) and downloaded the files manually (which should be equal to what this ebuild does), works great.
This patch should really hit the official tree IMO.
Comment 10 Petr Pisar 2008-12-03 21:33:45 UTC
Notice for developers: this bug seems to be duplicate of bug #242476. However this bug supports both x86 and both amd64 architectures.
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2008-12-04 05:23:36 UTC
Well, maybe it solves that bug - it works for me but it's still a beta and perhaps shouldn't ever go stable according to UPSTREAM.
Comment 12 Neil 2008-12-04 08:08:40 UTC
(In reply to comment #11)

There is another problem with marking this stable....

What version of x11-base/xorg-server are you guys compiling this against?  I had previously masked >x11-base/xorg-server-1.4.2, but 96.43.09 adds support for xorg-1.5.2 (see http://www.nvnews.net/vbulletin/showthread.php?t=122139 ).  So I unmasked x11-base/xorg-server and hit the following block...

# emerge -uDNa world
These are the packages that would be merged, in order:

Calculating dependencies... done!

!!! All ebuilds that could satisfy ">=x11-drivers/nvidia-drivers-173.14.09" have been masked.
!!! One of the following masked packages is required to complete your request:
- x11-drivers/nvidia-drivers-177.80 (masked by: package.mask)
/etc/portage/package.mask:
# Nvidia graphics car is no longer supported
## Must use legacy version...

- x11-drivers/nvidia-drivers-177.70 (masked by: package.mask)
- x11-drivers/nvidia-drivers-177.68 (masked by: package.mask)
- x11-drivers/nvidia-drivers-177.67 (masked by: package.mask)
- x11-drivers/nvidia-drivers-177.13 (masked by: package.mask)
- x11-drivers/nvidia-drivers-173.14.12 (masked by: package.mask)
- x11-drivers/nvidia-drivers-173.14.09 (masked by: package.mask)

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
(dependency required by "x11-base/xorg-server-1.5.2" [ebuild])
(dependency required by "x11-wm/compiz-0.7.8" [installed])
(dependency required by "x11-plugins/compiz-fusion-plugins-extra-0.7.8" [installed])
(dependency required by "@world" [argument])


...and this is because the current ebuild for x11-base/xorg-server-1.5.2 currently requires the newer version of the nvidia driver which has supported xorg-server-1.5.x for a while...

 # grep nvidia /usr/portage/x11-base/xorg-server/xorg-server-1.5.2.ebuild 
        video_cards_nvidia"
                video_cards_nvidia? ( >=x11-drivers/nvidia-drivers-173.14.09 )
                real_card=${real_card/%nv/nvidia}


So, how are people compiling against the new version, have you created an overlay for x11-base/xorg-server and modified the dependency?

Currently x11-base/xorg-server-1.5.2-r1 is masked, even though the ebuild hasn't yet hit portage (http://packages.gentoo.org/package/x11-base/xorg-server) and..

# ls /usr/portage/x11-base/xorg-server/              
ChangeLog  files         xorg-server-1.3.0.0-r6.ebuild  xorg-server-1.5.2.ebuild
Manifest   metadata.xml  xorg-server-1.4.2.ebuild


I can bump xorg-server-1.5.2.ebuild to xorg-server-1.5.2-r2.ebuild (and this compiles and runs fine with nvidia-drivers-96.43.09), but will obviously be missing out on the changes in the xorg-server-1.5.1-r1.ebuild, and the ebuild for xorg-server-1.5.2 needs this resolving before nvidia-drivers-96.43.09 is marked stable.
Comment 13 Petr Pisar 2008-12-04 09:23:58 UTC
(In reply to comment #12)
> 
> There is another problem with marking this stable....
> 
> What version of x11-base/xorg-server are you guys compiling this against?
> 
I'm still sticking on x11-base/xorg-server-1.4.2.
Comment 14 Neil 2008-12-04 10:38:30 UTC
(In reply to comment #13)
>
> I'm still sticking on x11-base/xorg-server-1.4.2.
>
Doesn't seem much point in bumping the driver in portage until....

a) Its goes stable upstream (at which point it will likely have a version bump too).

b) The drivers been tested with x11-base/xorg-server-1.5.* (after all the main feature of 96.43.09 is that it supports xorg-1.5 AND >kernel-2.6.27) and the ebuild for xorg-server-1.5.2 been revised.

If you're happy to stick with xorg-1.4.2 and use your overlay for nvidia-drivers-96.43.09 then thats fine, but marking the driver stable in portage will create a load of hassle until the above two are resolved.


Comment 15 Petr Pisar 2008-12-04 11:25:47 UTC
(In reply to comment #14)
> >
> > I'm still sticking on x11-base/xorg-server-1.4.2.
> >
> Doesn't seem much point in bumping the driver in portage until....
> 
You are right.

Actually, my original problem is there is no nvidia-driver for kernel 2.6.27 in portage. Once I unmask kernel 2.6.27 or you make it stable, I'll get into troubles.

So, it would be nice if nvidia-drivers-96.43.09 or nvidia-drivers-96.43.07-r1 (patched from bug #242476) got into portage as unstable now and as stable after stabilizing kernel 2.6.27.
Comment 16 Krzysztof Głowiński 2008-12-04 12:32:46 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > 
> > >>> Install nvidia-drivers-96.43.09 into /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.09/image/ category x11-drivers
> >
> >  * ERROR: x11-drivers/nvidia-drivers-96.43.09 failed.                           
> >  * Call stack:                                                                  
> >  *               ebuild.sh, line   49:  Called src_install                      
> >  *             environment, line 3624:  Called die                              
> >  * The specific snippet of code:                                                
> >  *           [ -f "${FILESDIR}/nvidia" ] || die "nvidia missing in FILESDIR";   
> >  *  The die message:                                                            
> >  *   nvidia missing in FILESDIR                                                 
> 
> You have no nvidia file under ${FILESDIR}. Did you forget to copy files
> subdirectory from original nvidia-drivers to the overloay?
> 
Yes, you're right. Now it's working.

Comment 17 Doug Goldstein (RETIRED) gentoo-dev 2008-12-18 20:59:51 UTC

*** This bug has been marked as a duplicate of bug 242476 ***