Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 08-15-04, 01:33 AM   #1
linuxnewb
Registered User
 
Join Date: Dec 2002
Posts: 26
Default 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.
linuxnewb is offline   Reply With Quote
Old 08-15-04, 02:19 AM   #2
LordMorgul
Electrical Engineer
 
LordMorgul's Avatar
 
Join Date: Dec 2002
Location: San Luis Obispo, CA
Posts: 872
Default 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.
__________________
"..the triumph of evil is for good men to do nothing." (Edmond Burke)
nVIDIA video driver RPMs for Fedora :: see yum repo at livna.org.
LordMorgul is offline   Reply With Quote
Old 08-15-04, 04:20 AM   #3
Dart
Registered User
 
Join Date: Aug 2004
Posts: 4
Default 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 is offline   Reply With Quote
Old 08-15-04, 04:55 AM   #4
Dart
Registered User
 
Join Date: Aug 2004
Posts: 4
Default 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.....
Dart is offline   Reply With Quote
Old 08-16-04, 03:43 AM   #5
horobi
Registered User
 
Join Date: Aug 2004
Posts: 1
Thumbs down 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.....
i have exactly the same problem on amd_x64 mandrake 10.0 rc1 kernel 2.6.3-9mdk
horobi is offline   Reply With Quote
Old 08-16-04, 04:55 AM   #6
LordMorgul
Electrical Engineer
 
LordMorgul's Avatar
 
Join Date: Dec 2002
Location: San Luis Obispo, CA
Posts: 872
Default 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.
__________________
"..the triumph of evil is for good men to do nothing." (Edmond Burke)
nVIDIA video driver RPMs for Fedora :: see yum repo at livna.org.
LordMorgul is offline   Reply With Quote
Old 08-23-04, 04:33 AM   #7
Mitto_mors
Registered User
 
Join Date: Aug 2004
Posts: 3
Default 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.
Mitto_mors is offline   Reply With Quote
Old 08-23-04, 09:42 AM   #8
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default 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.
zander is offline   Reply With Quote

Old 08-31-04, 12:29 PM   #9
naddad
Registered User
 
Join Date: Aug 2004
Posts: 1
Default 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.
naddad is offline   Reply With Quote
Old 08-31-04, 12:45 PM   #10
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default 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.
zander is offline   Reply With Quote
Old 08-31-04, 06:49 PM   #11
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default 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.
siddly is offline   Reply With Quote
Old 09-01-04, 03:40 AM   #12
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default 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.
zander is offline   Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandrake Linux 9.0 (Dolphin) now available | comments? volt General Linux 10 10-19-02 10:13 PM
Radeon 9700 not all that? sancheuz Other Desktop Graphics Cards 200 10-12-02 09:31 PM
Mandrake 9 and nVidia drivers HunterA3 NVIDIA Linux 9 10-09-02 02:54 AM
Mandrake 9.0 and drivers KramitDfrog NVIDIA Linux 2 10-06-02 05:14 PM
Problems with Mandrake and NVidia drivers..... xMonoxide187x NVIDIA Linux 2 08-22-02 01:55 PM

All times are GMT -5. The time now is 01:48 AM.


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