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

Newegg Daily Deals

Thread Tools
Old 12-29-03, 09:43 PM   #1
Registered User
Join Date: Dec 2003
Posts: 4
Default Error compiling latest nvidia drivers


I am getting en error compiling the latest nvidia kernel drivers, the error is as follows:

-> Building kernel module:
executing: 'cd ./usr/src/nv; make nvidia.o SYSINCLUDE=/lib/modules/2.4.22-1.
echo \#define NV_COMPILER \"`gcc32 -v 2>&1 | tail -n 1`\" > nv_compiler.h
gcc32 -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts
-Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -MD -D__KERNEL__ -
b/modules/2.4.22-1.2135.nptl/build/include -Wno-cast-qual -Wno-error nv.c
In file included from /lib/modules/2.4.22-1.2135.nptl/build/include/linux/vm
from nv-linux.h:72,
from nv.c:14:
/lib/modules/2.4.22-1.2135.nptl/build/include/linux/highmem.h: In function `
/lib/modules/2.4.22-1.2135.nptl/build/include/linux/highmem.h:20: warning: p
ointer of type `void *' used in arithmetic
In file included from nv.c:14:
nv-linux.h:420:2: #error "Couldn't determine number of arguments expected by
nv.c: In function `nv_kern_mmap':
nv.c:1430: warning: implicit declaration of function `NV_REMAP_PAGE_RANGE'
make: *** [nv.o] Error 1
-> Error.
ERROR: Unable to build the NVIDIA kernel module.

NOTE: I am using Fedora Core 1, and I was able to successfully compile and install the drivers before. I attempted to install an old copy of glibc which hosed my system, but I used the Fedora CD to reinstall the latest glibc and fixed my /etc/ld.so.conf file and everything seems to be back to normal now. The only difference was that I uninstalled the nvidia kernel module, and now when I attempt a reinstall, I get this error. Please let me know if you have any idea what might be wrong, or if you need any additional information. Thanks!
XulChris is offline   Reply With Quote
Old 12-29-03, 11:42 PM   #2
Registered User
Join Date: Dec 2003
Posts: 4

Okay, with a little help from someone in #fedora I was able to get a little further. He suggested I reinstall my kernel-source rpms and then do a make distclean; cp -a configs/kernel-2.4.22-i686.config .config ; make oldconfig ; make dep

This fixed the error that I reported above and running the command CC="gcc32" sh NVIDIA-Linux-x86-1.0-5328-pkg1.run --add-this-kernel successfully build a custom-run file without error.

However, now, when I try installing CC="gcc32" sh NVIDIA-Linux-x86-1.0-5328-pkg1-custom.run

I now get the following error:

-> Kernel module load error: ./usr/src/nv/nvidia.o: kernel-module version
./usr/src/nv/nvidia.o was compiled for kernel version
while this kernel is version 2.4.22-1.2135.nptl.

If anyone knows how to fix this, please advice!

XulChris is offline   Reply With Quote
Old 12-30-03, 12:56 AM   #3
Registered User
Join Date: Dec 2003
Posts: 4

ok after modifying the EXTRAVERSION in the kernel makefile, and repeating the steps above, the driver now installs correctly!!! Please disregard any error reports for this thread.
XulChris is offline   Reply With Quote

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
NVIDIA Drivers Receive Windows 8 Certification News Archived News Items 0 06-01-12 05:30 AM
Radeon 9700 not all that? sancheuz Other Desktop Graphics Cards 200 10-12-02 09:31 PM
Nvidia Stereo Drivers Soudontsay NVIDIA Windows Graphics Drivers 2 08-26-02 10:48 AM
nvidia drivers in a motherboard with AGP 1.0 (motherboard MVP3+) knocker NVIDIA Linux 1 08-19-02 01:57 AM
NVIDIA 2960 Drivers & RH 7.3 W/2.4.18-5 XASCompuGuy NVIDIA Linux 6 08-02-02 11:53 AM

All times are GMT -5. The time now is 03:23 PM.

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