public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-amd64] can not install nvidia driver
@ 2008-12-13  3:56 Mansour Al Akeel
  2008-12-13  7:01 ` [gentoo-amd64] " Duncan
  0 siblings, 1 reply; 5+ messages in thread
From: Mansour Al Akeel @ 2008-12-13  3:56 UTC (permalink / raw
  To: gentoo-amd64

Hello all,
I am trying to install nvidia drivers. I am running amd64 no-multilib. I 
have tried to "make oldconfig && make prepare " but no luck. I was 
running under kernel 2.6.27, then 2.6.26 but couldn't dig any further. 
What could be the issue ? Here is the log file:

mars mansour # cat  
/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/temp/build.log
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.27.6/build
 * Found sources for kernel version:
 *     2.6.27.6
 * Checking for MTRR support 
...                                                                                                     
[ ok ]
 * Checking for Paravirtualized guest support ...
 >>> Unpacking source...
Creating directory NVIDIA-Linux-x86_64-173.14.09-pkg2
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 
173.14.09...........................................................................................................................................
 * Applying NVIDIA_glx-defines.patch 
...                                                                                             
[ ok ]
 * Applying NVIDIA_glx-glheader.patch 
...                                                                                            
[ ok ]
 * Applying NVIDIA_i2c-hwmon.patch 
...                                                                                               
[ ok ]
 * Converting 
NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv/Makefile.kbuild to use M= 
instead of SUBDIRS= ...                        [ ok ]
 >>> Source unpacked.
 >>> Compiling source in 
/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2 
...
 * Preparing nvidia module
make HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 
LDFLAGS= IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux 
SYSOUT=/lib/modules/2.6.27.6/build HOST_CC=x86_64-pc-linux-gnu-gcc clean 
module
NVIDIA: calling KBUILD...
make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.27.6/build KBUILD_VERBOSE=1 -C 
/usr/src/linux 
M=/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv 
modules
make -C /lib/modules/2.6.27.6/build \
    KBUILD_SRC=/usr/src/linux-2.6.27.6 \
    
KBUILD_EXTMOD="/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv" 
-f /usr/src/linux-2.6.27.6/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-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv/.tmp_versions 
; rm -f 
/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv/.tmp_versions/*
make -f /usr/src/linux-2.6.27.6/scripts/Makefile.build 
obj=/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv
  cc 
-Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv/.nv.o.d  
-nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include 
-D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.27.6/include 
-I/usr/src/linux-2.6.27.6/arch/x86/include -include 
include/linux/autoconf.h  
-I/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv 
-Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing 
-fno-common -Werror-implicit-function-declaration -Os -m64 -march=k8 
-mno-red-zone -mcmodel=kernel -funit-at-a-time 
-maccumulate-outgoing-args -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.27.6/include/asm-x86/mach-default 
-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-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv 
-Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts 
-Wparentheses -Wno-multichar -Werror -mcmodel=kernel -mno-red-zone -MD 
-Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM 
-DNV_VERSION_STRING=\"173.14.09\" -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-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv/nv.o 
/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv/nv.c
In file included from 
/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv/nv.c:14:
/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv/nv-linux.h:107:27: 
error: asm/semaphore.h: No such file or directory
In file included from 
/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv/nv.c:14:
/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv/nv-linux.h: 
In function 'nv_execute_on_all_cpus':
/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv/nv-linux.h:674: 
error: too many arguments to function 'on_each_cpu'
/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv/nv.c: 
In function 'nv_kern_cpu_callback':
/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv/nv.c:1299: 
error: too many arguments to function 'smp_call_function'
/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv/nv.c:1306: 
error: too many arguments to function 'smp_call_function'
make[4]: *** 
[/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv/nv.o] 
Error 1
make[3]: *** 
[_module_/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv] 
Error 2
make[2]: *** [sub-make] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
 *
 * ERROR: x11-drivers/nvidia-drivers-173.14.09 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3711:  Called linux-mod_src_compile
 *             environment, line 2736:  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=x86_64-pc-linux-gnu-gcc 
CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=  IGNORE_CC_MISMATCH=yes V=1 
SYSSRC=/usr/src/linux         SYSOUT=/lib/modules/2.6.27.6/build 
HOST_CC=x86_64-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-173.14.09/temp/build.log'.
 * The ebuild environment file is located at 
'/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/temp/environment'.
 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [gentoo-amd64]  Re: can not install nvidia driver
  2008-12-13  3:56 [gentoo-amd64] can not install nvidia driver Mansour Al Akeel
@ 2008-12-13  7:01 ` Duncan
  2008-12-13  7:53   ` Peter Bleszynski
  2008-12-14 15:48   ` Mansour Al Akeel
  0 siblings, 2 replies; 5+ messages in thread
From: Duncan @ 2008-12-13  7:01 UTC (permalink / raw
  To: gentoo-amd64

Mansour Al Akeel <mansour.alakeel@gmail.com> posted
49433267.1090205@gmail.com, excerpted below, on  Fri, 12 Dec 2008 23:56:23
-0400:

> In file included from
> /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-
x86_64-173.14.09-pkg2/usr/src/nv/nv.c:14:
> /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-
x86_64-173.14.09-pkg2/usr/src/nv/nv-linux.h:107:27:
> error: asm/semaphore.h: No such file or directory

The arch-x86 (including 64-bit) header files were reorganized in kernel 
2.6.27, and as that says, asm/semaphore.h (or more like asm-x86/
semaphore.h) no longer exists in .27.  I won't install proprietaryware so 
no nvidia for me and no direct experience with it to help you with, but 
it's likely nVidia hasn't updated to take account of that yet (or if so 
it'd probably be with the newest drivers, which may not even be in 
portage yet let alone stable).

You did mention switching your running kernel back to 2.6.26.x, which 
should work, but did you switch your kernel symlink back to it as well?  
If not, it's probably still pointing at the 2.6.27.x kernel, thus you'd 
still be getting the error.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-amd64] Re: can not install nvidia driver
  2008-12-13  7:01 ` [gentoo-amd64] " Duncan
@ 2008-12-13  7:53   ` Peter Bleszynski
  2008-12-13 14:28     ` Drake Donahue
  2008-12-14 15:48   ` Mansour Al Akeel
  1 sibling, 1 reply; 5+ messages in thread
From: Peter Bleszynski @ 2008-12-13  7:53 UTC (permalink / raw
  To: gentoo-amd64

[-- Attachment #1: Type: text/plain, Size: 1601 bytes --]

I was able to install nvidia-drivers while running gentoo-sources-2.6.27-r4
using the ebuild posted here: http://bugs.gentoo.org/show_bug.cgi?id=246425

On Fri, Dec 12, 2008 at 11:01 PM, Duncan <1i5t5.duncan@cox.net> wrote:

> Mansour Al Akeel <mansour.alakeel@gmail.com> posted
> 49433267.1090205@gmail.com, excerpted below, on  Fri, 12 Dec 2008 23:56:23
> -0400:
>
> > In file included from
> > /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-
> x86_64-173.14.09-pkg2/usr/src/nv/nv.c:14:
> > /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-
> x86_64-173.14.09-pkg2/usr/src/nv/nv-linux.h:107:27:
> > error: asm/semaphore.h: No such file or directory
>
> The arch-x86 (including 64-bit) header files were reorganized in kernel
> 2.6.27, and as that says, asm/semaphore.h (or more like asm-x86/
> semaphore.h) no longer exists in .27.  I won't install proprietaryware so
> no nvidia for me and no direct experience with it to help you with, but
> it's likely nVidia hasn't updated to take account of that yet (or if so
> it'd probably be with the newest drivers, which may not even be in
> portage yet let alone stable).
>
> You did mention switching your running kernel back to 2.6.26.x, which
> should work, but did you switch your kernel symlink back to it as well?
> If not, it's probably still pointing at the 2.6.27.x kernel, thus you'd
> still be getting the error.
>
> --
> Duncan - List replies preferred.   No HTML msgs.
> "Every nonfree program has a lord, a master --
> and if you use the program, he is your master."  Richard Stallman
>
>
>

[-- Attachment #2: Type: text/html, Size: 2206 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-amd64] Re: can not install nvidia driver
  2008-12-13  7:53   ` Peter Bleszynski
@ 2008-12-13 14:28     ` Drake Donahue
  0 siblings, 0 replies; 5+ messages in thread
From: Drake Donahue @ 2008-12-13 14:28 UTC (permalink / raw
  To: gentoo-amd64

[-- Attachment #1: Type: text/plain, Size: 2057 bytes --]

echo  "x11-drivers/nvidia-drivers ~amd64" >  /etc/portage/package.keywords

fixed this problem for me when I upgraded to kernel 2.6.27-r5 from 2.6.25-r7
  ----- Original Message ----- 
  From: Peter Bleszynski 
  To: gentoo-amd64@lists.gentoo.org 
  Sent: Saturday, December 13, 2008 2:53 AM
  Subject: Re: [gentoo-amd64] Re: can not install nvidia driver


  I was able to install nvidia-drivers while running gentoo-sources-2.6.27-r4 using the ebuild posted here: http://bugs.gentoo.org/show_bug.cgi?id=246425


  On Fri, Dec 12, 2008 at 11:01 PM, Duncan <1i5t5.duncan@cox.net> wrote:

    Mansour Al Akeel <mansour.alakeel@gmail.com> posted
    49433267.1090205@gmail.com, excerpted below, on  Fri, 12 Dec 2008 23:56:23
    -0400:


    > In file included from
    > /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-
    x86_64-173.14.09-pkg2/usr/src/nv/nv.c:14:
    > /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-
    x86_64-173.14.09-pkg2/usr/src/nv/nv-linux.h:107:27:
    > error: asm/semaphore.h: No such file or directory


    The arch-x86 (including 64-bit) header files were reorganized in kernel
    2.6.27, and as that says, asm/semaphore.h (or more like asm-x86/
    semaphore.h) no longer exists in .27.  I won't install proprietaryware so
    no nvidia for me and no direct experience with it to help you with, but
    it's likely nVidia hasn't updated to take account of that yet (or if so
    it'd probably be with the newest drivers, which may not even be in
    portage yet let alone stable).

    You did mention switching your running kernel back to 2.6.26.x, which
    should work, but did you switch your kernel symlink back to it as well?
    If not, it's probably still pointing at the 2.6.27.x kernel, thus you'd
    still be getting the error.

    --
    Duncan - List replies preferred.   No HTML msgs.
    "Every nonfree program has a lord, a master --
    and if you use the program, he is your master."  Richard Stallman





[-- Attachment #2: Type: text/html, Size: 3676 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-amd64]  Re: can not install nvidia driver
  2008-12-13  7:01 ` [gentoo-amd64] " Duncan
  2008-12-13  7:53   ` Peter Bleszynski
@ 2008-12-14 15:48   ` Mansour Al Akeel
  1 sibling, 0 replies; 5+ messages in thread
From: Mansour Al Akeel @ 2008-12-14 15:48 UTC (permalink / raw
  To: gentoo-amd64, mansour.alakeel

Duncan, thank you. I recopiled 2.6.26 and it worked. I tried it with 
2.6.26 earlier but it didn't work for some odd reason. Since I create a 
short cut to my recent kernel source, the invidia driver was using that 
short cut when build against 2.6.26. The symlink /usr/src/linux points 
to /usr/src/linux-2.6.27. I don't know why that was happening but it's 
working now.

Thank you.

Duncan wrote:
> Mansour Al Akeel <mansour.alakeel@gmail.com> posted
> 49433267.1090205@gmail.com, excerpted below, on  Fri, 12 Dec 2008 23:56:23
> -0400:
>
>   
>> In file included from
>> /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-
>>     
> x86_64-173.14.09-pkg2/usr/src/nv/nv.c:14:
>   
>> /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-
>>     
> x86_64-173.14.09-pkg2/usr/src/nv/nv-linux.h:107:27:
>   
>> error: asm/semaphore.h: No such file or directory
>>     
>
> The arch-x86 (including 64-bit) header files were reorganized in kernel 
> 2.6.27, and as that says, asm/semaphore.h (or more like asm-x86/
> semaphore.h) no longer exists in .27.  I won't install proprietaryware so 
> no nvidia for me and no direct experience with it to help you with, but 
> it's likely nVidia hasn't updated to take account of that yet (or if so 
> it'd probably be with the newest drivers, which may not even be in 
> portage yet let alone stable).
>
> You did mention switching your running kernel back to 2.6.26.x, which 
> should work, but did you switch your kernel symlink back to it as well?  
> If not, it's probably still pointing at the 2.6.27.x kernel, thus you'd 
> still be getting the error.
>
>   




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-12-14 15:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-13  3:56 [gentoo-amd64] can not install nvidia driver Mansour Al Akeel
2008-12-13  7:01 ` [gentoo-amd64] " Duncan
2008-12-13  7:53   ` Peter Bleszynski
2008-12-13 14:28     ` Drake Donahue
2008-12-14 15:48   ` Mansour Al Akeel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox