nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Can't Commpile 6111 Drivers on Mandrake 10 (http://www.nvnews.net/vbulletin/showthread.php?t=34772)

linuxnewb 08-15-04 01:33 AM

Can't Commpile 6111 Drivers on Mandrake 10
 
I am running Mandrake 10 kernel 2.6.3-15.mdk and for some reason when I try to run the nvidia installer i get this error:

" Unable to build the NVIDIA kernel module."
"Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com."

Can someone please help. Here is the log file:

--------------------------------------------------------------------------------

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun Aug 15 01:23:49 2004

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
no precompiled interface: false
no ncurses color : false
query latest driver ver : false
OpenGL header files : false
no questions : false
silent : false
X install prefix : /usr/X11R6
OpenGL install prefix : /usr
Installer install prefix: /usr
kernel source path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /root/tmp
ftp site : ftp://download.nvidia.com

Using: nvidia-installer ncurses user interface
-> License accepted.
-> There appears to already be a driver installed on your system (version: 1.0-
6106). As part of installing this driver (version: 1.0-6111), the existing
driver will be uninstalled. Are you sure you want to continue? ('no' will a
bort installation) (Answer: Yes)
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
this means that the installer will need to compile a kernel interface for
your kernel.
-> Kernel source path: '/lib/modules/2.6.3-15mdk/build'
-> Performing cc_version_check with CC="cc".
-> Performing rivafb check.
-> Performing rivafb module check.
WARNING: Your kernel was configured to include rivafb support as
a loadable kernel module.

The rivafb driver conflicts with the NVIDIA driver; the
NVIDIA kernel module will still be built and installed,
but be aware that the NVIDIA driver will not be able to
function properly if the rivafb module is loaded!
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
rm -f -f nv.o os-agp.o os-interface.o os-registry.o nv.o os-agp.o os-interfa
ce.o os-registry.o nvidia.mod.o
rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.3-15mdk/bui
ld SYSOUT=/lib/modules/2.6.3-15mdk/build'...
Your kernel was configured to include rivafb support as
a loadable kernel module.

The rivafb driver conflicts with the NVIDIA driver; the
NVIDIA kernel module will still be built and installed,
but be aware that the NVIDIA driver will not be able to
function properly if the rivafb module is loaded!

*** Failed rivafb module sanity check, but continuing! ***


NVIDIA: calling KBUILD...
make -C /lib/modules/2.6.3-15mdk/build \
KBUILD_SRC=/usr/src/linux-2.6.3-15mdk KBUILD_VERBOSE=1 \
KBUILD_CHECK= -f /usr/src/linux-2.6.3-15mdk/Makefile modules
Using /usr/src/linux-2.6.3-15mdk as source for kernel
if [ -h /usr/src/linux-2.6.3-15mdk/include/asm -o -f /usr/src/linux-2.6.3-15
mdk/.config ]; then \
echo " /usr/src/linux-2.6.3-15mdk is not clean, please run 'make mrproper'
";\
echo " in the '/usr/src/linux-2.6.3-15mdk' directory.";\
/bin/false; \
fi;
/usr/src/linux-2.6.3-15mdk is not clean, please run 'make mrproper'
in the '/usr/src/linux-2.6.3-15mdk' directory.
make[3]: *** [prepare1] Error 1
make[2]: *** [modules] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.

LordMorgul 08-15-04 02:19 AM

Re: Can't Commpile 6111 Drivers on Mandrake 10
 
/usr/src/linux-2.6.3-15mdk is not clean, please run 'make mrproper'
in the '/usr/src/linux-2.6.3-15mdk' directory.


What you should do first, is take care of that problem. Try this:
# /bin/su -
# cd /usr/src/linux-2.6.3-15mdk
# make mrproper

Then try running the installer again.

Dart 08-15-04 04:20 AM

Re: Can't Commpile 6111 Drivers on Mandrake 10
 
Quote:

Originally Posted by LordMorgul
/usr/src/linux-2.6.3-15mdk is not clean, please run 'make mrproper'
in the '/usr/src/linux-2.6.3-15mdk' directory.


What you should do first, is take care of that problem. Try this:
# /bin/su -
# cd /usr/src/linux-2.6.3-15mdk
# make mrproper

Then try running the installer again.

Nope....if you do that you not only lose your .config (you DID back up your .config right?) But then you get this error because the installer checks for a valid .config:

ERROR: 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 appropriate nvidia-installer command line option.


This check is annoying, potentially hazardous to your .config, and contradicts nvidia's own compiling checks. Why is it in there at all?

The correct answer is here: http://www.nvnews.net/vbulletin/show...4&postcount=53

Dart 08-15-04 04:55 AM

Re: Can't Commpile 6111 Drivers on Mandrake 10
 
Except that doesn't work either....back to the original "make mrproper" error....hmmm.

Command line is ./NVIDIA-Linux-x86-1.0-6111-pkg1.run --add-this-kernel

and then the usual:

./NVIDIA-Linux-x86-1.0-6111-pkg1-custom.run -a -n --no-network --no-rpms --kernel-source-path=/home/dart/kernels/linux-2.6.4

Must have missed something..... :banghead:

horobi 08-16-04 03:43 AM

Re: Can't Commpile 6111 Drivers on Mandrake 10
 
Quote:

Originally Posted by Dart
Except that doesn't work either....back to the original "make mrproper" error....hmmm.

Command line is ./NVIDIA-Linux-x86-1.0-6111-pkg1.run --add-this-kernel

and then the usual:

./NVIDIA-Linux-x86-1.0-6111-pkg1-custom.run -a -n --no-network --no-rpms --kernel-source-path=/home/dart/kernels/linux-2.6.4

Must have missed something..... :banghead:

i have exactly the same problem on amd_x64 mandrake 10.0 rc1 kernel 2.6.3-9mdk :mad:

LordMorgul 08-16-04 04:55 AM

Re: Can't Commpile 6111 Drivers on Mandrake 10
 
Quote:

Originally Posted by Dart
Nope....if you do that you not only lose your .config (you DID back up your .config right?) But then you get this error because the installer checks for a valid .config:

Yikes, Thanks for pointing out my omission in that suggestion (I typically remove the .config deletion from the makefile). If you do actually keep a copy of the config, and replace it in the source tree after cleaning it.. this problem should disappear.

# cd /usr/src/linux-2.6.3-15mdk
# cp .config /tmp/.config
# make mrproper
# cp /tmp/.config .
# make prepare

And all should be well.

Mitto_mors 08-23-04 04:33 AM

Re: Can't Commpile 6111 Drivers on Mandrake 10
 
I had similar problems with my Nvidia Graphics installer when i updated my kernel above 2.6.7 so as soon as i went to build 13 or higher...no luck with the drivers. But it works fine now that i run build 7...weird(well not really it is understandable) but anyways...i hope i have been some help.

Mitto Omnis Hostis Ad Mors.
hint... it's latin.

zander 08-23-04 09:42 AM

Re: Can't Commpile 6111 Drivers on Mandrake 10
 
This patch should fix the problem: http://www.minion.de/files/Makefile.....1.0-6111.diff. In order to use it, please extract the .run installer with --extract-only, then change to the NVIDIA-Linux-x86-1.0-6111-pkg0/usr/src/nv subdirectory and apply the patch with patch Makefile.kbuild < /path/to/Makefile.kbuild.1.0-6111.diff. Then change back to the top-level driver directory and install the driver with ./nvidia-installer.

naddad 08-31-04 12:29 PM

Re: Can't Commpile 6111 Drivers on Mandrake 10
 
Hi,

In the directory NVIDIA/urs/src/nv, i copied the patch .diff u pointed to, and typed:

patch themakefile.kbuildthing.diff /NVIDIA/usr/src/nv/themakefile.kbuildthing.diff

i got:

Patching file makefile.kbuild.1.0-6111.diff
Hunk #1 failed at 99
Hunk #2 failed at 245
2 out of 2 hunks failed -- saving rejects to file Makefile.etc.diff.rej

Now what? Please help, it's been 4 days i've been trying to install the drivers, the generic drivers that came with the download version of Mandrake 10 do not work at all.
Thanks.

zander 08-31-04 12:45 PM

Re: Can't Commpile 6111 Drivers on Mandrake 10
 
Please take another look at the patching instructions, the file that needs to be patched isMakefile.kbuild; it seems that the problem can also be worked around by running the .run installer with the --add-this-kernel option before the actual installation.

siddly 08-31-04 06:49 PM

Re: Can't Commpile 6111 Drivers on Mandrake 10
 
A similar problem was seen on SuSE 9.1, a temporary workaround was "rmmod rivafb" until a new kernel was built. I shall check my mandrake 10 box later to see if rivafb is a module or is compiled in.

zander 09-01-04 03:40 AM

Re: Can't Commpile 6111 Drivers on Mandrake 10
 
That sounds like a different problem; rivatv can prevent the NVIDIA driver from being loaded on Linux 2.6 kernels, but it won't prevent the NVIDIA kernel module from being built - unless it was built into the kernel.


All times are GMT -5. The time now is 11:51 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.