|
|
#13 | |
|
Geforce FX5200Go
Join Date: Aug 2002
Posts: 21
|
I can confirm that the NVidia module works perfectly with a gcc 3.2 compiled kernel and module:
$ cat /proc/driver/nvidia/version NVRM version: NVIDIA NVdriver Kernel Module 1.0-2960 Tue May 14 07:41:42 PDT 2002 GCC version: gcc version 3.2 20020809 (Debian prerelease) $ cat /proc/version Linux version 2.4.19 (root@phobos) (gcc version 3.2 20020809 (Debian prerelease)) $ gcc -v Reading specs from /usr/lib/gcc-lib/i386-linux/3.2/specs Configured with: /mnt/data/gcc-3.1/gcc-3.2-3.2ds0/src/configure -v --enable-languages=c,c++,java,f77,proto,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-java-gc=boehm --enable-objc-gc i386-linux Thread model: posix gcc version 3.2 20020809 (Debian prerelease) -adnans |
|
|
|
|
|
|
#14 | |
|
Guest
Posts: n/a
|
Ug. Darn modules... After forcing it to load with 'insmod -f NVdriver', it squaked about licensing and gcc, then it finally loaded. I doubt the module will load on its own if I ever reboot my machine again, but atleast I know the workaround now.
The error just seemed to glaringly point in gcc's direction as the root of the problem. Odd. % cat /proc/driver/nvidia/version NVRM version: NVIDIA NVdriver Kernel Module 1.0-2960 Tue May 14 07:41:42 PDT 2002 GCC version: gcc version 3.2 (Red Hat Linux Rawhide 3.2-1) |
|
|
|
|
#15 |
|
Registered User
|
compiled the kernel (2.4.19) with gcc 3.2, intel e100 driver, emu10k1
cvs checkout _and_ (!) the NVdriver, loaded without any squirks, no need to force the driver in, the warning about the license is normal. as I said before: _redhat_ brrrr ![]() cheers btw: glxgears runs with approx. 7800 fps |
|
|
|
|
|
#16 | |
|
Guest
Posts: n/a
|
Ok, I'm pretty much a linux newbie, just finding my way around the basics. Been using it for a month or so now (have completely ditched Windows) and love it.
However, I've got problems now!! Decided to start running Red Hat Linux Null (which I have to say looks much better than 7.2!) but, of course, my NVdriver doesn't work! This is my first foray into compilation of stuff, apart from the pretty standard application things. I've got a fair idea of what I have to do... it's just actually doing it! I've got the kernel-source RPM installed for Null (2.4.18-11) and have downloaded the tar.gz of the NVidia drivers. The make completes okay, but I get the error message "this was compiled using gcc 2 and you need version 3" basically. So, on a completely fresh install, how do I go about getting the NVidia drivers to compile against this (and any, going forward) kernel that isn't supported by NVidia's distribution? If I can get it working in the meantime, I'll post a mini-howto to the board if it helps people! Thanks for all the info I've already got from the board though! Rob |
|
|
|
|
#17 |
|
Registered User
Join Date: Aug 2002
Location: Portland, OR
Posts: 14
|
I am using GCC 3.2 with the Redhat 7.3.94 beta. I have compiled the nVIDIA kernel module with GCC 3.2 from the source RPM. The module refuses to load.
1:NVIDIA_kernel ########################################### [100%] /lib/modules/2.4.18-11smp/kernel/drivers/video/NVdriver: The module you are trying to load (/lib/modules/2.4.18-11smp/kernel/drivers/video/NVdriver) is compiled with a gcc version 2 compiler, while the kernel you are running is compiled with a gcc version 3 compiler. This is known to not work. /lib/modules/2.4.18-11smp/kernel/drivers/video/NVdriver: insmod /lib/modules/2.4.18-11smp/kernel/drivers/video/NVdriver failed /lib/modules/2.4.18-11smp/kernel/drivers/video/NVdriver: insmod NVdriver failed I have tried setting the CC environment variable as suggested. That does not work. I have checked for old object files. There are none. Evidently the driver can be "forced", but that is a hacky solution. Any plans to build a version of the source RPMs that will install cleanly? (I use a dual athalon system so I tend to build from source.) |
|
|
|
|
|
#18 | |
|
Geforce FX5200Go
Join Date: Aug 2002
Posts: 21
|
Quote:
-adnans |
|
|
|
|
|
|
#19 |
|
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 2,105
|
RH created this "problem" themself. Since it isn't a great idea to use drivers compiled using a different gcc version, RH made a patch for modutils. The version of modutils RH uses now is 2.4.18-2. A short time ago they used 2.4.18-1. The only difference between those versions is a patch that checks for gcc 2.x code in modules when they're being loaded under a 3.x built kernel.
To realfix for the problem will be new driver packages from nvidia since mixing drivers compiled using different gcc versions can cause strange problems. For now the fix is to switch back to modutils 2.4.18-1 from RH or to compile a modutils from source (for example 2.4.19). |
|
|
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [BUG] nvidia crashes kernel with 'Xid 13' and attempted to yield the CPU while atomic | rockob | NVIDIA Linux | 36 | 09-26-12 07:48 AM |
| upgrade to xorg server 1.13 damaged Geforce 7300 GT | KDE | NVIDIA Linux | 2 | 09-07-12 08:04 AM |
| Fatal upgrade: from bad (8800 GTS) to worse 9GTX 560 Ti) | ssnyder | NVIDIA Linux | 1 | 07-01-12 08:14 PM |
| UEFI+Nvidia - NVRM: Your system is not currently configured to drive a VGA console... | interzoneuk | NVIDIA Linux | 0 | 06-26-12 04:51 AM |
| xorg locks-up with newest nvidia drivers w/ vdpau. | theroot | NVIDIA Linux | 1 | 06-24-12 11:04 AM |