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.
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
Distribution: Slackware64 current multilib, Gentoo
Posts: 43
Original Poster
Rep:
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
...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
...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
Distribution: Slackware64 current multilib, Gentoo
Posts: 43
Original Poster
Rep:
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...
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
Distribution: Slackware64 current multilib, Gentoo
Posts: 43
Original Poster
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.