LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

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

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


Quote:
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.
Quote:
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:
Code:
alucard@thrawn:~/vmware-server-distrib$ sudo ./vmware-install.pl 
[...]
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 "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

Execution aborted.
Here are my gcc and kernel versions:

Code:
alucard@thrawn:~$ apt-cache policy gcc
gcc:
  Installed: 4:4.2.2-2
  Candidate: 4:4.2.2-2
  Version table:
 *** 4:4.2.2-2 0
        600 http://rous.wpi.edu testing/main Packages
        550 http://rous.wpi.edu unstable/main Packages
        100 /var/lib/dpkg/status
   
alucard@thrawn:~$ apt-cache policy linux-image-2.6.24-1-686
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 http://rous.wpi.edu 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, 09:44 AM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,535
Blog Entries: 1

Rep: Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999
hi, I had a similar problem
here's the link
http://www.linuxquestions.org/questi...=sycamorex+gcc
 
Old 02-07-2008, 10:24 AM   #3
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,609

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


Reply


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 02:54 PM
rpmdb: Program version 4.2 doesn't match environment version jhibbets Red Hat 2 05-29-2007 09:57 PM
help, gcc version and kernel version mismatch akanitkar Linux - Newbie 1 05-06-2006 07: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 08:17 PM
Sample Driver Module incompatibility with Kernel version (or gcc version) jvs Linux - General 1 06-07-2002 01:40 AM


All times are GMT -5. The time now is 06:40 PM.

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