[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

updated to sid 2.6.16-14 and can no longer build VMware modules



Since installing the latest sid 2.6.16-2 updates earlier this week I have been unable to build the VMware modules.
vmware-config.pl says my kernel has been built with gcc 4.0.4
BUT when I try to build vmware modules with gcc 4.0.4 it reports the kernel is built with gcc 4.1

Anyone know how to resolve this circular conflict?

Initially tried
-------------------------------------------------
# vmware-config.pl

Your kernel was built with "gcc" version "4.0.4", while you are trying to use "/usr/bin/gcc" version "4.1.2". This configuration is not recommended and VMware
Workstation 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.1.2" anyway? [no]

Ok, I've seen this before. I use CC environment variable to build with gcc-4.0.x
--------------------------------------------------
# export CC=gcc-4.0
# vmware-config.pl
...
Using compiler "/usr/bin/gcc-4.0". Use environment variable CC to override.
...
Building for VMware Workstation 5.5.x.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmmon-only'
make -C /usr/src/linux/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.16-2-amd64-k8'
/tmp/vmware-config0/vmmon-only/Makefile:127: *** Inappropriate build environment: you wanted to use gcc version 4.0.4 while kernel attempts to use gcc version 4.1.2. /tmp/vmware-config0/vmmon-only/Makefile:129: *** For proper build you'll have to replace gcc with symbolic link to /usr/bin/gcc-4.0. Stop.
make[1]: *** [_module_/tmp/vmware-config0/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.16-2-amd64-k8'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config0/vmmon-only'
Unable to build the vmmon module.
...
Execution aborted.
--------------------------------------------------

I have the following installed

ii linux-headers-2.6.16-2 2.6.16-14 Common header files for Linux kernel 2.6.16 ii linux-headers-2.6.16-2-amd64-generic 2.6.16-14 Header files for Linux kernel 2.6.16 on all x86-64 machi ii linux-headers-2.6.16-2-amd64-k8 2.6.16-14 Header files for Linux kernel 2.6.16 on AMD64 K8 machine ii linux-image-2.6-amd64-generic 2.6.16-14 Linux kernel 2.6 image on all x86-64 machines ii linux-image-2.6-amd64-k8 2.6.16-14 Linux kernel 2.6 image on AMD64 K8 machines ii linux-image-2.6.16-2-amd64-generic 2.6.16-14 Linux kernel 2.6.16 image on all x86-64 machines ii linux-image-2.6.16-2-amd64-k8 2.6.16-14 Linux kernel 2.6.16 image on AMD64 K8 machines ii linux-kernel-headers 2.6.16.20-6 Linux Kernel Headers for development ii gcc-4.0 4.0.3-3 The GNU C compiler ii gcc-4.0-base 4.0.3-3 The GNU Compiler Collection (base package) ii gcc-4.1 4.1.1-5 The GNU C compiler ii gcc-4.1-base 4.1.1-5 The GNU Compiler Collection (base package)

Thanks
R.Parr, RHCE, Temporal Arts




Reply to: