DebianThis 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.
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.
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?
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.
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.
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.)
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.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.