nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   segfault during gcc-version-check w/ 8756 drivers on amd64 system? (http://www.nvnews.net/vbulletin/showthread.php?t=68892)

kenyee 04-21-06 03:00 PM

segfault during gcc-version-check w/ 8756 drivers on amd64 system?
 
Running on the latest Kanotix (Debian sid) w/ latest updates (including Xorg 7.0).

During the install, I get a segfault:
[13158] segfault at 000000000000000000 rip 000000000000000000 rsp 00007fffffc336e8 error 14

cat /proc/version gives me:
Linux version 2.6.16.8-slh64-smp-1 (root@x2-4200) (gcc version 4.0.3 (Debian 4.0.3-1)) #1 SMP Wed Apr 19 01:12:27 CEST 2006


cc -dumpversion gives me:
4.0.3


Nothing useful in the nvidia log:
---------
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.
-> Performing CC test with CC="cc".
-> gcc-version-check failed:
----------


I extracted all the files in the .run file, found the gcc-version-check.c file and did this:
$ cc gcc-version-check.c
$ BLAH=`cat /proc/version`
$ echo $BLAH
Linux version 2.6.16.8-slh64-smp-1 (root@x2-4200) (gcc version 4.0.3 (Debian 4.0.3-1)) #1 SMP Wed Apr 19 01:12:27 CEST 2006

$ a.out "$BLAH"
The compiler used to compile the kernel matches the current compiler (gcc 4.0)

so if I compile this by hand and run it, it thinks the version matches and the gcc-version-check passes w/o any segfaults.

Any suggestions on what I can try next? :-P

myshkinbob 04-21-06 03:20 PM

Re: segfault during gcc-version-check w/ 8756 drivers on amd64 system?
 
I'm also using debian sid amd64, xorg 7.0, gcc 4.0.3 (Debian 4.0.3-1), but i'm not getting any gcc version check failures. The only difference i'm assuming is you're using the latest pre-built kernel from apt? i'm using a self-compiled 2.6.16.1 kernel from source.

The trouble with sid is the various dependent packages are often updated at different times. It could be out of date kernel headers, or mismatching headers, or just a bug in the gcc packages. I compiled both my kernel and the nvidia driver today with the exact same gcc 4.0.3-1 package as yours though, with no errors at all.

The nvidia-installer version check is probably not in error, as aside from our kernel and kernel-headers, we're both on the exact same environment and package versions. I'd assume that the problem lies within one of the kernel debs you're using.

Have you tried installing a different kernel and headers?

also if you haven't apt-get dist-upgrade on sid for a while, older versions of base packages can get partly left behind by much newer packages when you do finally upgrade and cause all kinds of nasty issues.

kenyee 04-21-06 03:40 PM

haven't had any problems w/ nvidia driver installs until this last big dist-upgrade
 
I've held off the past two weeks because Xorg 7.0 was uploaded and wanted to make sure the quirks were fixed before I tried it :-)

Tried installing kernel 2.16.9...kernel installed successfully, but I still get the same segfault running the nvidia installer. I'm baffled :-P

kenyee 04-21-06 06:36 PM

Re: segfault during gcc-version-check w/ 8756 drivers on amd64 system?
 
FYI: I got it to install w/o the segfault by doing this:

sh NVIDIA-Linux-x86_64-1.0-8756-pkg2.run --x-module-path=/usr/lib/xorg/modules

I get an nVidia splash screen now :-)
Unfortunately, now X still won't start and complains about:
Fatal server error:
could not open default font 'fixed'

but this is no longer an nVidia issue. Damn Xorg 7.0....grrrr

BashfulTux 04-21-06 06:44 PM

Re: segfault during gcc-version-check w/ 8756 drivers on amd64 system?
 
Quote:

Originally Posted by kenyee
FYI: I got it to install w/o the segfault by doing this:

sh NVIDIA-Linux-x86_64-1.0-8756-pkg2.run --x-module-path=/usr/lib/xorg/modules

I get an nVidia splash screen now :-)
Unfortunately, now X still won't start and complains about:
Fatal server error:
could not open default font 'fixed'

but this is no longer an nVidia issue. Damn Xorg 7.0....grrrr

http://wiki.debian.org/Xorg69To7

kenyee 04-21-06 08:16 PM

Re: segfault during gcc-version-check w/ 8756 drivers on amd64 system?
 
bashful: yep, I know about that wiki. I added the 2nd paragraph on xserver-xorg being removed by a dist-upgrade after I learned the hard way :-P

The puzzling thing is I used the Kanotix install-nvidia-debian.sh script to install the nvidia driver and it also got the segfault, but it does specify that module path parameter in the script automatically...


All times are GMT -5. The time now is 04:40 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.