LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-28-2003, 05:17 PM   #1
nef
Member
 
Registered: Dec 2002
Location: Mexico
Distribution: ArchLinux 0.7, Slackware 10.1
Posts: 61

Rep: Reputation: 15
Angry Problems compiling nvidia driver


I've been trying to compile the nvidia geforce 2 drivers from the tar file.
I was following instructions, everything went smoothly, until i tried to make install the file.
It showed this message:

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.

I found this exact error,on the readme's faq. They give you a lot of information, but they dont mention how to avoid or correct this error. Here is the info from the faq:

A: You should compile the NVIDIA kernel module with the same compiler
version that was used to compile your kernel. Some Linux kernel data
structures are dependent on the version of gcc used to compile it;
for example, in include/linux/spinlock.h:

...
* Most gcc versions have a nasty bug with empty initializers.
*/
#if (__GNUC__ > 2)
typedef struct { } rwlock_t;
#define RW_LOCK_UNLOCKED (rwlock_t) { }
#else
typedef struct { int gcc_is_buggy; } rwlock_t;
#define RW_LOCK_UNLOCKED (rwlock_t) { 0 }
#endif

If the kernel is compiled with gcc 2.x, but gcc 3.x is used when the
open files in the NVIDIA_kernel package are built (or vice versa),
the size of rwlock_t will vary, and things like ioremap will fail.

To check what version of gcc was used to compile your kernel, you
can examine the output of:

cat /proc/version

To check what version of gcc is currently in your $PATH, you can
examine the output of:

gcc -v

Can anyone help me get this done????
If this has already been talked about in another forum, please point me to it.
 
Old 01-28-2003, 05:51 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Search here for IGNORE_CC_MISMATCH
You are one command away from getting NVIDIA drivers to compile
 
Old 01-28-2003, 11:42 PM   #3
nef
Member
 
Registered: Dec 2002
Location: Mexico
Distribution: ArchLinux 0.7, Slackware 10.1
Posts: 61

Original Poster
Rep: Reputation: 15
Did what you said and it stopped showing the error, but now i get another error message

[nef@localhost NVIDIA_kernel-1.0-4050]$ export IGNORE_CC_MISMATCH=1
[nef@localhost NVIDIA_kernel-1.0-4050]$ make install
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -1`\" > nv_compiler.h
cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparen theses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -ffixed-r13 -mfixed-range=f10-f15,f32-f127 -falign-functio ns=32 -DIA64=1 -D_LINUX64=1 -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNE L__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=4050 - DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNV_64_BITS -DNVCPU_IA64_LINUX -DNVCPU_IA64 -I. -I/usr/src/linux/include -Wno-cast-qual nv.c
make: cc: Command not found
make: *** [nv.o] Error 127


Any ideas???
 
  


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
Compiling NVIDIA 1.0-7676 Video Driver on 2.6.14 silent_cutthroat Linux - Software 2 11-05-2005 03:21 AM
Getting Nvidia 3d driver after compiling kernel using apt-get PeaceTank Linux - Software 2 12-08-2004 06:09 AM
Driver compiling problems silverline Linux - Hardware 1 03-12-2004 03:00 AM
Problems with compiling at76c503a driver mphllps Linux - Wireless Networking 7 01-19-2004 08:16 PM
Compiling Nvidia Driver on 2.6.0-test11 kernel... TheOneAndOnlySM Linux - General 6 12-20-2003 09:54 AM


All times are GMT -5. The time now is 11:46 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