LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-27-2008, 03:34 PM   #16
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-15.0
Posts: 783

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
'make clean' fixed me


Quote:
Originally Posted by allend View Post
One other possible problem is that if you compile a kernel and then run 'make clean", you will remove the /usr/src/linux/kernel/bounds.s file. It seems that the nVidia installer needs this file. This file can be regenerated by running 'make vmlinux' to build the bare kernel.
I was having this problem on 2.6.28 that NVIDIA would not compile
And thanks to allend i found the 'make clean' to be the problem

tanks allend
 
Old 12-28-2008, 06:00 AM   #17
henkees
Member
 
Registered: Feb 2008
Location: Netherlands, Zeeland
Distribution: Slackware64 current multilib, Gentoo
Posts: 43

Original Poster
Rep: Reputation: 18
With the SlackBuilds I got the same errors as mentioned in my first post of this topic. With the patch the kernel module is build, but then comes the error message: nvidia.ko unable to build.
I tried also the make oldconfig && make prepare; same problem.
I replaced my backup of the kernel sources and /lib/modules and did NOT make clean before or after compiling the kernel and installed the new kernel (smp). After reboot with the new kernel I tried to install the nvidia driver (177.82) without any patch, and ... it worked directly!

I tried it again with the original kernel sources and did a make clean after compiling and installing the kernel, and then -after booting this kernel- the nvidia driver won't compile any more. So indeed, the make clean is making it too clean maybe
 
Old 12-28-2008, 12:07 PM   #18
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current
Posts: 465

Rep: Reputation: 53
Quote:
Originally Posted by henkees View Post
...then comes the error message: nvidia.ko unable to build.
Could you post relevant parts of your /var/log/nvidia-installer.log after the error? Please use
Code:
Code tags
to do this.

Quote:
Originally Posted by henkees View Post
...did a make clean after compiling and installing the kernel, and then -after booting this kernel- the nvidia driver won't compile any more. So indeed, the make clean is making it too clean maybe
LFS and /usr/src/linux/README recommend:
Quote:
Make sure you have no stale .o files and dependencies lying around:
cd linux
make mrproper

You should now have the sources correctly installed.
 
Old 01-10-2009, 01:20 PM   #19
henkees
Member
 
Registered: Feb 2008
Location: Netherlands, Zeeland
Distribution: Slackware64 current multilib, Gentoo
Posts: 43

Original Poster
Rep: Reputation: 18
I don't have that log-file anymore from the nvidia-installer.

You are right about make mrproper and clean; but when I do that, I can't compile the nvidia-driver anymore.
When I want to recompile the kernel, I use always the original unmodified sources. Normally I do a make mrproper an clean, but with this kernel it's not working good in my case.
Now my X-server is working, and there are no error-messages in the nvidia-installer log, so for me it's solved.

On this forum you can find more people with exactly the same problem: when they do a make mrproper or make clean; then the nvidia-driver won't compile; and when they don't clean: it works...
 
Old 01-12-2009, 02:50 PM   #20
Reasa
Member
 
Registered: Aug 2008
Distribution: Slackware
Posts: 53

Rep: Reputation: 16
I have this problem. I compiled the kernel with make, make modules, make modules_install (2.6.8). Is that wrong? The symling /usr/scr/linux points to /usr/src/linux-2.6.8
 
Old 01-19-2009, 03:01 PM   #21
henkees
Member
 
Registered: Feb 2008
Location: Netherlands, Zeeland
Distribution: Slackware64 current multilib, Gentoo
Posts: 43

Original Poster
Rep: Reputation: 18
So far I know, it depends on your system specifications; some people don't have any problems with the nvidiadriver after they "make clean" (after the kernel compilation and kernel install), but some have... I really have no idea when it goes wrong or when it doesn't.

You can try to do a "make clean" after you compiled and installed the kernel, and then have a look if your nvidiadriver will compile or not. When it doesn't compile, probably you have to start over again with the original kernel sources; compile these and install the kernel without doing "make clean" afterwards.
You can also try if the slackbuilds for the nvidiadriver will do the trick. In my case the only solution was: no make clean.
 
  


Reply



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
Can't get NVidia driver to compile SlowCoder Linux - General 4 11-12-2008 08:52 PM
Cant compile nvidia driver Sugarat Slackware 12 09-24-2006 11:42 PM
Can't compile Nvidia driver for Mandrake 10.1 Chudilo Linux - Hardware 2 12-14-2004 11:35 PM
Is it possible to compile kernel with nvidia driver? subaruwrx Linux - Newbie 2 10-04-2004 06:18 AM
Nvidia driver compile errors acidream Linux - General 8 02-19-2003 08:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:47 AM.

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
Open Source Consulting | Domain Registration