View Single Post
Old 05-20-12, 11:29 AM   #1
delta32
Registered User
 
Join Date: May 2012
Posts: 4
Default 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 ?
delta32 is offline   Reply With Quote