nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   3.9.0 kernel module load error - GPL-only symbol system_wq (http://www.nvnews.net/vbulletin/showthread.php?t=205084)

siddly 05-01-13 06:42 PM

3.9.0 kernel module load error - GPL-only symbol system_wq
 
Nvidia 313.26, 313.30 and 319.12 Ubuntu 13.04

/usr/src/linux-3.9.0/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’:
/usr/src/linux-3.9.0/arch/x86/include/asm/uaccess_64.h:62:6: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if [ "-pg" = "-pg" ]; then if [ /usr/src/NVIDIA-Linux-x86_64-313.30/kernel/os-usermap.o != "scripts/mod/empty.o" ]; then /usr/src/linux-3.9.0/scripts/recordmcount "/usr/src/NVIDIA-Linux-x86_64-313.30/kernel/os-usermap.o"; fi; fi;
ld -m elf_x86_64 -r -o /usr/src/NVIDIA-Linux-x86_64-313.30/kernel/nvidia.o /usr/src/NVIDIA-Linux-x86_64-313.30/kernel/nv-kernel.o /usr/src/NVIDIA-Linux-x86_64-313.30/kernel/nv.o /usr/src/NVIDIA-Linux-x86_64-313.30/kernel/nv-acpi.o /usr/src/NVIDIA-Linux-x86_64-313.30/kernel/nv-
chrdev.o /usr/src/NVIDIA-Linux-x86_64-313.30/kernel/nv-cray.o /usr/src/NVIDIA-Linux-x86_64-313.30/kernel/nv-gvi.o /usr/src/NVIDIA-Linux-x86_64-313.30/kernel/nv-i2c.o /usr/src/NVIDIA-Linux-x86_64-313.30/kernel/nv-mempool.o /usr/src/NVIDIA-Linux-x86_64-313.30/kernel/nv-mlock.o /usr/src/NVIDIA-Linux-x86_64-313.30/kernel/nv-mmap.o /usr/src/NVIDIA-Linux-x86_64-313.30/kernel/nv-p2p.o /usr/src/NVIDIA-Linux-x86_64-313.30/kernel/nv-pat.o /usr/src/NVIDIA-Linux-x86_64-313.30/kernel/nv-procfs.o /usr/src/NVIDIA-Linux-x86_64-313.30/kernel/nv-usermap.o /usr/src/NVIDIA-Linux-x86_64-313.30/kernel/nv-vm.o /usr/src/NVIDIA-Linux-x86_64-313.30/kernel/nv-vtophys.o /usr/src/NVIDIA-Linux-x86_64-313.30/kernel/os-interface.o /usr/src/NVIDIA-Linux-x86_64-313.30/kernel/os-registry.o /usr/src/NVIDIA-Linux-x86_64-313.30/kernel/os-smp.o /usr/src/NVIDIA-Linux-x86_64-313.30/kernel/os-usermap.o
(cat /dev/null; echo kernel//usr/src/NVIDIA-Linux-x86_64-313.30/kernel/nvidia.ko;) > /usr/src/NVIDIA-Linux-x86_64-313.30/kernel/modules.order
make -f /usr/src/linux-3.9.0/scripts/Makefile.modpost
scripts/mod/modpost -m -a -i /usr/src/linux-3.9.0/Module.symvers -I /usr/src/NVIDIA-Linux-x86_64-313.30/kernel/Module.symvers -o /usr/src/NVIDIA-Linux-x86_64-313.30/kernel/Module.symvers -S -w -s
WARNING: could not find /usr/src/NVIDIA-Linux-x86_64-313.30/kernel/.nv-kernel.o.cmd for /usr/src/NVIDIA-Linux-x86_64-313.30/kernel/nv-kernel.o
FATAL: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol 'system_wq'
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.

artem 05-02-13 05:52 PM

Re: 3.9.0 kernel module load error - GPL-only symbol system_wq
 
You have incorrectly configured your Linux kernel. Why not using the one which comes with Ubuntu?

siddly 05-02-13 07:29 PM

Re: 3.9.0 kernel module load error - GPL-only symbol system_wq
 
Quote:

Originally Posted by artem (Post 2590063)
You have incorrectly configured your Linux kernel. Why not using the one which comes with Ubuntu?

I test new kernels on both openSUSE and Kubuntu along with VirtualBox and NVidia drivers and report any problems usually before they go GM.

Up to 3.9.0-rc8 had no problems.

I see nothing in the kernel .config regarding GPL symbols.

I am building 3.9.0 on a different Kubuntu 13.04 box and I'll see if it reports the same.

No problems on 3 openSUSE boxes either.

All boxes have
CONFIG_USB_SERIAL_SYMBOL=m
CONFIG_UNUSED_SYMBOLS=y

siddly 05-03-13 04:42 AM

Re: 3.9.0 kernel module load error - GPL-only symbol system_wq
 
Neither box has UEFI in the BIOS.
nvidiafb and rivafb are not set in .config.

/usr/src/linux-3.9.0/include/linux/cpumask.h: In function ‘cpumask_parse’:
/usr/src/linux-3.9.0/include/linux/cpumask.h:603:26: warning: signed and unsigned type in conditional expression [-Wsign-compare]
In file included from /usr/src/linux-3.9.0/arch/x86/include/asm/uaccess.h:539:0,
from /usr/src/linux-3.9.0/include/linux/poll.h:11,
from /usr/src/NVIDIA-Linux-x86_64-319.12/kernel/nv-linux.h:115,
from /usr/src/NVIDIA-Linux-x86_64-319.12/kernel/nv-i2c.c:15:
/usr/src/linux-3.9.0/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’:
/usr/src/linux-3.9.0/arch/x86/include/asm/uaccess_64.h:62:6: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/usr/src/NVIDIA-Linux-x86_64-319.12/kernel/nv-i2c.c: In function ‘nv_i2c_del_adapter’:
/usr/src/NVIDIA-Linux-x86_64-319.12/kernel/nv-i2c.c:327:14: error: void value not ignored as it ought to be
make[4]: *** [/usr/src/NVIDIA-Linux-x86_64-319.12/kernel/nv-i2c.o] Error 1
make[3]: *** [_module_/usr/src/NVIDIA-Linux-x86_64-319.12/kernel] Error 2
make[2]: *** [sub-make] Error 2
NVIDIA: left KBUILD.
-> done.
-> Kernel module compilation complete.
-> Unable to determine if Secure Boot is enabled: No such file or directory
ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most frequently when this kernel module was built against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if a driver such as rivafb, nvidiafb, or nouveau is present and prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA graphics device(s), or no NVIDIA GPU installed in this system is supported by this NVIDIA Linux graphics driver release.

Please see the log entries 'Kernel module load error' and 'Kernel messages' at the end of the file '/var/log/nvidia-installer.log' for more information.
-> Kernel module load error: Exec format error


Back to 3.9.0-rc7 and 313.26.

artem 05-03-13 11:19 AM

Re: 3.9.0 kernel module load error - GPL-only symbol system_wq
 
1 Attachment(s)
I have no problems running NVIDIA drivers 319.17 and vanilla kernel 3.9.0.

Here's my x86 .config (it's for my hardware and CentOS 6.4 - so no odd features are included) - it's not suitable for Fedora and probably other modern distros.

siddly 05-03-13 03:16 PM

Re: 3.9.0 kernel module load error - GPL-only symbol system_wq
 
Quote:

Originally Posted by artem (Post 2590095)
I have no problems running NVIDIA drivers 319.17 and vanilla kernel 3.9.0.

Here's my x86 .config (it's for my hardware and CentOS 6.4 - so no odd features are included) - it's not suitable for Fedora and probably other modern distros.

Just downloaded 319.17, will try it later.

Both Ubuntu boxes work with the following, one is 3.9.0-rc8:-

root@sdrbox1:~# uname -r
3.9.0-rc7+
root@sdrbox1:~# cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module 313.26 Wed Feb 27 13:04:31 PST 2013
GCC version: gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1)

Absolutely no problems with 319.12 and 3.9.0 on openSUSE.
Beats me where this GPL-only symbol and UEFI problems come from.
The 3 openSUSE boxes (6-core and 8-core AMD) one with GeForce GTX 560 Ti and 2 with GeForce 8600 GT
One of the Kubuntu ones (4-core AMD) have essentially the same hardware and a GeForce 8800 GTS.
# uname -r
3.9.0-smp+
slipstream:/usr/src # cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module 319.12 Wed Apr 3 15:43:51 PDT 2013
GCC version: gcc version 4.7.2 20130205 [gcc-4_7-branch revision 195759] (SUSE Linux)

siddly 05-04-13 06:50 AM

Re: 3.9.0 kernel module load error - GPL-only symbol system_wq
 
I now see the problem.
The kernel is 3.9.0+ heading towards 3.10 which has EFI enabled by default.

The problem boils down to this and I don't need a reminder that it's an unsupported kernel as far as NVidia is concerned:-
/usr/src/NVIDIA-Linux-x86_64-319.17/kernel/nv-i2c.c: In function ‘nv_i2c_del_adapter’:
/usr/src/NVIDIA-Linux-x86_64-319.17/kernel/nv-i2c.c:327:14: error: void value not ignored as it ought to be

It's trying to return void.

marcopolo 05-06-13 10:26 AM

Re: 3.9.0 kernel module load error - GPL-only symbol system_wq
 
For the system_wq GPL issue, see here: https://lkml.org/lkml/2013/5/6/232

siddly 05-21-13 08:57 AM

Re: 3.9.0 kernel module load error - GPL-only symbol system_wq
 
Complete silence from NVidia probably until 3.10.0 final so I've gone back to nouveau.

towo| 05-23-13 01:45 AM

Re: 3.9.0 kernel module load error - GPL-only symbol system_wq
 
Nvidia devs doesn't post in this forum anymore.


All times are GMT -5. The time now is 02:03 AM.

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