Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This 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.


  Search this Thread
Old 02-07-2008, 10:39 AM   #1
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,701

Rep: Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566
Installed GCC version doesn't match the version the kernel was compiled with

Originally Posted by AlucardZero View Post
I tried to install VMWare, but it refused to work. Something about my kernel (2.6.24 from repos) being compiled with a different version of gcc than the version I have installed.
Originally Posted by Hangdog42 View Post
You might want to look into that, it can cause similar problems down the road.
Okay, here's the error:
alucard@thrawn:~/vmware-server-distrib$ sudo ./ 
Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Server is suitable for your 
running kernel.  Do you want this program to try to build the vmmon module for 
your system (you need to have a C compiler installed on your system)? [yes] 

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

Your kernel was built with "gcc" version "4.1.3", while you are trying to use 
"/usr/bin/gcc" version "4.2.3". This configuration is not recommended and 
VMware Server may crash if you'll continue. Please try to use exactly same 
compiler as one used for building your kernel. Do you want to go with compiler 
"/usr/bin/gcc" version "4.2.3" anyway? [no] yes
What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.24-1-686/build/include] 

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmmon-only'
make -C /lib/modules/2.6.24-1-686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-1-686'
/tmp/vmware-config0/vmmon-only/Makefile:89: *** Inappropriate build environment: you wanted to use gcc version 4.2.3 while kernel attempts to use gcc version 4.1.3.
/tmp/vmware-config0/vmmon-only/Makefile:91: *** For proper build you'll have to replace  gcc-4.1 -m32 with symbolic link to /usr/bin/gcc.  Stop.
make[1]: *** [_module_/tmp/vmware-config0/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-1-686'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config0/vmmon-only'
Unable to build the vmmon module.

For more information on how to troubleshoot module-related problems, please 
visit our Web site at "" and

Execution aborted.
Here are my gcc and kernel versions:

alucard@thrawn:~$ apt-cache policy gcc
  Installed: 4:4.2.2-2
  Candidate: 4:4.2.2-2
  Version table:
 *** 4:4.2.2-2 0
        600 testing/main Packages
        550 unstable/main Packages
        100 /var/lib/dpkg/status
alucard@thrawn:~$ apt-cache policy linux-image-2.6.24-1-686
  Installed: 2.6.24-2
  Candidate: 2.6.24-2
  Version table:
 *** 2.6.24-2 0
        550 unstable/main Packages
        100 /var/lib/dpkg/status
I don't think I can get 4.1.3 back? The problem with VMware is moot because I got VirtualBox working, but what kinds of problems can this cause, would you say they are a big deal, and how can I fix this the Debian way?
Old 02-07-2008, 10:44 AM   #2
LQ Veteran
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,690
Blog Entries: 1

Rep: Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106
hi, I had a similar problem
here's the link
Old 02-07-2008, 11:24 AM   #3
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,701

Original Poster
Rep: Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566
Thanks, though as I said I no longer need to install VMWare. My question is more about what Hangdog42 said.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Regarding distribution + kernel version + gcc version + glib version. JCipriani Linux - General 8 04-19-2008 03:54 PM
rpmdb: Program version 4.2 doesn't match environment version jhibbets Red Hat 2 05-29-2007 10:57 PM
help, gcc version and kernel version mismatch akanitkar Linux - Newbie 1 05-06-2006 08:02 AM
redhat fedora gcc version (compiled for 2.4.20) doesn't match kernel version 2.4.22 start1000 Linux - Software 0 03-16-2004 09:17 PM
Sample Driver Module incompatibility with Kernel version (or gcc version) jvs Linux - General 1 06-07-2002 02:40 AM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration