LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-22-2005, 09:28 PM   #1
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Rep: Reputation: 30
nvidia drivers, gcc-version-check failed


Some background information:

When I installed Slack 10.0, I got an error during installation. Had something to do with gcc. I continued installation without it. So far everything has been working fine, but I am trying to install Nvidia drivers now, and am getting the following error message in the installer...
Code:
gcc-version-check failed:

Could not compile gcc-version-check.c

If you know what you are doing and want to ignore the gcc version check, select "No" to continue installation. Otherwise,
select "Yes" to abort installation, set the CC environment variable to the name of the compiler used to compile your kernel,
and restart installation. Abort now?
How do I go about correcting whatever happened during my Slack install?

Thanks,
Seiken
 
Old 02-23-2005, 05:12 AM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
the version check is to make sure you compile the driver with the same version compiler that compiled the kernel. did you upgrade your gcc packages?
 
Old 02-23-2005, 05:47 AM   #3
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Original Poster
Rep: Reputation: 30
no. I don't know how.
 
Old 02-23-2005, 05:53 AM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
just to make sure, do this in a console/xterm:

gcc -v

and post what the output is (just the version number, it will be the very last line)
 
Old 02-23-2005, 06:05 AM   #5
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Original Poster
Rep: Reputation: 30
Reading specs from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/specs
Configured with: ../gcc-3.3.4/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 3.3.4
 
Old 02-23-2005, 06:15 AM   #6
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
do you have the necessary development tools installed ( since it could not compile the test) out of the d/ directory on your 1st install cd ( or a slack mirror ). also check /var/log/nvidia-installer.log for more details on the error.

If you ignore the warning does it build the module?
 
Old 02-23-2005, 06:27 AM   #7
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Original Poster
Rep: Reputation: 30
I haven't tried ignoring the warning, because I figured something must be wrong from when I got an error on a gcc module during my original slackware install.

as for having the necessary development tools installed: I did a full install, but received that error on one of the gcc modules. so I would guess no.

Here is my /var/log/nvidia-installer.log:
Code:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Wed Feb 23 03:19:30 2005

option status:
  license pre-accepted    : false
  update                  : false
  force update            : false
  expert                  : false
  uninstall               : false
  driver info             : false
  no precompiled interface: false
  no ncurses color        : false
  query latest driver ver : false
  OpenGL header files     : false
  no questions            : false
  silent                  : false
  no backup               : false
  kernel module only      : false
  sanity                  : false
  add this kernel         : false
  no runlevel check       : false
  no network              : false
  no ABI note             : false
  no RPMs                 : false
  force tls               : (not specified)
  force compat32 tls      : (not specified)
  X install prefix        : /usr/X11R6
  OpenGL install prefix   : /usr
  compat32 install prefix : (not specified)
  installer install prefix: /usr
  utility install prefix  : /usr
  kernel name             : (not specified)
  kernel include path     : (not specified)
  kernel source path      : (not specified)
  kernel output path      : (not specified)
  kernel install path     : (not specified)
  proc mount point        : /proc
  ui                      : (not specified)
  tmpdir                  : /tmp
  ftp mirror              : ftp://download.nvidia.com
  RPM file list           : (not specified)

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: No)
-> No precompiled kernel interface was found to match your kernel; this means
   that the installer will need to compile a new kernel interface.
-> Kernel source path: '/lib/modules/2.4.26/build'
-> Performing CC test with CC="cc".
-> gcc-version-check failed:
   
   Could not compile gcc-version-check.c
   
   If you know what you are doing and want to ignore the gcc version check, sel
   ect "No" to continue installation.  Otherwise, select "Yes" to abort install
   ation, set the CC environment variable to the name of the compiler used to c
   ompile your kernel, and restart installation.  Abort now? (Answer: Yes)
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.
EDIT: Typo

Last edited by Seiken; 02-23-2005 at 06:28 AM.
 
Old 02-23-2005, 06:31 AM   #8
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
you might have a screwed up gcc install, try reinstalling the gcc package:

go to www.slackware.com/getslack, choose a country and mirror, go to 10.0 --> d/ -->gcc-3.3.4-i486.tgz

download it and as root:

installpkg gcc-3.3.4-i486.tgz and see if that helps.
 
Old 02-23-2005, 06:54 AM   #9
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Original Poster
Rep: Reputation: 30
do I have to run installpkg as root?
 
Old 02-23-2005, 07:21 AM   #10
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Original Poster
Rep: Reputation: 30
Okay, I downloaded and installpkg'd gcc. Then ran the nvidia install again and go the same gcc error (resulted in the same log file that is posted above.)

I then ran it again and ignored the error and told it to install anyway, and got the following error log:
Code:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Thu Feb 24 09:16:00 2005

option status:
  license pre-accepted    : false
  update                  : false
  force update            : false
  expert                  : false
  uninstall               : false
  driver info             : false
  no precompiled interface: false
  no ncurses color        : false
  query latest driver ver : false
  OpenGL header files     : false
  no questions            : false
  silent                  : false
  no backup               : false
  kernel module only      : false
  sanity                  : false
  add this kernel         : false
  no runlevel check       : false
  no network              : false
  no ABI note             : false
  no RPMs                 : false
  force tls               : (not specified)
  force compat32 tls      : (not specified)
  X install prefix        : /usr/X11R6
  OpenGL install prefix   : /usr
  compat32 install prefix : (not specified)
  installer install prefix: /usr
  utility install prefix  : /usr
  kernel name             : (not specified)
  kernel include path     : (not specified)
  kernel source path      : (not specified)
  kernel output path      : (not specified)
  kernel install path     : (not specified)
  proc mount point        : /proc
  ui                      : (not specified)
  tmpdir                  : /tmp
  ftp mirror              : ftp://download.nvidia.com
  RPM file list           : (not specified)

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: No)
-> No precompiled kernel interface was found to match your kernel; this means
   that the installer will need to compile a new kernel interface.
-> Kernel source path: '/lib/modules/2.4.26/build'
-> Performing CC test with CC="cc".
-> gcc-version-check failed:
   
   Could not compile gcc-version-check.c
   
   If you know what you are doing and want to ignore the gcc version check, sel
   ect "No" to continue installation.  Otherwise, select "Yes" to abort install
   ation, set the CC environment variable to the name of the compiler used to c
   ompile your kernel, and restart installation.  Abort now? (Answer: No)
ERROR: If you are using a Linux 2.4 kernel, please make sure
       you either have configured kernel sources matching your
       kernel or the correct set of kernel headers installed
       on your system.
       
       If you are using a Linux 2.6 kernel, please make sure
       you have configured kernel sources matching your kernel
       installed on your system. If you specified a separate
       output directory using either the "KBUILD_OUTPUT" or
       the "O" KBUILD parameter, make sure to specify this
       directory with the SYSOUT environment variable or with
       the appropriate nvidia-installer command line option.
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.
 
Old 02-23-2005, 03:21 PM   #11
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
do you have the kernel-source package ( the one for 2.4.26) installed? judging by the output it doesn't look like it.
 
Old 02-23-2005, 04:48 PM   #12
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Original Poster
Rep: Reputation: 30
maybe I don't... I think that might have been the only package I deselected in the slackware setup. I thought it was only there for if I wanted to look at the linux source.

but hey, if nvidia drivers need the kernel source package, I guess I'll have to install it

I just type "installpkg kernel-source"? will it tell me what CD to put in, or will it just download it?
 
Old 02-23-2005, 10:07 PM   #13
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Original Poster
Rep: Reputation: 30
which slack10.0 cd would I find the kernel-source package on? or is that the wrong way to go about installing it?

thanks,
seiken
 
Old 02-24-2005, 04:35 AM   #14
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
it's on the first cd. the nvidia driver builds a driver from your current running kernels header files, without the kernel-source, you cannot build the nvidia driver. yeah just installpkg kernel-source-2.<your version>-i486.tgz.
 
Old 02-24-2005, 06:30 AM   #15
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Original Poster
Rep: Reputation: 30
since I don't know how to use my cdrom yet, would this (file linux-2.4.26.tar.bz2) be the kernel source?
 
  


Reply



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
failed make check on:Linux from Scratch - Version SVN-20050524 - 6.11. Glibc-2.3.5 jery_wang2002 Linux From Scratch 3 06-02-2005 02:44 PM
How do I check which nvidia driver version I am using? jdblick SUSE / openSUSE 8 03-08-2005 11:55 PM
Problems with NVIDIA - gcc ver check fails timelord726 Linux - Software 2 08-12-2004 03:24 PM
check glibc version used by gcc carboncopy Slackware 3 08-12-2003 05:24 AM
NVidia Drivers gcc 3.2.2 thirdbanE Slackware 2 02-16-2003 09:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:29 AM.

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
Open Source Consulting | Domain Registration