LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-22-2003, 08:18 AM   #1
BrainDamaged
LQ Newbie
 
Registered: Nov 2003
Location: Bath UK
Distribution: Suse 8.2pro
Posts: 4

Rep: Reputation: 0
Unhappy Nvidia Driver install Problems!


Hi all this will be my first post so bare with me

After following the sticky and trying to install the Nvidia Geforce drivers i get the following error

Quote:
ERROR: Unable to build the NVIDIA kernel module.
It then tells me to look at the log so here is the following
Quote:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sat Nov 22 14:10:06 2003

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
XFree86 install prefix : /usr/X11R6
OpenGL install prefix : /usr
Installer install prefix: /usr
kernel include path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp


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 ? (Answer: No)
-> No precompiled kernel interface was found to match your kernel; this means
that the installer will need to compile a new kernel interfaceftp site :
-> Kernel include path: '/lib/modules/2.4.20-4GB-athlon/build/include'
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
rm -f nv.o os-agp.o os-interface.o os-registry.o nv-linux.o nv_compiler.h *
.d NVdriver nvidia.o
-> Building kernel module:
executing: 'cd ./usr/src/nv; make nvidia.o SYSINCLUDE=/lib/modules/2.4.20-4G
B-athlon/build/include'...

You appear to be compiling the NVIDIA kernel module with
a compiler different from the one that was used to compile
the running kernel. This may be perfectly fine, but there
are cases where this can lead to unexpected behaviour and
system crashes.

If you know what you are doing and want to override this
check, you can do so by setting IGNORE_CC_MISMATCH.

In any other case, set the CC environment variable to the
name of the compiler that was used to compile the kernel.

[1;31m*** Failed cc sanity check. Bailing out! ***
[0mmake: *** [gcc-check] Error 1
-> 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 Nvidia Webbie.
if anyone can help me resolve this it would be apreciated.
my distro is Sues 8.2 Pro on a standard instalation as im a noobie and didnt know what other distro's to try

Thanks BD
 
Old 11-22-2003, 08:33 AM   #2
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
As stated in the message generated by the installer, you can try running it anyway by setting IGNORE_CC_MISMATCH

so you run:

IGNORE_CC_MISMATCH=1 ./Nvidia-installer-blah-blah.run

However again as stated in the message this can lead to unexpected results, I suppose if you want to avoid this the best way is to compile your own kernel with the current gcc compiler.
 
Old 11-23-2003, 07:57 AM   #3
BrainDamaged
LQ Newbie
 
Registered: Nov 2003
Location: Bath UK
Distribution: Suse 8.2pro
Posts: 4

Original Poster
Rep: Reputation: 0
Demonbane

Thanks for the avice but that still didnt work this the the output from the instaler log

Quote:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun Nov 23 13:48:53 2003

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
XFree86 install prefix : /usr/X11R6
OpenGL install prefix : /usr
Installer install prefix: /usr
kernel include path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp site : ftp://download.nvidia.com

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: Yes)
ERROR: Unable to connect to download.nvidia.com (temporary DNS error (try again
later))
-> 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 include path: '/lib/modules/2.4.20-4GB-athlon/build/include'
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
rm -f nv.o os-agp.o os-interface.o os-registry.o nv-linux.o nv_compiler.h *
.d NVdriver nvidia.o
-> Building kernel module:
executing: 'cd ./usr/src/nv; make nvidia.o SYSINCLUDE=/lib/modules/2.4.20-4G
B-athlon/build/include'...
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > nv_compiler.h
cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wp
arentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -
DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D_
_KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVE
L=4496 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -DREMAP_PA
GE_RANGE_4 -I. -I/lib/modules/2.4.20-4GB-athlon/build/include -Wno-cast-qua
l nv.c
In file included from /lib/modules/2.4.20-4GB-athlon/build/include/linux/vma
lloc.h:8,
from nv-linux.h:72,
from nv.c:14:
/lib/modules/2.4.20-4GB-athlon/build/include/linux/highmem.h: In function `b
h_kmap':
/lib/modules/2.4.20-4GB-athlon/build/include/linux/highmem.h:22: warning: po
inter of type `void *' used in arithmetic
In file included from nv.c:14:
nv-linux.h: In function `calc_order':
nv-linux.h:497: warning: comparison between signed and unsigned
nv.c: In function `nvos_post_vbios':
nv.c:194: warning: comparison between signed and unsigned
nv.c:194: warning: comparison between signed and unsigned
nv.c: In function `nvl_find_alloc':
nv.c:697: warning: comparison between signed and unsigned
nv.c: In function `nv_kern_mmap':
nv.c:1345: warning: comparison between signed and unsigned
nv.c:1364: warning: comparison between signed and unsigned
nv.c:1391: warning: comparison between signed and unsigned
nv.c:1438: warning: comparison between signed and unsigned
nv.c: In function `nv_find_kernel_mapping':
nv.c:2134: warning: comparison between signed and unsigned
nv.c: In function `nv_find_agp_kernel_mapping':
nv.c:2197: warning: comparison between signed and unsigned
nv.c: In function `nv_alloc_pages':
nv.c:2366: warning: comparison between signed and unsigned
nv.c:2394: warning: comparison between signed and unsigned
cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wp
arentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -
DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D_
_KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVE
L=4496 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -DREMAP_PA
GE_RANGE_4 -I. -I/lib/modules/2.4.20-4GB-athlon/build/include -Wno-cast-qua
l os-agp.c
In file included from /lib/modules/2.4.20-4GB-athlon/build/include/linux/vma
lloc.h:8,
from nv-linux.h:72,
from os-agp.c:24:
/lib/modules/2.4.20-4GB-athlon/build/include/linux/highmem.h: In function `b
h_kmap':
/lib/modules/2.4.20-4GB-athlon/build/include/linux/highmem.h:22: warning: po
inter of type `void *' used in arithmetic
In file included from os-agp.c:24:
nv-linux.h: In function `calc_order':
nv-linux.h:497: warning: comparison between signed and unsigned
cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wp
arentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -
DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D_
_KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVE
L=4496 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -DREMAP_PA
GE_RANGE_4 -I. -I/lib/modules/2.4.20-4GB-athlon/build/include -Wno-cast-qua
l os-interface.c
In file included from /lib/modules/2.4.20-4GB-athlon/build/include/linux/vma
lloc.h:8,
from nv-linux.h:72,
from os-interface.c:26:
/lib/modules/2.4.20-4GB-athlon/build/include/linux/highmem.h: In function `b
h_kmap':
/lib/modules/2.4.20-4GB-athlon/build/include/linux/highmem.h:22: warning: po
inter of type `void *' used in arithmetic
In file included from os-interface.c:26:
nv-linux.h: In function `calc_order':
nv-linux.h:497: warning: comparison between signed and unsigned
os-interface.c: In function `os_dbg_init':
os-interface.c:958: warning: comparison between signed and unsigned
cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wp
arentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -
DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D_
_KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVE
L=4496 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -DREMAP_PA
GE_RANGE_4 -I. -I/lib/modules/2.4.20-4GB-athlon/build/include -Wno-cast-qua
l os-registry.c
In file included from /lib/modules/2.4.20-4GB-athlon/build/include/linux/vma
lloc.h:8,
from nv-linux.h:72,
from os-registry.c:14:
/lib/modules/2.4.20-4GB-athlon/build/include/linux/highmem.h: In function `b
h_kmap':
/lib/modules/2.4.20-4GB-athlon/build/include/linux/highmem.h:22: warning: po
inter of type `void *' used in arithmetic
In file included from os-registry.c:14:
nv-linux.h: In function `calc_order':
nv-linux.h:497: warning: comparison between signed and unsigned
ld -r -o nv-linux.o nv.o os-agp.o os-interface.o os-registry.o
ld -r -o nvidia.o nv-linux.o nv-kernel.o
-> done.
-> Kernel module compilation complete.
ERROR: Unable to load the kernel module 'nvidia.o'. This is most likely
because the kernel module was built using the wrong kernel header files.
Please make sure you have installed the kernel header files for your
kernel; on Red Hat Linux systems, for example, be sure you have the
'kernel-source' rpm installed. If you know the correct kernel header
files are installed, you may specify the kernel include path with the
'--kernel-include-path' commandline option.
-> Kernel module load error: ./usr/src/nv/nvidia.o: kernel-module version
mismatch
./usr/src/nv/nvidia.o was compiled for kernel version 2.4.20-4GB
while this kernel is version 2.4.20-4GB-athlon.
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.
any one have any ideas as this is realy killin me
 
Old 11-23-2003, 08:14 AM   #4
avoidmoney
Member
 
Registered: Oct 2003
Location: south africa
Distribution: slackware
Posts: 36

Rep: Reputation: 15
compile your kernel:
cd /usr/src/linux-blah(press tab)
make menuconfig
edit your kernel.... just start with the processor
exit
make dep && make clean bzImage modules modules_install
(this takes a while)
make install

reboot.....
now install the nvidia drivers
(you must do everything as root)

if you are using alsa sound drivers, you will need to recompile them, after you have compiled the kernel

Last edited by avoidmoney; 11-23-2003 at 08:18 AM.
 
Old 11-23-2003, 08:45 AM   #5
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Or try editing /lib/modules/2.4.20-4GB-athlon/build/include/linux/version.h
change
#define UTS_RELEASE "2.4.20-4GB"

to

#define UTS_RELEASE "2.4.20-4GB-athlon"

Then try recompiling the nvidia driver, but again I'm not sure what side effects this is gonna cause, to be on the safe side you're better off compiling your own kernel using your current sources, as the previous post suggests.
 
Old 11-23-2003, 08:49 AM   #6
BrainDamaged
LQ Newbie
 
Registered: Nov 2003
Location: Bath UK
Distribution: Suse 8.2pro
Posts: 4

Original Poster
Rep: Reputation: 0
i just re compiled my kernal using the method u mentioned but when i reboot i get the following error

Quote:
Kernel Panic : VFS : unable to mount Root fs on 03:04
and suse dont boot any more
 
Old 11-23-2003, 02:27 PM   #7
avoidmoney
Member
 
Registered: Oct 2003
Location: south africa
Distribution: slackware
Posts: 36

Rep: Reputation: 15
what have u changed in your kernel?
anyway, your have changed something that shouldnt be changed, or u just have really really bad luck...

but nevermind the bollocks.
r u using lilo?
if u r, and you get at menu, type: single linux
if you get a comand line... we continue from there
 
Old 11-23-2003, 03:09 PM   #8
BrainDamaged
LQ Newbie
 
Registered: Nov 2003
Location: Bath UK
Distribution: Suse 8.2pro
Posts: 4

Original Poster
Rep: Reputation: 0
its ok now m8 and thanks for your help. i got it sorted with a little help from my uncle who just happens to be a suse guru
 
Old 11-24-2003, 08:37 AM   #9
ICO
Member
 
Registered: Aug 2003
Location: ~/.
Distribution: CentOS
Posts: 290

Rep: Reputation: 30
Hi, when I try this command:
make menuconfig

it gives me this error:
rm -f include/asm
( cd include ; ln -sf asm-i386 asm)
mkdir: cannot create directory `include/linux/modules': No such file or directory
make: *** [symlinks] Error 1

so what should I do?
 
Old 11-24-2003, 12:05 PM   #10
avoidmoney
Member
 
Registered: Oct 2003
Location: south africa
Distribution: slackware
Posts: 36

Rep: Reputation: 15
you might not have your kernel sources installed with your distro, some distro's only uses a default kernel, and you have to select that you want kernel sources installed in installation. what distro are you using?


this is a guess.........
if it is, then you can download new kernel sources, (easily available) and install it, then you should be able to compile a new kernel.
if you are going to compile a new kernel, and are unsure about the things you changed, it might be a good idea, to keep your exiting one as well
.........ill give commands once u sorted out kernel
 
Old 11-24-2003, 06:08 PM   #11
ICO
Member
 
Registered: Aug 2003
Location: ~/.
Distribution: CentOS
Posts: 290

Rep: Reputation: 30
I am using RedHat 9.0
Where can I download the kernel? And after that, what should I do? How to install? Thanks a lot
 
Old 11-25-2003, 01:18 PM   #12
avoidmoney
Member
 
Registered: Oct 2003
Location: south africa
Distribution: slackware
Posts: 36

Rep: Reputation: 15
i had rh9 as well, and first installed it, without knowing without kernel sources......

you can reinstall redhat if you want to.... and make sure you include the kernel sources. the easiest (if u have some space on your hard drive is just to select everything)

or you can just install a new kernel:
go to: http://www.bzimage.org/v2.4/

dowload the linux-2.4.22.tar.bz2
its about 30mb

now cd into /usr/src
and
bzip2 -dc linux-2.4.22.tar.bz2 | tar xvf -

ok this will unpack your new kernel..
once u have done this, you can build your kernel
just do: make menuconfig

only change your processor for the first time, later on you can take out stuff you dont need, like amateur radio support.

exit
save

make dep && make clean bzImage modules modules_install

instead of make install (which you would use, if u have a backup)

do the following:
cd /boot
mv ./vmlinuz ./vmlinuz.old
mv ./System.map ./System.map.old

cd /usr/src/linux-2.4.22
cp ./System.map /boot/System.map
cat ./arch/i386/boot/bzImage > /vmlinuz

ok ok, i hope you are using lilo, if not, get someone who knows grub to just help you add your kernel.......... but you must know this before you go and build a new kernel, otherwise you might get into a sticky situation

if you are using lilo, post, and i can tell you how to edit your lilo, otherwise, just find out how to edit GRUB, and you can go ahead.

good luck
 
Old 11-26-2003, 06:31 PM   #13
ICO
Member
 
Registered: Aug 2003
Location: ~/.
Distribution: CentOS
Posts: 290

Rep: Reputation: 30
avoidmoney, thank you so much.
I have not tried what you post yet, I will try it tonight (NZ time).
And I use lilo.
 
Old 11-27-2003, 12:23 PM   #14
avoidmoney
Member
 
Registered: Oct 2003
Location: south africa
Distribution: slackware
Posts: 36

Rep: Reputation: 15
great lilo:::

once you have done everything i said do the following:
edit /etc/lilo.conf
add these:

image = /boot/vmlinuz
label = (whatever u want to call it)
root=/dev/hda1(this line might differ)

image = /boot/vmlinuz.old
label = (something else)
root=/dev/hda1

run:
/sbin/lilo

reboot::
you should now be able to select your new kernel, or the old one

yay, happy days
 
Old 11-28-2003, 06:17 PM   #15
ICO
Member
 
Registered: Aug 2003
Location: ~/.
Distribution: CentOS
Posts: 290

Rep: Reputation: 30
Quote:
Originally posted by avoidmoney

cat ./arch/i386/boot/bzImage > /vmlinuz

ok ok, i hope you are using lilo, if not, get someone who knows grub to just help you add your kernel..........
good luck
Should this be:

cat ./arch/i386/boot/bzImage > /boot/vmlinuz

just want to make sure
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Driver install Problems... johndavid Mandriva 4 10-26-2005 06:37 PM
nvidia driver install problems Gothman Mandriva 1 05-15-2005 01:42 PM
Nvidia driver install problems kardinal Linux - Newbie 6 10-24-2004 01:15 AM
Problems with NVIDIA driver install: IGNORE_CC_MISMATCH sweet*amber Linux - Newbie 4 05-03-2004 12:43 AM
nvidia driver install problems HellBound Linux - General 15 08-29-2002 05:02 PM


All times are GMT -5. The time now is 11:58 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration