PDA

View Full Version : GF4 drivers


pipes clangor
04-29-03, 02:04 PM
when I try to install the drivers for my GF4 I get:

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.

the help says:

You should compile the NVIDIA kernel module with the same compiler version that was used to compile your kernel. Some lunux kernel data structures are dependent on the version of gcc used to compile it

the thing is that I bought a redhat cd and just installed it! How could I be using a different version to compile it if I just installed it?

Andy Mecham
04-29-03, 02:47 PM
Have you used up2date to update packages on your system? Are you using an update kernel? If so, it's certainly possible that you're using a kernel that was compiled with a different compiler than the one currently on your system.

What kernel are you using? What driver are you trying to install?

--andy

bwkaz
04-29-03, 05:58 PM
And what do cat /proc/version and cc -dumpversion tell you?

pipes clangor
04-29-03, 11:31 PM
cat /proc/version
2.2.16-22

gcc -v
2.96

Andy Mecham
04-29-03, 11:55 PM
In this case, you should be ok. Type
export IGNORE_CC_MISMATCH=1and rerun the installer.

--andy

pipes clangor
04-30-03, 12:30 AM
okay it started to install but I got a bunch of warning messages and exited with error 1. what did I do wrong

Andy Mecham
04-30-03, 12:32 AM
Please post your /var/log/nvidia-installer.log file.

--andy

pipes clangor
04-30-03, 02:06 PM
sorry if I'm being difficult but when I looked at it with vi nothing was written in the log. Its blank.

Andy Mecham
04-30-03, 02:08 PM
Can you post the error messages you're seeing?

--andy

pipes clangor
05-01-03, 03:39 PM
warning: this is the location of the previous definition
cc/: Invalid option -fixed-range=f10-f15, f32-f127
nv.c:2186:'__IA64__UNCHACHED-OFFESET' undeclared (first use in this function)

there were like 5 or 6 of these.

and ended with make: ***[nv.o] Error 1

Andy Mecham
05-01-03, 03:40 PM
Please post the *entire* output.

What driver are you using?

--andy

pipes clangor
05-02-03, 01:03 AM
NVIDIA_kernel-1.0-4050

In file included from /lib/modules/2.2.16-22/build/include/linux/interrupt.h: 51,
from nv-linux.h:71,
from nc.c: 14:
/lib/modules/2.2.16-22/build/include/asm/hardirqi23:24: warning:"synchronize-irq" redefined
" /linux/modules/i386-ksyms.ver 138:1: warning: this is the location of the previous definition
cc1:Invalid option 'fixed-range=f10-f15, f32-f127'
cc1:warning: unknown register name: r13
nv.c: In funtion 'nv_get_phys_address':
nv.c:2186:(Each undeclared identifier is reported only once for each function it appears in)
nv.c:2219:'_PFN_MASIC' undeclared (first use in this function)
nv.c:2695:'warning:cast from pointer to integer of different size

Andy Mecham
05-02-03, 01:22 AM
That's not an x86 driver. Please visit the 1.0-4363 driver download page to grab the correct driver.

--andy

pipes clangor
05-02-03, 10:37 AM
I had to extract it and use export IGNORE_CC_MISMATCH and it worked and made a new usr file do I need to copy it to the real usr? I'm new to linux and I have to do that how can I copy the files and include them with out deleteing the other usr files?

bwkaz
05-02-03, 11:23 AM
Just run the 4363 installer. Don't give it any options, either (my guess is that you used --extract-only, right?).

The usr directory that it creates is not meant to be copied to your /usr directory. In particular, the usr/src/nv that is there, the sources for the kernel interface, shouldn't be put in /usr/src/nv.

The other files may not be put in the right places either, I don't know for sure. But the installer will (or at least should) get it right.

pipes clangor
05-02-03, 12:01 PM
okay did that and it installed okay and eveything but xf86config does not have the driver listed should I manually write to the config file? If so what should I do (I did the device="nvidia" and still no results)?

kow
05-02-03, 01:50 PM
I recommend reading or re-reading the "EDITING YOUR XF86CONFIG FILE" section of the readme file posted on the nvidia driver page. It has some good info in it. Browsing other people's attached XF86config files (just look around on this board) and typing "man XF86config" in a console are decent ways of getting familiar with the config file, which you want to do if your new to Linux.

Personal note: Work needs to give me more work! I've spent most of the day reading messages on this board.:( :o ;)

Andy Mecham
05-02-03, 05:57 PM
There's also a sample XF86Config file in /usr/share/doc/NVIDIA_GLX-1.0/

--andy