LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-31-2003, 12:41 PM   #1
flump
Member
 
Registered: Jan 2003
Distribution: SuSE 8.2
Posts: 73

Rep: Reputation: 15
nvidia and 3d after kernel update


after using the suse 8.2 'YOU' tool to update my system i lost 3d acceleration. it updated my kernel and now i cant install the nvidia drivers, i get the error no precompiled kernel interface.

Quote:
Using: nvidia-installer ncurses user interface
-> License accepted.
-> There appears to already be a driver installed on your system (version: 1.0-
4496). As part of installing this driver (version: 1.0-4496), the existing
driver will be uninstalled. Are you sure you want to continue? ('no' will a
bort installation) (Answer: Yes)
-> 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-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 www.nvidia.com.
uname -a
Linux linux 2.4.20-4GB-athlon #1 Wed Aug 6 18:27:52 UTC 2003 i686 unknown unknown GNU/Linux

i installed the suse 2.4.20-100 source from rpm.
 
Old 08-31-2003, 12:48 PM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
You will have to install kernel-source as well and recompile/install nvidia and alsa drivers.

# Compiling/installing kernel modules
You will need to have installed:
1. The developmental packages (compiler)
2. The kernel source code that matches your running kernel
3. The module source or install code

Check out your system and look under the hood and see if you installed the stuff you need to do the job. Open an x terminal and type in this sequence of commands to see what kernel we are running and see if you have the kernel source installed:
Code:
[fancy@tinwhistle fancy]$ su -
Password: 
[root@tinwhistle root]# uname -r
2.4.18-3
I am running kernel version 2.4.18-3. Do I have the proper source code?
Code:
[root@tinwhistle root]# cd /usr/src
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          136 Jun 12 14:53 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.18-3
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.18-3
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
I do have the same kernel version source code installed in the directory /usr/src/linux-2.4.18-3 and there is a symbolic link named linux-2.4 pointing to it.

If you don't see something similiar to this (but in color), you will need to install the kernel source.

NOTE: I noticed that Red Hat didn't make the symbolic link /usr/src/linux that all of the INSTALL files that I have read mentioned that I need, so I may as well make one now to save editing the files in the source code to install.So, I'll make it just now:
Code:
[root@tinwhistle src]# ln -s linux-2.4.18-3 linux         
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          160 Jun 12 15:46 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun 12 15:46 linux -> linux-2.4.18-3
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.18-3
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.18-3
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
Ah, there it is, so that's done.

Next, did I install the compiler?
Code:
[root@tinwhistle src]# gcc -v          
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
[root@tinwhistle src]#
Yes, I have a compiler installed.

If you don't have those two things installed, you have to install them first off your install CD.

If they are installed, download the source and happy comiling. Make sure you carefully read the README and INSTALL files after extracting and before compiling/installing.
 
Old 08-31-2003, 12:53 PM   #3
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Sounds like the problem is that the compiler used to make your suse kernel isnt the one you have installed (with which you're trying to make the nvidia module/driver). You might have to recompile your kernel without changing your settings first, so the kernel is made with the same compiler that the nvidia installer will use to make the module/driver.
 
Old 08-31-2003, 01:06 PM   #4
flump
Member
 
Registered: Jan 2003
Distribution: SuSE 8.2
Posts: 73

Original Poster
Rep: Reputation: 15
uname -r
2.4.20-4GB-athlon

i cant find the source for that any where :s

i noticed that but i didnt compile, the YOU update did it all for me.

Last edited by flump; 08-31-2003 at 01:12 PM.
 
Old 08-31-2003, 05:54 PM   #5
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
If suse installed a kernel .rpm then it's already been compiled before you got it, and I'm suggesting that a different compiler may have been used by those package makers, which could cause this error.
You're using a 2.4.20 kernel, with one config option being enable handing of 4gigs of ram, and another being use extra athlon specific chip features. It's still the same 2.4.20 kernel source as the vanilla one from kernel.org or a suse kernel source .rpm though.
 
Old 08-31-2003, 06:39 PM   #6
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
# What is the running kernel and compiler installed
cat /proc/version
 
Old 08-31-2003, 07:08 PM   #7
flump
Member
 
Registered: Jan 2003
Distribution: SuSE 8.2
Posts: 73

Original Poster
Rep: Reputation: 15
cat /proc/version
Linux version 2.4.20-4GB-athlon (root@Athlon.suse.de) (gcc version 3.3 20030226 (prerelease) (SuSE Linux)) #1 Wed Aug 6 18:27:52 UTC 2003
 
Old 08-31-2003, 07:21 PM   #8
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Install kernel-source-2.4.20-4GB-athlon (if not already done) and search the SuSE site until you can find what your running kernel was compiled with. If need be, install that version of gcc.
 
Old 08-31-2003, 07:25 PM   #9
flump
Member
 
Registered: Jan 2003
Distribution: SuSE 8.2
Posts: 73

Original Poster
Rep: Reputation: 15
i have looked for that source everywhere but just cannot find it
 
Old 08-31-2003, 07:32 PM   #10
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Have you gone through the SuSE ftp site for 8.2?

ftp://ftp.suse.com/pub/suse/i386/8.2
 
Old 08-31-2003, 08:03 PM   #11
flump
Member
 
Registered: Jan 2003
Distribution: SuSE 8.2
Posts: 73

Original Poster
Rep: Reputation: 15
its funny you should say that as i had just visited there and saw the nvidia-readme file

said to go here
ftp://ftp.suse.com/pub/suse/i386/sup...ler-HOWTO.html
got my 3d working again, that ftp didnt have source for my kernel so i installed the kernel-source-2.4.20-100

and it all works now, if you have same problem look for II. section (custom kernel)
thanks for everyones help
 
  


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
Problems with NVIDIA drivers after kernel update with yast online update Sheytan Linux - Software 4 05-06-2007 11:27 AM
Cannot update the nvidia kernel module! maestro52 Fedora 2 03-22-2005 07:12 PM
Problems with NVIDIA drivers after kernel update with yast online update Sheytan Linux - Distributions 0 10-13-2004 12:01 PM
Help me please- Can't reinstall NVIDIA drivers after kernel update FrankS Linux - Laptop and Netbook 3 09-13-2003 06:08 AM
nvidia after kernel update Dutch3 Linux - Software 6 07-13-2002 02:59 PM


All times are GMT -5. The time now is 10:41 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration