LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-01-2005, 04:38 PM   #1
thordahl
LQ Newbie
 
Registered: Dec 2004
Posts: 20

Rep: Reputation: 0
Nvidia driver compilation


i have a 2.6.11 kerne, xorg 6.8.2, SuSE 9.2. i´ve installed xorg 6.8.2 without problem but when i try to install nvidia driver, when compiles, it gives me nexte error:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Wed Jun 1 23:42:32 2005

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
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
force tls : (not specified)
force compat32 tls : (not specified)
X install prefix : /usr/X11R6
OpenGL install prefix : /usr
compat32 install prefix : (not specified)
installer install prefix: /usr
utility install prefix : /usr
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.
-> Kernel source path: '/usr/src/linux-2.6.11'
-> Performing CC test with CC="cc".
-> Performing rivafb 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.o nv-vm.o os-
agp.o os-interface.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 *~
rm -f -rf .tmp_versions
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/usr/src/linux-2.6.11 SYSOUT
=/usr/src/linux-2.6.11'...

NVIDIA: calling KBUILD...
make CC=cc KBUILD_VERBOSE=1 -C /usr/src/linux-2.6.11 SUBDIRS=/tmp/selfgz729
0/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv modules
Makefile:486: .config: No such file or directory
mkdir -p /tmp/selfgz7290/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/.tmp_vers
ions
make -f scripts/Makefile.build obj=/tmp/selfgz7290/NVIDIA-Linux-x86-1.0-7174
-pkg1/usr/src/nv
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz7290/NVI
DIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv_compiler.h
cc -Wp,-MD,/tmp/selfgz7290/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/.nv.o
.d -nostdinc -isystem /usr/lib/gcc-lib/i586-suse-linux/3.3.4/include -D__KER
NEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasi
ng -fno-common -ffreestanding -O2 -fomit-frame-pointer -pipe -msoft-floa
t -mpreferred-stack-boundary=2 -fno-unit-at-a-time -Iinclude/asm-i386/mach-
default -I/tmp/selfgz7290/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv -Wall
-Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts
-Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -MD
-Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__
-DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE
-DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7174 -DNV_UNIX
-DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBUG -DNV
_SIGNAL_STRUCT_RLIM -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESE
NT -DNV_PCI_DISABLE_DEVICE_PRESENT -DNV_CLASS_SIMPLE_CREATE_PRESENT -DNV_PCI
_GET_CLASS_PRESENT -DNV_VMAP_4_PRESENT -DMODULE -DKBUILD_BASENAME=nv -DKBUI
LD_MODNAME=nvidia -c -o /tmp/selfgz7290/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/s
rc/nv/nv.o /tmp/selfgz7290/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c
In file included from include/linux/list.h:7,
from include/linux/wait.h:23,
from include/asm/semaphore.h:41,
from include/linux/sched.h:19,
from include/linux/module.h:10,
from /tmp/selfgz7290/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
/nv/nv-linux.h:46,
from /tmp/selfgz7290/NVIDIA-Linux-x86-1.0-7174-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
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:863,
from /tmp/selfgz7290/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
/nv/nv-linux.h:69,
from /tmp/selfgz7290/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
/nv/nv.c:14:
include/asm/io.h: In function `check_signature':
include/asm/io.h:242: warning: wrong type argument to increment
/tmp/selfgz7290/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c: In function
`nvidia_init_module':
/tmp/selfgz7290/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:970: warning:
`pm_register' is deprecated (declared at include/linux/pm.h:106)
/tmp/selfgz7290/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:1036: warning
: `pm_unregister' is deprecated (declared at include/linux/pm.h:111)
/tmp/selfgz7290/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c: In function
`nvidia_exit_module':
/tmp/selfgz7290/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.c:1119: warning
: `pm_unregister' is deprecated (declared at include/linux/pm.h:111)
/bin/sh: scripts/basic/fixdep: No such file or directory
make[3]: *** [/tmp/selfgz7290/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.o
] Error 1
make[2]: *** [_module_/tmp/selfgz7290/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
/nv] 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.
i need any help
 
Old 06-01-2005, 07:28 PM   #2
Grajagan
LQ Newbie
 
Registered: May 2005
Location: Brazil
Posts: 27

Rep: Reputation: 15
make sure you have the kernel-source and kernel-headers installed on your distribution
 
Old 06-07-2005, 03:20 PM   #3
Damatie
LQ Newbie
 
Registered: Jun 2005
Distribution: Mandriva LE2005
Posts: 5

Rep: Reputation: 0
I am seeing the same errors on Mandriva LE2005. Do have Kernel source and headers installed. Have you found the fix yet? I need help as well.

-> Kernel source path: '/lib/modules/2.6.11-6mdk/source'
-> Performing CC test 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 nv-vm.o os-agp.o os-interface.o os-registry.o nv.o nv-vm.o os-
agp.o os-interface.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 *~
rm -f -rf .tmp_versions
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.11-6mdk/sou
rce SYSOUT=/lib/modules/2.6.11-6mdk/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 CC=cc KBUILD_OUTPUT=/lib/modules/2.6.11-6mdk/build KBUILD_VERBOSE=1 -C
/lib/modules/2.6.11-6mdk/source SUBDIRS=/root/tmp/selfgz8469/NVIDIA-Linux-x8
6-1.0-6629-pkg1/usr/src/nv modules
make -C /lib/modules/2.6.11-6mdk/build \
KBUILD_SRC=/usr/src/linux-2.6.11-6mdk KBUILD_VERBOSE=1 \
KBUILD_CHECK= KBUILD_EXTMOD="/root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-
pkg1/usr/src/nv" \
-f /usr/src/linux-2.6.11-6mdk/Makefile modules
mkdir -p /root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/.tmp
_versions
make -f /usr/src/linux-2.6.11-6mdk/scripts/Makefile.build obj=/root/tmp/self
gz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /root/tmp/selfgz846
9/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv_compiler.h
cc -Wp,-MD,/root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/
.nv.o.d -nostdinc -isystem /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.3/includ
e -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.11-6mdk/include -I
/root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv -Wall -Wstric
t-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding
-O2 -fno-omit-frame-pointer -pipe -mpreferred-stack-boundary=2 -fno-unit-at-
a-time -march=i686 -I/usr/src/linux-2.6.11-6mdk/include/asm-i386/mach-defaul
t -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -I/root/tmp
/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv -Wall -Wimplicit -Wret
urn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -
Wno-multichar -Werror -O -fno-common -MD -Wno-cast-qual -Wno-error -D_LOOSE_
KERNEL_NAMES -D__KERNEL__ -DMODULE -
DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_V
ERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=6629 -DNV_UNIX -DNV_LINUX -DNV
_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBUG -DNV_REMAP_PFN_RANGE_PRESENT
-DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_DEVICE_PRESENT -DNV_CLASS_SIM
PLE_CREATE_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DMODULE -DKBUILD_BASENAME=nv
-DKBUILD_MODNAME=nvidia -c -o /root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629
-pkg1/usr/src/nv/nv.o /root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/us
r/src/nv/nv.c
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:863,
from /root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/us
r/src/nv/nv-linux.h:75,
from /root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/us
r/src/nv/nv.c:14:
include/asm/io.h: In function `check_signature':
include/asm/io.h:242: warning: wrong type argument to increment
/root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c: In func
tion `nvidia_init_module':
/root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:930: war
ning: `pm_register' is deprecated (declared at include/linux/pm.h:106)
/root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c: In func
tion `nvidia_exit_module':
/root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:1051: wa
rning: `pm_unregister' is deprecated (declared at include/linux/pm.h:111)
/root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c: In func
tion `_get_phys_address':
/root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:2509: er
ror: request for member `pgd' in something not a structure or union
/root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c: In func
tion `nv_agp_init':
/root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:2992: wa
rning: `inter_module_put' is deprecated (declared at include/linux/module.h:
578)
make[4]: *** [/root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv
/nv.o] Error 1
make[3]: *** [_module_/root/tmp/selfgz8469/NVIDIA-Linux-x86-1.0-6629-pkg1/us
r/src/nv] Error 2
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.
 
Old 06-07-2005, 06:16 PM   #4
Lier
Member
 
Registered: Jan 2005
Location: Argentina
Distribution: SUSE 9.0, 9.2, 10.0, Slackware 10.2 and slamd64
Posts: 135

Rep: Reputation: 15
Go to yast and make sure you have installed the kernel-source, and then follow this steps:
1- init 3 (as root)
2- rmmod nvidia
3- cd /usr/src/linux
4- make cloneconfig
5- make prepare-all
6- go to the folder where you have downloaded the driver from nvidia
7- sh NVIDIA-Linux-x86-1.0-7174-pkg1.run -q --kernel-source-path=/usr/src/linux
8- modprobe nvidia
9- sax2 -m 0=nvidia

That works for me, i hope for you either.
 
Old 06-07-2005, 06:39 PM   #5
Damatie
LQ Newbie
 
Registered: Jun 2005
Distribution: Mandriva LE2005
Posts: 5

Rep: Reputation: 0
Quote:
Originally posted by Lier
Go to yast and make sure you have installed the kernel-source, and then follow this steps:
1- init 3 (as root)
2- rmmod nvidia
3- cd /usr/src/linux
4- make cloneconfig
5- make prepare-all
6- go to the folder where you have downloaded the driver from nvidia
7- sh NVIDIA-Linux-x86-1.0-7174-pkg1.run -q --kernel-source-path=/usr/src/linux
8- modprobe nvidia
9- sax2 -m 0=nvidia

That works for me, i hope for you either.
Ok, I am going to try that. I am running Mandriva 2005LE so I do not have yast. I have checked to make sure kernel-source is installed. Going to try now.
 
Old 06-07-2005, 07:06 PM   #6
Damatie
LQ Newbie
 
Registered: Jun 2005
Distribution: Mandriva LE2005
Posts: 5

Rep: Reputation: 0
Tried that and same error. Any other ideas? I am wanting to dump XP but no hardware acceleration in linux is preventing me from doing this.

Note: I am installing NVIDIA-Linux-x86-1.0-6629-pkg1.run
The latest driver release does not support my Geforce 2 GTS Pro
 
Old 06-07-2005, 10:50 PM   #7
Lier
Member
 
Registered: Jan 2005
Location: Argentina
Distribution: SUSE 9.0, 9.2, 10.0, Slackware 10.2 and slamd64
Posts: 135

Rep: Reputation: 15
Sorry, my last post it's only for Suse 9.2, for mandriva(or mandrake) you'll have to read the HOWTO from nvidia web-page. I can't tell you how to install it because i neved used mandriva(or mandrake), but i know that the drivers from nvidia need to be installed in an other way.

Sorry.
 
Old 06-08-2005, 12:13 AM   #8
Damatie
LQ Newbie
 
Registered: Jun 2005
Distribution: Mandriva LE2005
Posts: 5

Rep: Reputation: 0
I am using the howto for mandriva. Can someone please tell me why this is not working?
 
Old 06-25-2005, 06:16 PM   #9
patroche
LQ Newbie
 
Registered: Apr 2002
Posts: 24

Rep: Reputation: 15
looks like at the moment the 1.0-6xxx Nvidia drivers won't compile on a FC4 kernel, 1.0-7xxx drivers compile fine
 
  


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
Quick question about kernel compilation and nvidia... audibel Linux - Software 5 03-12-2005 06:20 PM
usbvision driver compilation patthew Linux - Hardware 0 09-30-2004 08:23 PM
Kernel Driver compilation amish_geek Linux - Software 1 09-20-2004 08:18 AM
nvidia fx5600 loads vesa driver instead of nvidia driver saburo62 Linux - Hardware 3 05-04-2004 03:59 PM
preemptive patch + nvidia kernel compilation neenee Slackware 11 08-26-2003 05:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:49 PM.

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