gcc version check failed - installing LAN/audio drivers
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
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.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
Haven't got into gcc4 yet but on the homepage of gcc there are links about running more than one gcc version on a system. Not sure of the work around to make apps looking for gcc to use gcc4. I am sure there is a hack to this.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
Downloaded a copy of gcc-3.4.6 and read the faq file about installing multiple versions of gcc. First part talks about using symbolic link to which gcc version you are going to use. The way they say is a bit confusing to me but this is the way I would do it. You already have gcc4 installed and I assume the gcc command is at /usr/bin/gcc. Do a ' whereis gcc ' command to loacte it. And to make sure it is version 4 type ' gcc --version '. If both check out ok then do the following.
Rename gcc to gcc4 ' mv /usr/bin/gcc /usr/bin/gcc4
Download gcc-3.4.6 and extract it somewhere. Run the following commnads
./configure --prefix=/usr/local/gcc-3.4.6
make
make install
Not sure what will exactly happen but do the following. After the make install command do the same as above ' whereis gcc ' and ' gcc --version '
If it shows version 3.4.6 and is in /usr/bin then do it this way ' mv /usr/bin/gcc /usr/bin/gcc3 '
if not and shows command not found and /usr/local/bin/gcc for the path then do the following. ' cp /usr/local/gcc-3.4.6/bin/gcc /usr/bin/gcc3 '
Now you need to make a symbolic link to the compiler you want to use at the time to compile with.
For version 3 ' ln -fs /usr/bin/gcc3 /usr/bin/gcc '
or
For version 4 ' ln -fs /usr/bin/gcc4 /usr/bin/gcc '
Now type ' gcc --version ' before compiling to which one is set.
You don't need gcc 3.4, the nforce drivers build fine with gcc 4 I've installed them a few times myself, they work fine. The problem is you don't everything you need installed to build the drivers, a lot of these newbie-friendly distros like Ubuntu don't have it installed by default which in my opinion sucks ass.
A Debian/Ubuntu user should come along and verify/correct what I say here but something like this should install the necessary tools for you.
Code:
apt-get install build-essentials kernel-source ???
# the ??? are because i'm not sure if build-essentials will pull in the current gcc and glibc headers etc
EDIT: Unless your kernel was built using gcc 3.4, you need to use the same version of gcc to build modules as was used to build the kernel. If you install what i said above and rebuild your kernel with gcc 4 then you can install the nforce packages and it shouldn't be too difficult at all using your old .config file
I'm getting really frustrated now.
I managed to get gcc3.4 installed this morning. Then I got this when running the installer
Reports are as follows: No precompiled kernel interface found to match kernel etc
I believe this doesnt matter so I OK this.
gcc-version-check failed
gcc -v returned version 3.4.5 (I think this was the correct one to install according to the nvidia install log.
so I choose to continue with install.
module build status bar ran to 100% then:
Unable to load the kernel module 'nvnet.ko' This is most likely because the kernel module was built using the wrong kernel source files. Please make sure you have installed the kernel source files for your kernel ..... you may specify kernel source path etc etc...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.