Debian This forum is for the discussion of Debian 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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-13-2008, 02:31 AM
|
#1
|
|
Member
Registered: Jun 2006
Posts: 43
Rep:
|
Gcc issue i think
Hi all,
i keep getting error messages similar to this:
Inappropriate build environment: you wanted to use gcc version 4.2.3 while kernel attempts to use gcc version 4.1.3
How can i fix it so that everything works without error?
DJ
|
|
|
|
01-13-2008, 08:31 AM
|
#2
|
|
Member
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896
Rep:
|
What distro do you use?
What are you trying to compile?
Usually, this error indicates that you're trying to compile a kernel module (for VMWare, for example), using the newer compiler, while the kernel in which this module is supposed to be inserted is compiled with an older version of gcc.
The easiest workaround is, of course, to recompile your kernel with the new version of gcc, the one you have on your system.
|
|
|
|
01-13-2008, 12:01 PM
|
#3
|
|
Member
Registered: May 2007
Distribution: Debian
Posts: 754
Rep:
|
Actually I think that a slightly easier solution is to temporarily change which compiler you use with this command
Code:
export CC=/usr/bin/gcc-4.1.3
That will change you back to gcc-4.1.3 for that terminal session. There may be larger reasons not to do this, but I have done it a few times.
|
|
|
|
01-14-2008, 01:06 AM
|
#4
|
|
Member
Registered: Jun 2006
Posts: 43
Original Poster
Rep:
|
Thank you
Thank you for your replies.
I was a little rushed and annoyed when i put this up, so i didnt put enough detail in it.
Currently running debian lenny.
Good guess though as i was trying to install vmware
If i do issue :
export CC=/usr/bin/gcc-4.1.3
Will it cause any issues with my vmware install, and what do i have to do to set the system back to the correct gcc?
I would assume it would be:
export CC=/usr/bin/gcc-4.2
Any help is appreciated.
In saying that, i dont want to do anything that will break my system.
DJ
|
|
|
|
01-14-2008, 06:39 AM
|
#5
|
|
Member
Registered: May 2007
Distribution: Debian
Posts: 754
Rep:
|
Quote:
Originally Posted by djcs
If i do issue :
export CC=/usr/bin/gcc-4.1.3
Will it cause any issues with my vmware install, and what do i have to do to set the system back to the correct gcc?
I would assume it would be:
export CC=/usr/bin/gcc-4.2
|
If Vmware is asking for gcc-4.1.3, then I don't think that giving it gcc-4.1.3 should hurt it. That said, I don't know anything about Vmware per se. As for your second question, you don't have to do anything to get back to normal. The change will only last as long as the terminal session where you issue "export CC=/usr/bin/gcc-4.1.3". Enter that, install Vmware, then close that terminal window. That's it. (You can verify after by opening another windown and entering "which gcc" or "gcc --version", but normally an export like that is temporary. (If you needed it permanent, you would put it in your .bashrc or .profile or the like.)
|
|
|
|
01-15-2008, 02:24 AM
|
#6
|
|
Member
Registered: Jun 2006
Posts: 43
Original Poster
Rep:
|
Thanks
Thanks heaps for that, i have gotten a good answer, quickly.
Appreciate the help.
DJ
Quote:
Originally Posted by Telemachos
If Vmware is asking for gcc-4.1.3, then I don't think that giving it gcc-4.1.3 should hurt it. That said, I don't know anything about Vmware per se. As for your second question, you don't have to do anything to get back to normal. The change will only last as long as the terminal session where you issue "export CC=/usr/bin/gcc-4.1.3". Enter that, install Vmware, then close that terminal window. That's it. (You can verify after by opening another windown and entering "which gcc" or "gcc --version", but normally an export like that is temporary. (If you needed it permanent, you would put it in your .bashrc or .profile or the like.)
|
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:44 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
|
|