error at nvidia drivers installation

Янчарук Александр alex at itvault.info
Sun May 26 03:53:39 UTC 2013


Hi!

I got error during nvidia driver installation:

    ~# apt-get install nvidia-kernel-dkms
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages were automatically installed and are no
    longer required:
       nvidia-vdpau-driver libgl1-nvidia-glx libgl1-nvidia-alternatives
    libglx-nvidia-alternatives
    Use 'apt-get autoremove' to remove them.
    The following extra packages will be installed:
       libgl1-nvidia-alternatives libgl1-nvidia-glx
    libglx-nvidia-alternatives nvidia-kernel-common nvidia-vdpau-driver
    Recommended packages:
       nvidia-kernel-195.36.31 nvidia-glx
    The following NEW packages will be installed:
       libgl1-nvidia-alternatives libgl1-nvidia-glx
    libglx-nvidia-alternatives nvidia-kernel-common nvidia-kernel-dkms
    nvidia-vdpau-driver
    0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0 B/15.7 MB of archives.
    After this operation, 57.2 MB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Selecting previously deselected package libgl1-nvidia-alternatives.
    (Reading database ... 200951 files and directories currently installed.)
    Unpacking libgl1-nvidia-alternatives (from
    .../libgl1-nvidia-alternatives_195.36.31-6squeeze2_amd64.deb) ...
    Selecting previously deselected package libgl1-nvidia-glx.
    Unpacking libgl1-nvidia-glx (from
    .../libgl1-nvidia-glx_195.36.31-6squeeze2_amd64.deb) ...
    Selecting previously deselected package libglx-nvidia-alternatives.
    Unpacking libglx-nvidia-alternatives (from
    .../libglx-nvidia-alternatives_195.36.31-6squeeze2_amd64.deb) ...
    Selecting previously deselected package nvidia-kernel-common.
    Unpacking nvidia-kernel-common (from
    .../nvidia-kernel-common_20100522+1_all.deb) ...
    Selecting previously deselected package nvidia-kernel-dkms.
    Unpacking nvidia-kernel-dkms (from
    .../nvidia-kernel-dkms_195.36.31-6squeeze2_amd64.deb) ...
    Selecting previously deselected package nvidia-vdpau-driver.
    Unpacking nvidia-vdpau-driver (from
    .../nvidia-vdpau-driver_195.36.31-6squeeze2_amd64.deb) ...
    Setting up libgl1-nvidia-alternatives (195.36.31-6squeeze2) ...
    Adding 'diversion of /usr/lib/libGL.so to
    /usr/lib/nvidia/diversions/libGL.so by libgl1-nvidia-alternatives'
    Adding 'diversion of /usr/lib/libGL.so.1 to
    /usr/lib/nvidia/diversions/libGL.so.1 by libgl1-nvidia-alternatives'
    Adding 'diversion of /usr/lib/libGL.so.1.2 to
    /usr/lib/nvidia/diversions/libGL.so.1.2 by libgl1-nvidia-alternatives'
    Setting up libglx-nvidia-alternatives (195.36.31-6squeeze2) ...
    Adding 'diversion of /usr/lib/xorg/modules/extensions/libglx.so to
    /usr/lib/nvidia/diversions/libglx.so by libglx-nvidia-alternatives'
    Adding 'diversion of
    /usr/lib/debug/usr/lib/xorg/modules/extensions/libglx.so to
    /usr/lib/nvidia/diversions/libglx.so.dbg by libglx-nvidia-alternatives'
    Setting up nvidia-kernel-common (20100522+1) ...
    Setting up nvidia-kernel-dkms (195.36.31-6squeeze2) ...
    Loading new nvidia-195.36.31 DKMS files...
    First Installation: checking all kernels...
    Building only for 3.9.0
    Building initial module for 3.9.0

    *Error! Bad return status for module build on kernel: 3.9.0 (x86_64)*
    Consult the make.log in the build directory
    /var/lib/dkms/nvidia/195.36.31/build/ for more information.
    Setting up nvidia-vdpau-driver (195.36.31-6squeeze2) ...
    Processing triggers for libgl1-nvidia-alternatives ...
    update-alternatives: using /usr/lib/nvidia/diversions/libGL.so.1 to
    provide /usr/lib/libGL.so.1 (libGL.so.1) in auto mode.
    update-alternatives: using /usr/lib/nvidia/diversions/libGL.so to
    provide /usr/lib/libGL.so (libGL.so) in auto mode.
    Setting up libgl1-nvidia-glx (195.36.31-6squeeze2) ...
    update-alternatives: using /usr/lib/nvidia/libGL.so.1 to provide
    /usr/lib/libGL.so.1 (libGL.so.1) in auto mode.
    Processing triggers for libglx-nvidia-alternatives ...
    update-alternatives: using /usr/lib/nvidia/diversions/libglx.so to
    provide /usr/lib/xorg/modules/extensions/libglx.so (libglx.so) in
    auto mode.
    update-alternatives: warning: skip creation of
    /usr/lib/debug/usr/lib/xorg/modules/extensions/libglx.so because
    associated file /usr/lib/nvidia/diversions/libglx.so.dbg (of link
    group libglx.so) doesn't exist.

As you see here is error at building dkms module for 3.9 kernel. Make 
log says:

    tail /var/lib/dkms/nvidia/195.36.31/build/make.log
    include/linux/highmem.h:204: warning: pointer of type ‘void *’ used
    in arithmetic
    /var/lib/dkms/nvidia/195.36.31/build/nv.c: In function ‘nv_kern_mmap’:
    /var/lib/dkms/nvidia/195.36.31/build/nv.c:2769: error: ‘VM_RESERVED’
    undeclared (first use in this function)
    /var/lib/dkms/nvidia/195.36.31/build/nv.c:2769: error: (Each
    undeclared identifier is reported only once
    /var/lib/dkms/nvidia/195.36.31/build/nv.c:2769: error: for each
    function it appears in.)
    *make[2]: *** [/var/lib/dkms/nvidia/195.36.31/build/nv.o] Error 1**
    **make[1]: *** [_module_/var/lib/dkms/nvidia/195.36.31/build] Error 2**
    **make[1]: Leaving directory `/home/alex/src/linux-3.9'**
    **make: *** [modules] Error 2*
    make: Leaving directory `/var/lib/dkms/nvidia/195.36.31/build'

I found solution here 
<http://forums.opensuse.org/english/get-technical-help-here/pre-release-beta/481597-warning-kernel-3-7-1-1-breaks-fglrx-12-6-legacy-driver.html>. 
The problem is that the symbol VM_RESERVED was removed from kernel 3.7.
So, i'll be glad to help you in this fix. Just let me know if you need 
more logs, research etc.

-- 
С уважением,
Янчарук Александр
alex at itvault.info <mailto:alex at itvault.info>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20130526/b42e94cc/attachment.html>


More information about the pkg-nvidia-devel mailing list