nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   295.40 295 cannot be compiled on 3.2 kernel (http://www.nvnews.net/vbulletin/showthread.php?t=181387)

delta32 05-20-12 11:29 AM

295.40 295 cannot be compiled on 3.2 kernel
 
I've tried compiling these two driver on kernel 3.2.
It produces the same error message.

Code:

  In file included from include/linux/kernel.h:17:0,
                    from include/linux/cache.h:4,
                    from include/linux/time.h:7,
                    from include/linux/stat.h:60,
                    from include/linux/module.h:10,
                    from /tmp/selfgz1490/NVIDIA-Linux-x86-295.40/kernel/nvidia.mod.c:1:
  include/linux/bitops.h: In function 'hweight_long':
  include/linux/bitops.h:49:26: warning: signed and unsigned type in conditional expression
  /tmp/selfgz1490/NVIDIA-Linux-x86-295.40/kernel/nvidia.mod.c: At top level:
  /tmp/selfgz1490/NVIDIA-Linux-x86-295.40/kernel/nvidia.mod.c:8:1: error: variable '__this_module' has initializer but incomplete type
  /tmp/selfgz1490/NVIDIA-Linux-x86-295.40/kernel/nvidia.mod.c:9:2: error: unknown field 'name' specified in initializer
  /tmp/selfgz1490/NVIDIA-Linux-x86-295.40/kernel/nvidia.mod.c:9:2: warning: excess elements in struct initializer
  /tmp/selfgz1490/NVIDIA-Linux-x86-295.40/kernel/nvidia.mod.c:9:2: warning: (near initialization for '__this_module')
  /tmp/selfgz1490/NVIDIA-Linux-x86-295.40/kernel/nvidia.mod.c:10:2: error: unknown field 'init' specified in initializer
  /tmp/selfgz1490/NVIDIA-Linux-x86-295.40/kernel/nvidia.mod.c:10:2: warning: excess elements in struct initializer
  /tmp/selfgz1490/NVIDIA-Linux-x86-295.40/kernel/nvidia.mod.c:10:2: warning: (near initialization for '__this_module')
  /tmp/selfgz1490/NVIDIA-Linux-x86-295.40/kernel/nvidia.mod.c:14:2: error: unknown field 'arch' specified in initializer
  /tmp/selfgz1490/NVIDIA-Linux-x86-295.40/kernel/nvidia.mod.c:14:10: error: 'MODULE_ARCH_INIT' undeclared here (not in a function)
  /tmp/selfgz1490/NVIDIA-Linux-x86-295.40/kernel/nvidia.mod.c:14:2: warning: excess elements in struct initializer
  /tmp/selfgz1490/NVIDIA-Linux-x86-295.40/kernel/nvidia.mod.c:14:2: warning: (near initialization for '__this_module')
  make[4]: *** [/tmp/selfgz1490/NVIDIA-Linux-x86-295.40/kernel/nvidia.mod.o] Error 1
  make[3]: *** [modules] 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.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

Code:

  In file included from include/linux/kernel.h:17:0,
                    from include/linux/cache.h:4,
                    from include/linux/time.h:7,
                    from include/linux/stat.h:60,
                    from include/linux/module.h:10,
                    from /tmp/selfgz9946/NVIDIA-Linux-x86-295.53/kernel/nvidia.mod.c:1:
  include/linux/bitops.h: In function 'hweight_long':
  include/linux/bitops.h:49:26: warning: signed and unsigned type in conditional expression
  /tmp/selfgz9946/NVIDIA-Linux-x86-295.53/kernel/nvidia.mod.c: At top level:
  /tmp/selfgz9946/NVIDIA-Linux-x86-295.53/kernel/nvidia.mod.c:8:1: error: variable '__this_module' has initializer but incomplete type
  /tmp/selfgz9946/NVIDIA-Linux-x86-295.53/kernel/nvidia.mod.c:9:2: error: unknown field 'name' specified in initializer
  /tmp/selfgz9946/NVIDIA-Linux-x86-295.53/kernel/nvidia.mod.c:9:2: warning: excess elements in struct initializer
  /tmp/selfgz9946/NVIDIA-Linux-x86-295.53/kernel/nvidia.mod.c:9:2: warning: (near initialization for '__this_module')
  /tmp/selfgz9946/NVIDIA-Linux-x86-295.53/kernel/nvidia.mod.c:10:2: error: unknown field 'init' specified in initializer
  /tmp/selfgz9946/NVIDIA-Linux-x86-295.53/kernel/nvidia.mod.c:10:2: warning: excess elements in struct initializer
  /tmp/selfgz9946/NVIDIA-Linux-x86-295.53/kernel/nvidia.mod.c:10:2: warning: (near initialization for '__this_module')
  /tmp/selfgz9946/NVIDIA-Linux-x86-295.53/kernel/nvidia.mod.c:14:2: error: unknown field 'arch' specified in initializer
  /tmp/selfgz9946/NVIDIA-Linux-x86-295.53/kernel/nvidia.mod.c:14:10: error: 'MODULE_ARCH_INIT' undeclared here (not in a function)
  /tmp/selfgz9946/NVIDIA-Linux-x86-295.53/kernel/nvidia.mod.c:14:2: warning: excess elements in struct initializer
  /tmp/selfgz9946/NVIDIA-Linux-x86-295.53/kernel/nvidia.mod.c:14:2: warning: (near initialization for '__this_module')
  make[4]: *** [/tmp/selfgz9946/NVIDIA-Linux-x86-295.53/kernel/nvidia.mod.o] Error 1
  make[3]: *** [modules] 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.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

So i downgraded my kernel to 2.6.39. Both these drivers can be compiled on it without problem.

Should i report this error to nvidia ?

GRam 05-20-12 01:15 PM

Re: 295.40 295 cannot be compiled on 3.2 kernel
 
Have you tried 302 version driver. Which Distro are you using.

delta32 05-20-12 07:30 PM

Re: 295.40 295 cannot be compiled on 3.2 kernel
 
Quote:

Originally Posted by GRam (Post 2557497)
Have you tried 302 version driver. Which Distro are you using.

Will try it later.
I use slackware 13.37

delta32 05-21-12 09:11 PM

Re: 295.40 295 cannot be compiled on 3.2 kernel
 
So i've tried 302.07 today. Still the same error.

Code:

  In file included from include/linux/kernel.h:17:0,
                    from include/linux/cache.h:4,
                    from include/linux/time.h:7,
                    from include/linux/stat.h:60,
                    from include/linux/module.h:10,
                    from /tmp/selfgz551/NVIDIA-Linux-x86-302.07/kernel/nvidia.mod.c:1:
  include/linux/bitops.h: In function 'hweight_long':
  include/linux/bitops.h:49:26: warning: signed and unsigned type in conditional expression
  /tmp/selfgz551/NVIDIA-Linux-x86-302.07/kernel/nvidia.mod.c: At top level:
  /tmp/selfgz551/NVIDIA-Linux-x86-302.07/kernel/nvidia.mod.c:8:1: error: variable '__this_module' has initializer but incomplete type
  /tmp/selfgz551/NVIDIA-Linux-x86-302.07/kernel/nvidia.mod.c:9:2: error: unknown field 'name' specified in initializer
  /tmp/selfgz551/NVIDIA-Linux-x86-302.07/kernel/nvidia.mod.c:9:2: warning: excess elements in struct initializer
  /tmp/selfgz551/NVIDIA-Linux-x86-302.07/kernel/nvidia.mod.c:9:2: warning: (near initialization for '__this_module')
  /tmp/selfgz551/NVIDIA-Linux-x86-302.07/kernel/nvidia.mod.c:10:2: error: unknown field 'init' specified in initializer
  /tmp/selfgz551/NVIDIA-Linux-x86-302.07/kernel/nvidia.mod.c:10:2: warning: excess elements in struct initializer
  /tmp/selfgz551/NVIDIA-Linux-x86-302.07/kernel/nvidia.mod.c:10:2: warning: (near initialization for '__this_module')
  /tmp/selfgz551/NVIDIA-Linux-x86-302.07/kernel/nvidia.mod.c:14:2: error: unknown field 'arch' specified in initializer
  /tmp/selfgz551/NVIDIA-Linux-x86-302.07/kernel/nvidia.mod.c:14:10: error: 'MODULE_ARCH_INIT' undeclared here (not in a function)
  /tmp/selfgz551/NVIDIA-Linux-x86-302.07/kernel/nvidia.mod.c:14:2: warning: excess elements in struct initializer
  /tmp/selfgz551/NVIDIA-Linux-x86-302.07/kernel/nvidia.mod.c:14:2: warning: (near initialization for '__this_module')
  make[4]: *** [/tmp/selfgz551/NVIDIA-Linux-x86-302.07/kernel/nvidia.mod.o] Error 1
  make[3]: *** [modules] 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.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

Should i post a bug report ?

delta32 05-27-12 09:47 PM

Re: 295.40 295 cannot be compiled on 3.2 kernel
 
So i've posted bug report a couple of days ago.
Hope something will come out.


All times are GMT -5. The time now is 11:21 AM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.