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 07-22-2007, 07:13 AM   #1
STARHARVEST
Member
 
Registered: Nov 2005
Location: Russia, republic of Bashkiria
Distribution: Slackware 12.1
Posts: 294

Rep: Reputation: 31
Can't install NVIDIA Driver


While installing we get - "unable to build the nvidia kernel module".

GeForce MX400
NVIDIA-Linux-x86-1.0-8776-pkg1.run

It was fine with slack 11.0

Any ideas?
 
Old 07-22-2007, 09:21 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
There could be many reasons, you need to check the error log to find out exactly what is happening.

Off the top of my head the most likely cause is that you don't have the kernel source installed. Or else you don't have the development packages installed that allow you to compile software.
 
Old 07-22-2007, 09:22 AM   #3
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Quote:
Originally Posted by STARHARVEST
While installing we get - "unable to build the nvidia kernel module".

GeForce MX400
NVIDIA-Linux-x86-1.0-8776-pkg1.run

It was fine with slack 11.0

Any ideas?
Have you added your kernel-source that matches your current kernel for the driver to compile against? Perhaps checking the NVIDIA logfile will give a more details of the failure.

Apologies MS3FGX I seem to have crossed your post.

Last edited by {BBI}Nexus{BBI}; 07-22-2007 at 11:09 AM.
 
Old 07-22-2007, 10:41 AM   #4
STARHARVEST
Member
 
Registered: Nov 2005
Location: Russia, republic of Bashkiria
Distribution: Slackware 12.1
Posts: 294

Original Poster
Rep: Reputation: 31
log

Well guys, here is the LOG:

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun Jul 22 20:43:30 2007

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
precompiled interfaces : true
no ncurses color : false
query latest version : false
OpenGL header files : true
no questions : false
silent : false
no recursion : false
no backup : false
kernel module only : false
sanity : false
add this kernel : false
no runlevel check : false
no network : false
no ABI note : false
no RPMs : false
no kernel module : false
force SELinux : default
force tls : (not specified)
X install prefix : (not specified)
X library install path : (not specified)
X module install path : (not specified)
OpenGL install prefix : (not specified)
OpenGL install libdir : (not specified)
utility install prefix : (not specified)
utility install libdir : (not specified)
doc install prefix : (not specified)
kernel name : (not specified)
kernel include path : (not specified)
kernel source path : (not specified)
kernel output path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp mirror : ftp://download.nvidia.com
RPM file list : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> 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: No)
-> No precompiled kernel interface was found to match your kernel; this means
that the installer will need to compile a new kernel interface.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/2.6.21.5/source'
-> Kernel output path: '/lib/modules/2.6.21.5/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nv.o nv
-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.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 *~
rm -f -f stprof stprof.o symtab.h
rm -f -rf .tmp_versions
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.21.5/source
SYSOUT=/lib/modules/2.6.21.5/build'...

NVIDIA: calling KBUILD...
make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.21.5/build KBUILD_VERBOSE=1 -C /li
b/modules/2.6.21.5/source SUBDIRS=/tmp/selfgz2718/NVIDIA-Linux-x86-1.0-8776-
pkg1/usr/src/nv modules
make -C /lib/modules/2.6.21.5/build \
KBUILD_SRC=/usr/src/linux-2.6.21.5 \
KBUILD_EXTMOD="/tmp/selfgz2718/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv" -
f /usr/src/linux-2.6.21.5/Makefile modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are mis
sing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it
."; \
echo; \
/bin/false)
mkdir -p /tmp/selfgz2718/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/.tmp_vers
ions
rm -f /tmp/selfgz2718/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/.tmp_version
s/*
make -f /usr/src/linux-2.6.21.5/scripts/Makefile.build obj=/tmp/selfgz2718/N
VIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz2718/NVI
DIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/nv_compiler.h
cc -Wp,-MD,/tmp/selfgz2718/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/.nv.o
.d -nostdinc -isystem /usr/lib/gcc/i486-slackware-linux/4.1.2/include -D__K
ERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.21.5/include -include incl
ude/linux/autoconf.h -I/tmp/selfgz2718/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/s
rc/nv -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
-fno-common -O2 -pipe -msoft-float -mregparm=3 -freg-struct-return -mpreferr
ed-stack-boundary=2 -march=i686 -ffreestanding -maccumulate-outgoing-args -D
CONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -I/usr/src/linux-2.6.21.5/inc
lude/asm-i386/mach-default -Iinclude/asm-i386/mach-default -fomit-frame-poin
ter -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -I
/tmp/selfgz2718/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv -Wall -Wimplicit -
Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpo
inter-arith -Wno-multichar -Werror -O -fno-common -MD -Wsign-compare -Wno-ca
st-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -DNVRM
-DDYNAMIC_SLI -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=8776
-UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE_BRIDGE_AGPGA
RT_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_SYSCTL_MAX_MAP_COUNT_PRESENT -DNV
_PM_MESSAGE_T_PRESENT -DNV_PCI_CHOOSE_STATE_PRESENT -DNV_VM_INSERT_PAGE_PRES
ENT -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_VMAP_4_P
RESENT -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"
KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz2718/NVIDIA-Linux-x86-1.
0-8776-pkg1/usr/src/nv/nv.o /tmp/selfgz2718/NVIDIA-Linux-x86-1.0-8776-pkg1/u
sr/src/nv/nv.c
In file included from /tmp/selfgz2718/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src
/nv/nv.c:14:
/tmp/selfgz2718/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/nv-linux.h:17:26:
error: linux/config.h: No such file or directory
In file included from include/linux/list.h:8,
from include/linux/wait.h:22,
from include/asm/semaphore.h:41,
from include/linux/sched.h:59,
from include/linux/utsname.h:35,
from /tmp/selfgz2718/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src
/nv/nv-linux.h:19,
from /tmp/selfgz2718/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src
/nv/nv.c:14:
include/linux/prefetch.h: In function 'prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type 'void *' used in arith
metic
/tmp/selfgz2718/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/nv.c: At top level
:
/tmp/selfgz2718/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/nv.c:102: warning:
'kmem_cache_t' is deprecated
/tmp/selfgz2718/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/nv.c: In function
'nv_kern_open':
/tmp/selfgz2718/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/nv.c:1806: warning
: passing argument 2 of 'request_irq' from incompatible pointer type
make[4]: *** [/tmp/selfgz2718/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/nv.o
] Error 1
make[3]: *** [_module_/tmp/selfgz2718/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src
/nv] Error 2
make[2]: *** [modules] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [mdl] 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.
 
Old 07-22-2007, 06:33 PM   #5
J_W
Member
 
Registered: Apr 2004
Location: Yamagata, JAPAN
Distribution: Slackware64-current
Posts: 189

Rep: Reputation: 123Reputation: 123
Hi,

Try to use the latest legacy driver (1.0-9639).
 
Old 07-22-2007, 07:50 PM   #6
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
Recompile your kernel without the nv driver. It conflicts with the binary NVIDIA driver.
 
Old 11-05-2007, 12:19 PM   #7
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I can't believe I missed this post (must have been on vacation) ... it may be too late now, but the answer is simple and has been posted before a number of times, and it is ever recommended by the nvidia installer.

Quote:
"Run 'make oldconfig && make prepare' on kernel src to fix it"
That's the answer. The kernel source is usually in '/usr/src/linux', or you can follow the symlink in '/lib/modules/$(uname -r)/source' or '/build'.
 
Old 11-05-2007, 05:54 PM   #8
STARHARVEST
Member
 
Registered: Nov 2005
Location: Russia, republic of Bashkiria
Distribution: Slackware 12.1
Posts: 294

Original Poster
Rep: Reputation: 31
Now all works with 1.0-9639 nvidia driver just fine.
 
Old 11-06-2007, 03:17 AM   #9
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Ok, well that's good to hear.
 
  


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
Nvidia Problem: can't install nvidia driver for FC6 Chuong Linux - Software 7 10-30-2006 04:43 AM
nVidia driver install COKE CAN Debian 28 08-25-2005 03:24 PM
Nvidia Driver Install - rivafb driver conflicts rjcmi Debian 5 10-10-2004 11:58 PM
Nvidia driver install help fzx1 Linux - Newbie 2 04-09-2004 04:13 PM
nvidia driver wont install (suse 8.2_ftp install) splintah Linux - Newbie 1 10-06-2003 03:03 PM

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

All times are GMT -5. The time now is 01:21 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