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

Newegg Daily Deals

Reply
 
Thread Tools
Old 09-24-09, 08:08 PM   #1
sangu
Registered User
 
Join Date: Feb 2005
Posts: 84
Default 190.36 beta driver build error in Fedora rawhide kernel 2.6.31.

Quote:
mod-190.36/_kmod_build_2.6.31-33.fc12.x86_64/usr/src/nv/Module.markers -w -s
WARNING: could not find /home/sangu/rpmbuild/BUILD/nvidia-kmod-190.36/_kmod_build_2.6.31-33.fc12.x86_64/usr/src/nv/.nv-kernel.o.cmd for /home/sangu/rpmbuild/BUILD/nvidia-kmod-190.36/_kmod_build_2.6.31-33.fc12.x86_64/usr/src/nv/nv-kernel.o
FATAL: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol 'lockdep_init_map'
make[3]: *** [__modpost] Error 1
make[2]: *** [modules] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
Building 185.18.36 driver works well in kernel 2.6.31.

Last edited by sangu; 04-22-11 at 08:15 PM.
sangu is offline   Reply With Quote
Old 09-24-09, 08:52 PM   #2
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: 190.36 beta driver build error in kernel 2.6.31.

You'll need to rebuild your kernel without CONFIG_LOCKDEP, the configuration option causes the NVIDIA kernel module to (implicitly) pick up GPL-only symbols.
zander is offline   Reply With Quote
Old 09-24-09, 08:53 PM   #3
sangu
Registered User
 
Join Date: Feb 2005
Posts: 84
Default Re: 190.36 beta driver build error in kernel 2.6.31.

Do this issue seems to be rawhide problem?
See : http://www.nvnews.net/vbulletin/showthread.php?t=72994

Quote:
You'll need to rebuild your kernel without CONFIG_LOCKDEP, the configuration option causes the NVIDIA kernel module to (implicitly) pick up GPL-only symbols.
Then, building 185.18.36 drvier is no problem in the same fedora rawhide kernel-2.6.31.
Strange!
sangu is offline   Reply With Quote
Old 09-25-09, 01:15 AM   #4
sangu
Registered User
 
Join Date: Feb 2005
Posts: 84
Default Re: 190.36 beta driver build error in kernel 2.6.31.

$ cat /usr/src/kernels/2.6.31-40.fc12.x86_64/.config | grep CONFIG_LOCKDEP
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_LOCKDEP=y

Building with 185.18.36.
OK
$ dmesg | grep NVIDIA
ACPI: DSDT 00000000bfee3280 0A1B2 (v01 NVIDIA ASUSACPI 00001000 MSFT 03000000)
nvidia: module license 'NVIDIA' taints kernel.
NVRM: loading NVIDIA UNIX x86_64 Kernel Module 185.18.36 Fri Aug 14 17:35:21 PDT 2009
$ uname -r
2.6.31-40.fc12.x86_64

Build with 190.36
Failure

So, Is this issue nvidia driver 190.36 bug?
sangu is offline   Reply With Quote
Old 09-25-09, 01:21 AM   #5
NoFate
Registered User
 
Join Date: Feb 2005
Posts: 8
Default Re: 190.36 beta driver build error in kernel 2.6.31.

Hi All.
As I understand it's Fedora Rawhide.
I hope administration will forgive me for link to external resource, but here is a small guide
http://forums.fedoraforum.org/showpo...79&postcount=4
NoFate is offline   Reply With Quote
Old 09-25-09, 09:19 AM   #6
leigh123linux
Registered User
 
leigh123linux's Avatar
 
Join Date: Feb 2008
Posts: 163
Default Re: 190.36 beta driver build error in kernel 2.6.31.

Quote:
Originally Posted by zander View Post
You'll need to rebuild your kernel without CONFIG_LOCKDEP, the configuration option causes the NVIDIA kernel module to (implicitly) pick up GPL-only symbols.

Is it possible to patch the driver as I doubt the Fedora kernel maintainers will change it.
leigh123linux is offline   Reply With Quote
Old 09-26-09, 02:53 PM   #7
NoFate
Registered User
 
Join Date: Feb 2005
Posts: 8
Default Re: 190.36 beta driver build error in kernel 2.6.31.

Quote:
Originally Posted by leigh123@linux View Post
Is it possible to patch the driver as I doubt the Fedora kernel maintainers will change it.
This will be changed, as I remember, when F12 will move to beta state. Until that DEBUG mode will be used to find out any bugs in kernel.
NoFate is offline   Reply With Quote
Old 09-26-09, 07:01 PM   #8
sangu
Registered User
 
Join Date: Feb 2005
Posts: 84
Default Re: 190.36 beta driver build error in kernel 2.6.31.

in Fedora kernel-2.6.31.1-48.fc12.x86_64.
185.18.36 - Building Success.
190.36 - Building Failure

This is Nvidia binary driver issue.
sangu is offline   Reply With Quote

Old 09-27-09, 09:25 AM   #9
sternklang
Registered User
 
Join Date: Apr 2006
Posts: 13
Default Re: 190.36 beta driver build error in kernel 2.6.31.

Apparently this is a problem if your kernel is built with the CONFIG_LOCKDEP=y kernel debugging option. NoFate already indicated that debug flags like this will be in the Fedora 12 kernel until F12 is ready for beta status. Running an unreleased, pre-beta distro version is fine for testing, but please try to understand what you are testing rather than blaming NVidia.

I'm running 190.36 on Gentoo x86-64 with 2.6.31.1 and I had no problems building or running it.
sternklang is offline   Reply With Quote
Old 09-27-09, 03:49 PM   #10
leigh123linux
Registered User
 
leigh123linux's Avatar
 
Join Date: Feb 2008
Posts: 163
Default Re: 190.36 beta driver build error in kernel 2.6.31.

The CONFIG_LOCKDEP=y option has nothing to do with the extra rawhide debugging!


The CONFIG_LOCKDEP=y option comes for the new deconfig files in the 2.6.31 kernels.

Code:
/linux-2.6.31/arch/x86/configs/x86_64_defconfig

Code:
/linux-2.6.31/arch/x86/configs/x86_defconfig
Shouldn't Nvidia support the default kernel config ?
leigh123linux is offline   Reply With Quote
Old 09-28-09, 04:09 AM   #11
NvFuchs
Registered Fox
 
NvFuchs's Avatar
 
Join Date: Oct 2007
Location: Confoederatio Helvetica
Posts: 530
Default Re: 190.36 beta driver build error in kernel 2.6.31.

Quote:
Originally Posted by leigh123@linux View Post
Shouldn't Nvidia support the default kernel config ?
Not if it is impossible from a legal point of view, no.

Fuchs
NvFuchs is offline   Reply With Quote
Old 09-28-09, 05:01 AM   #12
sangu
Registered User
 
Join Date: Feb 2005
Posts: 84
Default Re: 190.36 beta driver build error in kernel 2.6.31.

Hi, NvFuchs, sternklang.

Building with 185.18.36 is success in current fedora rawhide kernel(2.6.31.1-48.fc12.x86_64).
sangu 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


All times are GMT -5. The time now is 03:33 PM.


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