[SOLVED] Failure building nvidia-kernel Slackbuild from SBo
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.
Failure building nvidia-kernel Slackbuild from SBo
I have a brand new installation of 13.37 but I can't seem to get the nvidia-kernel (64 bit only) Slackbuild from slackbuilds.org to build. I have the nvidia driver installed and working on 13.1 so I am not desperate yet: although I thought that it could just be something with the older Nvidia driver so I waited for the updated release but it fails in the same way.
I have uninstalled xf86-video-nouveau and installed xf86-video-nouveau-blacklist-noarch-1.txz from /extra.
I have also installed libvdpau from SBo. The nvidia-driver Slackbuild builds fine.
I am using the stock 2.6.37.6 huge kernel but have also tried the 2.6.38.4 kernel from /extra and the 2.6.38.7 kernel from Slackware-current.
Here is the error message I am seeing:
Code:
root@DarkStar:/home/server/Utils/Packages/Slackware/13.37/64/nvidia-kernel# SRCSUFFIX="-no-compat32" ./nvidia-kernel.SlackBuild
Creating directory NVIDIA-Linux-x86_64-270.41.19-no-compat32
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 270.41.19.............................................................................................................................
If you are using a Linux 2.4 kernel, please make sure
you either have configured kernel sources matching your
kernel or the correct set of kernel headers installed
on your system.
If you are using a Linux 2.6 kernel, please make sure
you have configured kernel sources matching your kernel
installed on your system. If you specified a separate
output directory using either the "KBUILD_OUTPUT" or
the "O" KBUILD parameter, make sure to specify this
directory with the SYSOUT environment variable or with
the equivalent nvidia-installer command line option.
Depending on where and how the kernel sources (or the
kernel headers) were installed, you may need to specify
their location with the SYSSRC environment variable or
the equivalent nvidia-installer command line option.
*** Unable to determine the target kernel version. ***
make: *** [select_makefile] Error 1
What am I doing wrong? What should I try next?
I would like to avoid just running the NVIDIA binary installer as the Slackbuild makes it easier to upgrade kernels.
have you installed kernel-source and kernel-headers package?
Well, I have now and it seems to build fine on my test setup. Thanks a lot!
I'll mark this solved tommorrow if it works on my work machine (which is actually where I am having the problem).
Be careful about which driver you install for which card. If unsure, take a look at the driver search interface on the NVidia site (www.nvidia.com). Basically, you have the actual driver for modern cards (GeForce 6000 and above), the 173 driver for slightly older cards (like the GeForce 5000 family), the 96 for much older cards (GeForce 4000 and the likes)... and if you have a pathologically old card like a Riva TNT, you're better off using either the nouveau or the good old 'nv' driver.
Well, I installed it today and it seemed to work fine (including KDE desktop effects).
Quote:
Originally Posted by kikinovak
Be careful about which driver you install for which card. If unsure, take a look at the driver search interface on the NVidia site (www.nvidia.com).
Well, the card I have is a GTS450. The driver I have installed is 270.41.19 from SBo but the Nvidia site is recommending 275.09.07 (which I am assuming is the latest driver). Should I be trying to modify the Slackbuild to accommodate the latest driver (what differences in behaviour should I be looking for?) or should the 270 series driver be OK?
sysfce2,
Hold on using the SBo slackbuild scripts for any of the newer Nvidia versions. I had a bit of a brain fart and they are not quite optimal. I hopefully fixed the issues but need to do some more testing before I submit the update. You should be fine with 270.41.19 until I get it all done. Nvidia-275.09.07 adds newer GPUs and has a few KDE fixes. I'll post on LQ when the update is ready. In the meantime, if you have issues, you can email me (see nvidia-*.info).
Ok, thanks a lot. I wasn't really relishing the thought of trying to figure out the Nvidia driver installation: your work is much appreciated! I'll keep an eye out for the update, but for now it seems to be working well (much improved over the 260 version I had going in 13.1).
I submitted SBo slackbuild update for the new nvidia-275.09.07 along with script cleanups that makes it easier to keep track of Slacware64 pure or multilib. In short,
Download NVIDIA-Linux-x86_64-275.09.07.run OR NVIDIA-Linux-x86-275.09.07.run
install extra/xf86-video-nouveau-blacklist (and libvdpau of course)
Run nvidia-kernel.SlackBuild and nvidia-driver.SlackBuild (COMPAT32="yes" ./nvidia-driver.SlackBuild for multilib on Slackware64)
install the 2 packages
See the READMEs of course. If you can't wait for SBo submission approval, shoot me an email and I will send you a link to the "pre-beta" version!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.