Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
02-22-2005, 09:28 PM
|
#1
|
Member
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248
Rep:
|
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
|
|
|
02-23-2005, 05:12 AM
|
#2
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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?
|
|
|
02-23-2005, 05:47 AM
|
#3
|
Member
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248
Original Poster
Rep:
|
no. I don't know how.
|
|
|
02-23-2005, 05:53 AM
|
#4
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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)
|
|
|
02-23-2005, 06:05 AM
|
#5
|
Member
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248
Original Poster
Rep:
|
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
|
|
|
02-23-2005, 06:15 AM
|
#6
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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?
|
|
|
02-23-2005, 06:27 AM
|
#7
|
Member
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248
Original Poster
Rep:
|
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.
|
|
|
02-23-2005, 06:31 AM
|
#8
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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.
|
|
|
02-23-2005, 06:54 AM
|
#9
|
Member
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248
Original Poster
Rep:
|
do I have to run installpkg as root?
|
|
|
02-23-2005, 07:21 AM
|
#10
|
Member
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248
Original Poster
Rep:
|
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.
|
|
|
02-23-2005, 03:21 PM
|
#11
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
do you have the kernel-source package ( the one for 2.4.26) installed? judging by the output it doesn't look like it.
|
|
|
02-23-2005, 04:48 PM
|
#12
|
Member
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248
Original Poster
Rep:
|
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?
|
|
|
02-23-2005, 10:07 PM
|
#13
|
Member
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248
Original Poster
Rep:
|
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
|
|
|
02-24-2005, 04:35 AM
|
#14
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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.
|
|
|
02-24-2005, 06:30 AM
|
#15
|
Member
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248
Original Poster
Rep:
|
since I don't know how to use my cdrom yet, would this (file linux-2.4.26.tar.bz2) be the kernel source?
|
|
|
All times are GMT -5. The time now is 03:15 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|