NVIDIA on slackware 14.1...need help
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, |
Maybe the same problem as her: https://devtalk.nvidia.com/default/t...compatibility/
Try building your NVIDA module against Slackwares official kernel. |
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. |
Quote:
|
Quote:
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 Code:
file /usr/src/linux I hope this isn't redundant or offensive to be this basic. Just making sure we are "on the same page". |
Since the only error here is about "mutex_lock_nested", can you disable lock debugging in your kernel config and try again?
|
Quote:
Quote:
|
Quote:
|
Quote:
Anyway obviously I meant to edit the .config with menuconfig (or similar)...not manually!XD thanks again |
1 Attachment(s)
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. (at end. full log is attached to this message) |
Did you try the patch found at https://devtalk.nvidia.com/default/t...14531/#3814531 ?
As suggested in http://www.linuxquestions.org/questi...5/#post4981707 that patch works with the 3.10.17 kernel of Slackware64 14.1. Eric |
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... |
Removal requested, wrong kernel version.
|
Quote:
Code:
patching file kernel/nv-i2v.c |
This is my patch for this issue. Maybe not ideal, but it is working.
Code:
diff -uNr a/kernel/nv.c b/kernel/nv.c |
Code:
-MODULE_LICENSE("NVIDIA"); And at the end of the day, all that patch does is prevent the kernel's taint flag from being set. It won't fix any build problems at all. |
Quote:
|
Quote:
If nVidia wants to put its hand in the GPL cookie-jar... |
It's a dirty fix regardless. That's a fix better suited for developers only, testers, and such crowds, not end users.
It is nothing more than a kernel license lockout avoidance, not a fix. That feature that is disabled is only a kernel feature used by debugging and developments. You gain no benefit from applying that except extra debugging. |
You are right indeed. But can't find any other solution yet. Nvidia kernel driver 331.20 won't build for 3.12 kernel otherwise.
|
Quote:
|
Well, topic starter had this problem (and by the way he tried to build newer version 331.38). I had it too and just posted my solution because didn't seen any other solution in this thread which is working (other then using stock 3.10.17 kernel, which is in fact no solution at all). If you have any other idea how to solve it - just post it please.
|
But sorry, didn't tried "disable lock debugging" thing yet. Will do it when have time.
|
All times are GMT -5. The time now is 10:08 AM. |