SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi all guys...I'am trying to install the nvidia driver in my slacky 14.1 x86_64 with the kernel 3.12.6...
What I do is close x server, log in as root and then first I remove the nouveau driver with the xf86-video-nouveau-blacklist that I found in /extra dir of slackware64...and finally I execute the NVIDIA installer...but something goes wrong...it says me that installation is failed because it cannot find the tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/.nv-kernel.o.cmd...
precisely (from the last part of /var/log/nvidia-installer.log):
Code:
In file included from /usr/src/linux-3.12.6/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-3.12.6/include/linux/stddef.h:4,
from /usr/src/linux-3.12.6/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-3.12.6/include/uapi/linux/types.h:13,
from /usr/src/linux-3.12.6/include/linux/types.h:5,
from /usr/src/linux-3.12.6/include/uapi/linux/capability.h:16,
from /usr/src/linux-3.12.6/include/linux/capability.h:15,
from /usr/src/linux-3.12.6/include/linux/sched.h:13,
from /usr/src/linux-3.12.6/include/linux/utsname.h:5,
from /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/nv-linux.h:44,
from /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/nv-frontend.c:13:
/usr/src/linux-3.12.6/arch/x86/include/asm/uaccess_64.h: In function 'copy_from_user':
/usr/src/linux-3.12.6/arch/x86/include/asm/uaccess_64.h:62:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz == -1 || sz >= n))
^
/usr/src/linux-3.12.6/include/linux/compiler.h:152:40: note: in definition of macro 'likely'
# define likely(x) __builtin_expect(!!(x), 1)
^
if [ "-pg" = "-pg" ]; then if [ /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/nv-frontend.o != "scripts/mod/empty.o" ]; then /usr/src/linux-3.12.6/scripts/recordmcount "/tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/nv-frontend.o"; fi; fi;
ld -m elf_x86_64 -r -o /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/nvidia.o /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/nv-kernel.o /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/nv.o /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/nv-acpi.o /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/nv-chrdev.o /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/nv-cray.o /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/nv-drm.o /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/nv-gvi.o /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/nv-i2c.o /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/nv-mempool.o /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/nv-mlock.o /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/nv-mmap.o /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/nv-p2p.o /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/nv-pat.o /tmp/selfgz876/NVIDI
A-Linux-x86_64-331.38/kernel/nv-procfs.o /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/nv-usermap.o /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/nv-vm.o /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/nv-vtophys.o /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/os-interface.o /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/os-pci.o /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/os-registry.o /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/os-smp.o /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/os-usermap.o /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/nv_uvm_interface.o /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/nv-frontend.o
(cat /dev/null; echo kernel//tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/nvidia.ko;) > /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/modules.order
make -f /usr/src/linux-3.12.6/scripts/Makefile.modpost
find /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/.tmp_versions -name '*.mod' | xargs -r grep -h '\.ko$' | sort -u | sed 's/\.ko$/.o/' | scripts/mod/modpost -i /usr/src/linux-3.12.6/Module.symvers -I /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/Module.symvers -o /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/Module.symvers -S -w -s -T -
WARNING: could not find /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/.nv-kernel.o.cmd for /tmp/selfgz876/NVIDIA-Linux-x86_64-331.38/kernel/nv-kernel.o
FATAL: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol 'mutex_lock_nested'
make[3]: *** [__modpost] Error 1
make[2]: *** [modules] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/usr/src/linux-3.12.6'
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make: *** [nvidia.ko] Error 1
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
-> done.
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.
Can you give me some suggest to resolve this?Thank you in advance...
Greetings
Hmmm interesting webpage. Odd though. I'm running a custom 3.12.0 kernel with Slackware 14 and the NVIDIA-linux-x86-331.20.run driver worked perfectly the first time with no changes. OP, Possibly try backing off to the 331.20?
I don't have debugging disabled in the kernel so it is not that, at least for my combination.
Greetings
Hmmm interesting webpage. Odd though. I'm running a custom 3.12.0 kernel with Slackware 14 and the NVIDIA-linux-x86-331.20.run driver worked perfectly the first time with no changes. OP, Possibly try backing off to the 331.20?
I don't have debugging disabled in the kernel so it is not that, at least for my combination.
Tried this solution, but I still have the same error...Maybe this problem is related to the kernel headers??How can I check what headers I have installed?...perhaps I have installed the slackware official kernel headers and not the 3.12.6 headers...
Tried this solution, but I still have the same error...Maybe this problem is related to the kernel headers??How can I check what headers I have installed?...perhaps I have installed the slackware official kernel headers and not the 3.12.6 headers...
Now I'm a bit confused about how you got a 3.12.6 kernel? My 3.12.0 as I said is a custom kernel. I got it by downloading the "linux-3.12.0.bz2" from "ftp://ftp.kernel.org/pub/linux/kernel/v3.x/" and extracted it in "/usr/src" and then linked it to "/usr/src/linux". Basically I did the same as Alien Bob's Kernel From Source Page which is a nice roadmap for the changes from 2.4.x kernels, incidentally of which I may have built over 100 times messing with an Atheros wifi card (on 2.4.x kernels, years ago)until I got smart and installed a 50 foot Cat5 cable and side-stepped the entire issue as well as getting better and faster connections. Anyway, first the 2.6.x and now the 3X kernels are a welcome improvement.
The nvidia drivers need, iirc, either fully qualified and linked headers OR source tree, complete with matching, built modules in "lib/modules/". In my case it is "lib/modules/3.12.0-smp". You can
Code:
ls /usr/src
to see which kernels are in there, and
Code:
file /usr/src/linux
to see where the symlink goes. Obviously you can also "ls /lib/modules" to see which kernels have modules installed. In order to properly install the nvidia drivers, you need for all these to match and be consistent.
I hope this isn't redundant or offensive to be this basic. Just making sure we are "on the same page".
Now I'm a bit confused about how you got a 3.12.6 kernel? My 3.12.0 as I said is a custom kernel. I got it by downloading the "linux-3.12.0.bz2" from "ftp://ftp.kernel.org/pub/linux/kernel/v3.x/" and extracted it in "/usr/src" and then linked it to "/usr/src/linux". Basically I did the same as Alien Bob's Kernel From Source Page which is a nice roadmap for the changes from 2.4.x kernels, incidentally of which I may have built over 100 times messing with an Atheros wifi card until I got smart and installed a 50 foot Cat5 cable and side-stepped the entire issue as well as getting better and faster connections.
The nvidia drivers need, iirc, either fully qualified and linked headers OR source tree, complete with matching, built modules in "lib/modules/". In my case it is "lib/modules/3.12.0-smp". You can
Code:
ls /usr/src
to see which kernels are in there, and
Code:
file /usr/src/linux
to see where the symlink goes. Obviously you can also "ls /lib/modules" to see which kernels have modules installed. In order to properly install the nvidia drivers, you need for all these to match and be consistent.
I hope this isn't redundant or offensive to be this basic. Just making sure we are "on the same page".
OK...I think that is everything ok with headers etc...in /usr/src "linux" is linked properly, and I have the 3.12.6 in /lib/modules too...
Quote:
Originally Posted by guanx
Since the only error here is about "mutex_lock_nested", can you disable lock debugging in your kernel config and try again?
How can I do this?Do you mean that I should edit my .config and try to recompile my kernel after disabled lock debugging?
Disabling "Kernel hacking -> Lock Debugging" with "make menuconfig" is easier, but of course you can edit ".config" manually.
Ok...I understood well...Thanks for giving me even the exact position of this option...tomorrow I will try...
Anyway obviously I meant to edit the .config with menuconfig (or similar)...not manually!XD
thanks again
Hmm...i too,today, get similar problem: slackware64 14.1, try to install
NVIDIA-Linux-x86_64-319.17.run
and
NVIDIA-Linux-x86_64-310.44.run
- both give the same result - after a "building kernel module", installer says "Error: Unable to build NVIDIA kernel module".
nvidia_installer.log says:
/usr/src/linux-3.10.17/include/linux/compiler.h:152:40: note: in definition of macro 'likely'
# define likely(x) __builtin_expect(!!(x), 1)
^
/tmp/selfgz4993/NVIDIA-Linux-x86_64-319.17/kernel/nv-i2c.c: In function 'nv_i2c_del_adapter':
/tmp/selfgz4993/NVIDIA-Linux-x86_64-319.17/kernel/nv-i2c.c:327:14: error: void value not ignored as it ought to be
osstatus = i2c_del_adapter(pI2cAdapter);
^
make[4]: *** [/tmp/selfgz4993/NVIDIA-Linux-x86_64-319.17/kernel/nv-i2c.o] Error 1
make[3]: *** [_module_/tmp/selfgz4993/NVIDIA-Linux-x86_64-319.17/kernel] 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.
Thank you very much, Alien Bob - yes, it works. i patched latest nvidia driver, and after that it installs good. strange to me, because all my experience with nvidia self-extracting driver until that be very fine- it always installing and work good in slackware...
thank you again...
And when I try to apply it aniway it says me that the apply is failed...I tried to apply it on 338.31 after having adjusted the driver version in the diff file...and tried even to install the 325.15 (because I read that the 325.15 is already patched)
Last edited by freakTux; 02-02-2014 at 07:58 AM.
Reason: add information
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.