LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 06-27-2011, 01:18 AM   #1
sysfce2
Member
 
Registered: Jul 2009
Distribution: Slackware
Posts: 91

Rep: Reputation: 38
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.
 
Old 06-27-2011, 01:27 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,620

Rep: Reputation: 445Reputation: 445Reputation: 445Reputation: 445Reputation: 445
have you installed kernel-source and kernel-headers package?
 
1 members found this post helpful.
Old 06-27-2011, 01:53 AM   #3
sysfce2
Member
 
Registered: Jul 2009
Distribution: Slackware
Posts: 91

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by willysr View Post
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).
 
Old 06-27-2011, 07:59 AM   #4
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,948

Rep: Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971
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.
 
1 members found this post helpful.
Old 06-27-2011, 11:26 PM   #5
sysfce2
Member
 
Registered: Jul 2009
Distribution: Slackware
Posts: 91

Original Poster
Rep: Reputation: 38
Well, I installed it today and it seemed to work fine (including KDE desktop effects).
Quote:
Originally Posted by kikinovak View Post
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?
 
Old 06-28-2011, 02:39 AM   #6
kingbeowulf
Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware64 14.1, Slackware 14.1
Posts: 526

Rep: Reputation: 140Reputation: 140
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).
 
1 members found this post helpful.
Old 06-29-2011, 12:08 AM   #7
sysfce2
Member
 
Registered: Jul 2009
Distribution: Slackware
Posts: 91

Original Poster
Rep: Reputation: 38
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).
 
Old 07-02-2011, 02:10 AM   #8
kingbeowulf
Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware64 14.1, Slackware 14.1
Posts: 526

Rep: Reputation: 140Reputation: 140
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.
 
  


Reply

Tags
nvidia, nvidia drivers, slackbuild, slackware, slackware 13.37


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
anyone got OpenShot SBo slackbuild to work? metageek Slackware 13 01-01-2011 06:20 PM
problems building fontforge from SBo gtludwig Slackware 7 05-12-2010 02:52 PM
Opera10 64bit Java fix for SBO slackbuild. GazL Slackware 9 10-13-2009 09:38 AM
Kmymoney2 Slackware64 Sbo Slackbuild Error AlleyTrotter Slackware 4 07-05-2009 11:10 PM
nvidia 6106, kernel 2.6.7, slackware 10, failure to load nvidia.ko Tarball_Phreak Linux - Hardware 3 08-04-2004 04:16 PM


All times are GMT -5. The time now is 08:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration