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

Newegg Daily Deals

Reply
 
Thread Tools
Old 08-19-08, 01:09 PM   #1
mkossmann
Registered User
 
Join Date: Apr 2003
Posts: 26
Default 177.67 and SUSEs KOTD linux-2.6.27-rc3-HEAD_20080818181649

Trying to compile 177.67 on SUSEs KOTD linux-2.6.27-rc3-HEAD_20080818181649 fails with :
[...]
Building modules, stage 2.
make -f /usr/src/linux-2.6.27-rc3-HEAD_20080818181649/scripts/Makefile.modpo
st
scripts/mod/modpost -m -a -i /usr/src/linux-2.6.27-rc3-HEAD_20080818181649
/Module.symvers -I /root/NVIDIA-Linux-x86_64-177.67-pkg2/usr/s
rc/nv/Module.s
ymvers -o /root/NVIDIA-Linux-x86_64-177.67-pkg2/usr/src/nv/Module.symvers -
S -K /usr/src/linux-2.6.27-rc3-HEAD_20080818181649/Module.markers -M /root/N
VIDIA-Linux-x86_64-177.67-pkg2/usr/src/nv/Module.markers -w -N /dev/null -s
WARNING: could not find /root/NVIDIA-Linux-x86_64-177.67-pkg2/usr/src/nv/.nv
-kernel.o.cmd for /root/NVIDIA-Linux-x86_64-177.67-pkg2/usr/src/nv/nv-kernel
.o
FATAL: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol 'pv_l
ock_ops'
make[4]: *** [__modpost] 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.

Any ideas how to fix that ?
Attached Files
File Type: log nvidia-installer.log (35.2 KB, 113 views)
mkossmann is offline   Reply With Quote
Old 08-19-08, 02:08 PM   #2
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: 177.67 and SUSEs KOTD linux-2.6.27-rc3-HEAD_20080818181649

Please see earlier threads on this problem; the NVIDIA kernel module does not reference the pv_lock_ops symbol directly, it picks it up implicitly on some kernels configured with CONFIG_PARAVIRT (i.e. this is a regression, pre-existing interfaces have been made unavailable to non-GPL licensed modules). This problem needs to be addressed by the kernel distributor, it can not be worked around in the NVIDIA driver.
zander is offline   Reply With Quote
Old 08-21-08, 06:42 AM   #3
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default Re: 177.67 and SUSEs KOTD linux-2.6.27-rc3-HEAD_20080818181649

Quote:
Originally Posted by zander View Post
Please see earlier threads on this problem; the NVIDIA kernel module does not reference the pv_lock_ops symbol directly, it picks it up implicitly on some kernels configured with CONFIG_PARAVIRT (i.e. this is a regression, pre-existing interfaces have been made unavailable to non-GPL licensed modules). This problem needs to be addressed by the kernel distributor, it can not be worked around in the NVIDIA driver.
This is the same error I am getting with vanilla kernel 2.6.27-rc3-git7 on openSUSE 11.0 Alpha2, so it doesn't look like an openSUSE-only kernel problem. From the installer log.

ld -m elf_x86_64 -r -o /usr/src/NVIDIA-Linux-x86_64-177.67-pkg2/usr/src/
nv/nvidia.o /usr/src/NVIDIA-Linux-x86_64-177.67-pkg2/usr/src/nv/nv-kernel.o
/usr/src/NVIDIA-Linux-x86_64-177.67-pkg2/usr/src/nv/nv.o /usr/src/NVIDIA-Lin
ux-x86_64-177.67-pkg2/usr/src/nv/nv-vm.o /usr/src/NVIDIA-Linux-x86_64-177.67
-pkg2/usr/src/nv/os-agp.o /usr/src/NVIDIA-Linux-x86_64-177.67-pkg2/usr/src/n
v/os-interface.o /usr/src/NVIDIA-Linux-x86_64-177.67-pkg2/usr/src/nv/os-regi
stry.o /usr/src/NVIDIA-Linux-x86_64-177.67-pkg2/usr/src/nv/nv-i2c.o /usr/src
/NVIDIA-Linux-x86_64-177.67-pkg2/usr/src/nv/nvacpi.o
(cat /dev/null; echo kernel//usr/src/NVIDIA-Linux-x86_64-177.67-pkg2/usr/s
rc/nv/nvidia.ko > /usr/src/NVIDIA-Linux-x86_64-177.67-pkg2/usr/src/nv/modu
les.order
Building modules, stage 2.
make -f /usr/src/linux-2.6.27-rc3-git7/scripts/Makefile.modpost
scripts/mod/modpost -m -a -i /usr/src/linux-2.6.27-rc3-git7/Module.symvers
-I /usr/src/NVIDIA-Linux-x86_64-177.67-pkg2/usr/src/nv/Module.symvers -o /u
sr/src/NVIDIA-Linux-x86_64-177.67-pkg2/usr/src/nv/Module.symvers -S -K /usr/
src/linux-2.6.27-rc3-git7/Module.markers -M
/usr/src/NVIDIA-Linux-x86_64-177.67-pkg2/usr/src/nv/Module.markers -w -s
WARNING: could not find /usr/src/NVIDIA-Linux-x86_64-177.67-pkg2/usr/src/nv/
.nv-kernel.o.cmd for /usr/src/NVIDIA-Linux-x86_64-177.67-pkg2/usr/src/nv/nv-
kernel.o
FATAL: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol 'pv_l
ock_ops'
make[4]: *** [__modpost] 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.

barrabas:/usr/src/linux-2.6.27-rc3-git7 # grep PARAVIRT .config
CONFIG_PARAVIRT_GUEST=y
CONFIG_PARAVIRT=y
CONFIG_PARAVIRT_CLOCK=y
# CONFIG_PARAVIRT_DEBUG is not set
siddly is offline   Reply With Quote
Old 08-21-08, 07:02 AM   #4
kernelOfTruth
Gentoo Linux addict
 
Join Date: Nov 2007
Location: Vienna, Austria; Germany; hello world :)
Posts: 202
Default Re: 177.67 and SUSEs KOTD linux-2.6.27-rc3-HEAD_20080818181649

as zander already wrote, it's due to the way how paravirt-stuff works,

since that option also exists in vanilla / mainline it's not specific to opensuse try disabling that option if you don't need it then it should work
__________________
2.6.30-rc3-zen0+ w. compcache, reiser4 + ccreg40 (lzo-compression + checksumming)
gcc version 4.4.0-pre9999 built 20090425 (prerelease) rev. 146764 (Gentoo SVN)
gcc version 4.4.0 (Gentoo Hardened 4.4.0-r1, espf-0.2.1)
Ubuntu Jaunty/9.04 x86_64 Dell XPS M1330
kernelOfTruth is offline   Reply With Quote
Old 08-21-08, 07:08 AM   #5
kernelOfTruth
Gentoo Linux addict
 
Join Date: Nov 2007
Location: Vienna, Austria; Germany; hello world :)
Posts: 202
Default Re: 177.67 and SUSEs KOTD linux-2.6.27-rc3-HEAD_20080818181649

this patch might help
__________________
2.6.30-rc3-zen0+ w. compcache, reiser4 + ccreg40 (lzo-compression + checksumming)
gcc version 4.4.0-pre9999 built 20090425 (prerelease) rev. 146764 (Gentoo SVN)
gcc version 4.4.0 (Gentoo Hardened 4.4.0-r1, espf-0.2.1)
Ubuntu Jaunty/9.04 x86_64 Dell XPS M1330
kernelOfTruth is offline   Reply With Quote
Old 08-21-08, 08:22 AM   #6
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default Re: 177.67 and SUSEs KOTD linux-2.6.27-rc3-HEAD_20080818181649

barrabas:/usr/src/linux-2.6.27-rc3-git7 # grep PARAVIRT .config
# CONFIG_PARAVIRT_GUEST is not set
With it not set, everything works fine.
siddly is offline   Reply With Quote
Old 08-21-08, 08:54 AM   #7
kernelOfTruth
Gentoo Linux addict
 
Join Date: Nov 2007
Location: Vienna, Austria; Germany; hello world :)
Posts: 202
Default Re: 177.67 and SUSEs KOTD linux-2.6.27-rc3-HEAD_20080818181649

Quote:
Originally Posted by siddly View Post
barrabas:/usr/src/linux-2.6.27-rc3-git7 # grep PARAVIRT .config
# CONFIG_PARAVIRT_GUEST is not set
With it not set, everything works fine.
nevertheless if you need the PARAVIRT thing or not, could you please try out the above posted patch & report back if it works with PARAVIRT enabled and the drivers ?

thanks
__________________
2.6.30-rc3-zen0+ w. compcache, reiser4 + ccreg40 (lzo-compression + checksumming)
gcc version 4.4.0-pre9999 built 20090425 (prerelease) rev. 146764 (Gentoo SVN)
gcc version 4.4.0 (Gentoo Hardened 4.4.0-r1, espf-0.2.1)
Ubuntu Jaunty/9.04 x86_64 Dell XPS M1330
kernelOfTruth is offline   Reply With Quote
Old 08-21-08, 02:43 PM   #8
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default Re: 177.67 and SUSEs KOTD linux-2.6.27-rc3-HEAD_20080818181649

Quote:
Originally Posted by kernelOfTruth View Post
nevertheless if you need the PARAVIRT thing or not, could you please try out the above posted patch & report back if it works with PARAVIRT enabled and the drivers ?

thanks
I expect 100% it would work, but that would constitute an "illegal" use of the symbol which is intended to be GPL-only.
siddly is offline   Reply With Quote

Old 08-21-08, 02:48 PM   #9
kernelOfTruth
Gentoo Linux addict
 
Join Date: Nov 2007
Location: Vienna, Austria; Germany; hello world :)
Posts: 202
Default Re: 177.67 and SUSEs KOTD linux-2.6.27-rc3-HEAD_20080818181649

Quote:
Originally Posted by siddly View Post
I expect 100% it would work, but that would constitute an "illegal" use of the symbol which is intended to be GPL-only.
ok, nevertheless thanks,

from my understanding of the conversation over at lkml this is going into mainline (?) so this problem should be non-existant in the future

also it really doesn't seem to be "illegal" since the important parts are not in contact with each other ??? (I need to look a little closer at this stuff in my spare time)
__________________
2.6.30-rc3-zen0+ w. compcache, reiser4 + ccreg40 (lzo-compression + checksumming)
gcc version 4.4.0-pre9999 built 20090425 (prerelease) rev. 146764 (Gentoo SVN)
gcc version 4.4.0 (Gentoo Hardened 4.4.0-r1, espf-0.2.1)
Ubuntu Jaunty/9.04 x86_64 Dell XPS M1330
kernelOfTruth is offline   Reply With Quote
Old 08-21-08, 04:21 PM   #10
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default Re: 177.67 and SUSEs KOTD linux-2.6.27-rc3-HEAD_20080818181649

Quote:
Originally Posted by kernelOfTruth View Post
ok, nevertheless thanks,

from my understanding of the conversation over at lkml this is going into mainline (?) so this problem should be non-existant in the future

also it really doesn't seem to be "illegal" since the important parts are not in contact with each other ??? (I need to look a little closer at this stuff in my spare time)
The patch didn't make it into 2.6.27-rc4. I shall make the change there and test.
The file has changed to paravirt.c in -rc4.
With the patch 2.6.27-rc4 and CONFIG_PARAVIRT=y is now OK.
siddly is offline   Reply With Quote
Old 08-21-08, 10:29 PM   #11
mkossmann
Registered User
 
Join Date: Apr 2003
Posts: 26
Default Re: 177.67 and SUSEs KOTD linux-2.6.27-rc3-HEAD_20080818181649

I can also confirm that the patch is a workaround for that problem . However I had to patch paravirt.c in SUSEs KOTD linux-2.6.27-rc3-HEAD_20080818181649.
mkossmann is offline   Reply With Quote
Old 08-22-08, 01:55 PM   #12
kernelOfTruth
Gentoo Linux addict
 
Join Date: Nov 2007
Location: Vienna, Austria; Germany; hello world :)
Posts: 202
Default Re: 177.67 and SUSEs KOTD linux-2.6.27-rc3-HEAD_20080818181649

that patch goes mainline now - nice

http://lkml.org/lkml/2008/8/22/127

now only openSUSE and the others need to be notified to back-port / include them
__________________
2.6.30-rc3-zen0+ w. compcache, reiser4 + ccreg40 (lzo-compression + checksumming)
gcc version 4.4.0-pre9999 built 20090425 (prerelease) rev. 146764 (Gentoo SVN)
gcc version 4.4.0 (Gentoo Hardened 4.4.0-r1, espf-0.2.1)
Ubuntu Jaunty/9.04 x86_64 Dell XPS M1330
kernelOfTruth 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 10:12 PM.


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