PDA

View Full Version : No precompiled kernel interface was found to match your kernel


xmoleculex
04-09-03, 02:24 AM
I'm getting this error upon trying to run the installer script. It doesn't get very far before getting this message.

I have a Dell Dimension 8200 with a Geforce3 ti200

Here's my log file:

--------------------------------------------------------------------------------

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Wed Apr 9 03:10:55 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
no 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)
-> 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-pent-ide/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-pe
nt-ide/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.

*** Failed cc sanity check. Bailing out! ***
make: *** [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 www.nvidia.com.

bwkaz
04-09-03, 07:45 AM
Post the output of gcc -dumpversion and cat /proc/version.

Also, which distro is this?

The error message you're getting (compiler version mismatch) is because whoever compiled your kernel used a different version compiler than the one that's currently installed on your system. gcc -dumpversion tells you what's on your system, and the compiler used on the kernel is "stored" in /proc/version. Generally, if the /proc/version compiler is older, the solution is to recompile the kernel with the system compiler, and if the /proc/version compiler is newer (for some reason -- though that rarely happens), the solution is to install the matching compiler version.

Or, if the only difference is in the patch level of the compiler (e.g. if /proc/version says gcc 3.2.1, but gcc -dumpversion says 3.2.2), then you should be OK using the IGNORE_CC_MISMATCH thing.

fanatick
01-04-08, 02:52 AM
ok I'm new to kubuntu so please dont get to mad at my long and noobish post I am installing drivers for my nvidia 8800gts. Ok so I download the drivers log off and hit ctrl alt f1

and I go to cmd and I type in "cd Desktop"

then "sudo /etc/init.d/kdm stop" it does its thing.

I go back to cmd and type "sudo sh NVIDIA-linux-x86-169.07-pkg1.run" it runs.

Then brings me to the user agreement thing I click "accept"

Then is pulls up something that says "No precompiled kernel interface was found to match your kernal; would you like the installer to attempt to download a kernal interface for your kernal from the NVIDIA ftp site"

from here I can pick "yes" or "no" I've picked then both. IF I pick "yes"

It says "No matching precompiled kernel interface was found on NVIDIA ftp site; this means that the installer will need to compile a kernel interface for your kernel"

so I pick "OK"

And it gives me "ERROR: You do not appear to have a libc header file installed on your system. Please install your distribution's libc development package."

so I pick "ok"

And it says "ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for detail you may find suggestion on fixing installation problems in the README available on the linux driver download page at www.nvidia.com"

so I did what any person who has no idea whats going on would do and did it all over again and this time I picked "No"

And it says "No precompiled kernel interface was found to match your kernel; this means that the installer will need to compile a new kernel interface"

I pick "OK"

And it says "ERROR you do not appear to have libc header files installed on your system. Please install your distribution's libc development package."

So I pick "OK" and it gives me the same error about the installation has failed.


Can someone please help me? I've been stuck on this for about 4 hours just looking around on google to see if anyone had my problem. With no luck I have made this post.

zander
01-04-08, 02:57 AM
If in doubt, please post the information bwkaz requested, i.e. information aobut the default system compiler and the target kernel. Here's an example:

# gcc -v
(...)
gcc version 4.2.3 20071123 (prerelease) (Debian 4.2.2-4)
# cat /proc/version
Linux version 2.6.23.9 (root@osprey) (gcc version 3.4.6 (Debian 3.4.6-6)) #3 PREEMPT Mon Dec 31 10:38:16 CET 2007

As you can see, the compiler versions don't match. In order to successfully build and install a kernel module for the above kernel, you'd need to do something along these lines (this applies to Debian GNU/Linux and Ubuntu systems, installation steps vary between distributions):
# apt-get install gcc-3.4
# CC=gcc-3.4 sh NVIDIA-linux-x86-169.07-pkg1.run
You may also need to install glibc and other development files; `apt-get install build-essential` achieves this on Debian GNU/Linux and derivatives.

Please also see http://www.nvnews.net/vbulletin/showthread.php?t=72490.

fanatick
01-04-08, 03:08 AM
Ok I typed in gcc -v

And it says " gcc version 4.1.3 20070929 (prerelease) (Unbuntu 4.1.2 -16unbuntu2)"

And cat /proc/version says " linux version 2.6.22-14-generic (buildd@terranova) (gcc version 4.1.3 20070929) (prerelease) (Ubuntu 4.1.2-16ubuntu1))"


what should I do ?

zander
01-04-08, 03:16 AM
ERROR you do not appear to have libc header files installed on your system. Please install your distribution's libc development package.
Judging from the above error message and the information you provided, it should be sufficient to install the build-essential meta-package as I suggested in my last post; please do also see http://www.nvnews.net/vbulletin/showthread.php?t=72490.

Slyzx1
04-28-08, 09:58 PM
Different Guy, Same problem, also my first attempt at any linux distro:

I am also using (attempting to use) Kubuntu and getting exact same kernel problem when trying to install the Nvidia drivers;

# gcc -v
gcc version 4.2.3 (Ubuntu 4.2.3-2Ubuntu7)

#cat /proc/version
Linux version 2.6.24-16-generic (buildd@palmer) (gcc version 4.2.3 (Ubuntu 4.2.3-2Ubuntu7))

It appears as tho they match.

You mention "build-essential"...can you provide a link and instructions on installation and use?

then...I assume once I run "build-essentials", I can just proceed with my NVidia driver installation as normal and not experience the same kernel errors?


Thanks in advance for the help.

Sly

:cool:

NvFuchs
04-29-08, 04:37 AM
If this is debian / ubuntu:
(which it is, according to your post)

Please do _not_ install the driver by hand.
Use the restricted driver manager provided by ubuntu
or envy, else, if you do not follow the instructions
in the sticky threads _carefully_ you will end up with
a not working / failsafe X11, which you really don't want
if you are new to linux.

If you want to ignore all warnings and install by hand
anyway:

sudo apt-get install build-essential

and the same for the header files of your current kernel.

(You can get your kernel by typing uname -r in a console,
and apt-cache search can be used to search for packages)

Please read the basics of your distributions package management,
you will need this a lot and it really makes installing new
software easy.

hth

Fuchs

sezitas
07-25-08, 03:58 AM
hi, I seem to have the same problem only I am using Gentoo 2007.0 I can't get my X server to start it says that it's probably not configured properly. When I try to install the Nvidia driver I get the same error messages. here's my Nvidia-installer.log

-------------------------------------------------------------------------------------------
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sat Jul 26 03:04:37 2008

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
no X server check : false
no cc version check : false
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".
ERROR: Unable to find the kernel source tree for the currently running kernel.
Please make sure you have installed the kernel source files for your
kernel and that they are properly configured; on Red Hat Linux systems,
for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM
installed. If you know the correct kernel source files are installed,
you may specify the kernel source path with the '--kernel-source-path'
command line option.
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.

-------------------------------------------------------------------------------------
when I type apt-get it says unknown command please help me I don't know what to do.

NvFuchs
07-25-08, 08:13 AM
Sorry to say it like that, but you should not be using gentoo.

Emerge a kernel and make sure the symlink
/usr/src/linux points to it.

And of course apt-get doesn't work on gentoo, gentoo uses portage, so the command but we emerge. But as the packages mentioned above do not exist for gentoo, this will fail anyway.

Please read the gentoo documentation and wiki,
and remember that gentoo is not made to be idiot-proof and 100% new-user friendly.

And why are you guys installing the driver manually anyway?
There are ubuntu packages, there is a gentoo ebuild.

A simple emerge -av nvidia-drivers probably tells you what is wrong with your system, what you need, and then, when you have all the requirements, installs the driver for you.

Fuchs