LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Failure building nvidia-kernel Slackbuild from SBo (http://www.linuxquestions.org/questions/slackware-14/failure-building-nvidia-kernel-slackbuild-from-sbo-888513/)

sysfce2 06-27-2011 12:18 AM

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.

willysr 06-27-2011 12:27 AM

have you installed kernel-source and kernel-headers package?

sysfce2 06-27-2011 12:53 AM

Quote:

Originally Posted by willysr (Post 4396607)
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).

kikinovak 06-27-2011 06:59 AM

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.

sysfce2 06-27-2011 10:26 PM

Well, I installed it today and it seemed to work fine (including KDE desktop effects).
Quote:

Originally Posted by kikinovak (Post 4396822)
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?

kingbeowulf 06-28-2011 01:39 AM

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).

sysfce2 06-28-2011 11:08 PM

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).

kingbeowulf 07-02-2011 01:10 AM

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,
  1. Download NVIDIA-Linux-x86_64-275.09.07.run OR NVIDIA-Linux-x86-275.09.07.run
  2. install extra/xf86-video-nouveau-blacklist (and libvdpau of course)
  3. Run nvidia-kernel.SlackBuild and nvidia-driver.SlackBuild (COMPAT32="yes" ./nvidia-driver.SlackBuild for multilib on Slackware64)
  4. 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!

Enjoy.


All times are GMT -5. The time now is 02:35 PM.