Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
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
Old 05-20-12, 01:15 PM   #2
GRam
Registered User
 
Join Date: Feb 2012
Posts: 3
Default Re: 295.40 295 cannot be compiled on 3.2 kernel

Have you tried 302 version driver. Which Distro are you using.
GRam is offline   Reply With Quote
Old 05-20-12, 07:30 PM   #3
delta32
Registered User
 
Join Date: May 2012
Posts: 4
Default Re: 295.40 295 cannot be compiled on 3.2 kernel

Quote:
Originally Posted by GRam View Post
Have you tried 302 version driver. Which Distro are you using.
Will try it later.
I use slackware 13.37
delta32 is offline   Reply With Quote
Old 05-21-12, 09:11 PM   #4
delta32
Registered User
 
Join Date: May 2012
Posts: 4
Default 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 is offline   Reply With Quote
Old 05-27-12, 09:47 PM   #5
delta32
Registered User
 
Join Date: May 2012
Posts: 4
Default 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.
delta32 is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Regression with 295.33 and GeForce GT 240 maro NVIDIA Linux 16 06-29-12 06:47 PM
Crash when logout from X TGL NVIDIA Linux 10 09-13-02 08:22 PM
NVIDIA kernel not loading on boot-up, but insmod loads it Kyle NVIDIA Linux 3 09-10-02 12:01 AM
Kernel drivers and GCC 3.2 Alan666 NVIDIA Linux 2 08-24-02 10:21 PM
NVIDIA_kernel with gcc 3.2 based linux kernel akay NVIDIA Linux 18 08-24-02 09:23 AM

All times are GMT -5. The time now is 05:42 AM.


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