Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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.
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.
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
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
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)
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.