Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vmware-config.pl and Kernel 2.6.9 / gcc 3.4.2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
ntoythi
n00b
n00b


Joined: 14 Oct 2003
Posts: 20

PostPosted: Thu Oct 21, 2004 4:21 am    Post subject: vmware-config.pl and Kernel 2.6.9 / gcc 3.4.2 Reply with quote

Hi there,

I recently upgraded from 2.6.8.1 to 2.6.9 and (as-usual) one has to recompile the vmware-modules via the vmware-config.pl script. Now I get this strange new error:
Code:

# vmware-config.pl
Making sure services for VMware Workstation are stopped.

Stopping VMware services:
   Virtual machine monitor                                             done
   Bridged networking on /dev/vmnet0                                   done
   DHCP server on /dev/vmnet8                                          done
   NAT service on /dev/vmnet8                                          done
   Host-only networking on /dev/vmnet8                                 done
   Virtual ethernet                                                    done

Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Workstation 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.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Building for VMware Workstation 4.5.2.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config4/vmmon-only'
make -C /usr/src/linux/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.9'
  CC [M]  /tmp/vmware-config4/vmmon-only/linux/driver.o
  CC [M]  /tmp/vmware-config4/vmmon-only/linux/hostif.o
  CC [M]  /tmp/vmware-config4/vmmon-only/common/cpuid.o
  CC [M]  /tmp/vmware-config4/vmmon-only/common/hash.o
  CC [M]  /tmp/vmware-config4/vmmon-only/common/memtrack.o
  CC [M]  /tmp/vmware-config4/vmmon-only/common/phystrack.o
  CC [M]  /tmp/vmware-config4/vmmon-only/common/task.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
/tmp/vmware-config4/vmmon-only/common/task.c: In function `void Task_Switch_V45(VMDriver*, Vcpuid)':
/tmp/vmware-config4/vmmon-only/common/task.c:859: sorry, unimplemented: inlining failed in call to 'void SwitchToMonitor(VMCP*, int) [with VMCP = VMCrossPageV45]': function bodynot available
/tmp/vmware-config4/vmmon-only/common/task.c:1351: sorry, unimplemented: called from here
make[2]: *** [/tmp/vmware-config4/vmmon-only/common/task.o] Error 1
make[1]: *** [_module_/tmp/vmware-config4/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.9'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config4/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.


Could it be possible this is caused by gcc-3.4.2? I had vmware running on all 2.6.x Kernels so far so I dont think 2.6.9 is the problem...
Back to top
View user's profile Send private message
ntoythi
n00b
n00b


Joined: 14 Oct 2003
Posts: 20

PostPosted: Thu Oct 21, 2004 4:28 am    Post subject: Reply with quote

Ok I managed to solve this by myself:

The patch "vmware-any-any-update84.tar.gz" fixed this bug. Perhaps this one should be added to portage :wink:
Back to top
View user's profile Send private message
Bitruder
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2004
Posts: 120

PostPosted: Thu Oct 21, 2004 4:56 am    Post subject: Reply with quote

Yes, PLEASE add this to portage!!

I had to downgrade to GCC 3.3.4 to get this to work again.
Back to top
View user's profile Send private message
miknight
n00b
n00b


Joined: 03 Jul 2003
Posts: 74
Location: Sydney, Australia

PostPosted: Thu Oct 21, 2004 10:45 am    Post subject: Reply with quote

The bug is at https://bugs.gentoo.org/show_bug.cgi?id=68030
Back to top
View user's profile Send private message
btlee
Apprentice
Apprentice


Joined: 03 Sep 2004
Posts: 168
Location: San Francisco

PostPosted: Thu Oct 21, 2004 7:20 pm    Post subject: Reply with quote

without the patch, i succeeded in installing vmware with kernel 2.6.9-r1.
instead of the above error messages, i got the following messages.

Code:

Making sure services for VMware Workstation are stopped.

Stopping VMware services:
   Virtual machine monitor                                             done
   Bridged networking on /dev/vmnet0                                   done
   DHCP server on /dev/vmnet1                                          done
   SMB share server on /dev/vmnet1                                     done
   SMB name server on /dev/vmnet1                                      done
   Host-only networking on /dev/vmnet1                                 done
   DHCP server on /dev/vmnet8                                          done
   NAT service on /dev/vmnet8                                          done
   Host-only networking on /dev/vmnet8                                 done
   Virtual ethernet                                                    done

Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Workstation 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.

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.9-gentoo-r1/build/include] /usr/include

The header files in /usr/include are generally for C libraries, not for the
running kernel. If you do not have kernel header files in your /usr/src
directory, you probably do not have the kernel-source package installed. Are you
sure that /usr/include contains the header files associated with your running
kernel? [no] yes

The directory of kernel headers (version 2.6.8) does not match your running
kernel (version 2.6.9-gentoo-r1).  Even if the module were to compile
successfully, it would not load into the running kernel.

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.9-gentoo-r1/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Building for VMware Workstation 4.5.2 or VMware GSX Server 3.1.0.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config11/vmmon-only'
Makefile:124: *** Inappropriate build environment: you wanted to use gcc version
  while kernel attempts to use gcc version 3.4.2.
Makefile:126: *** For proper build you'll have to replace /usr/bin/gcc with symb
olic link to .  Stop.
make: Leaving directory `/tmp/vmware-config11/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.


i worked around the error by following command.

Quote:

unset VERSION
/opt/vmware/bin/vmware-config.pl


cheers
Back to top
View user's profile Send private message
khermans
n00b
n00b


Joined: 03 Aug 2004
Posts: 57

PostPosted: Mon Oct 25, 2004 7:49 pm    Post subject: Reply with quote

I am having trouble too. I get this error though when I try to run vmware.

Gtk-WARNING **: Unable to locate loadable module in module_path: "libraleigh.so"

It seems that the vmnet and vmmom modules are loaded, but they are failing to proeprly build somehow?!?! I have absolutely no idea.

Is there a tutorial for the exact steps to get this going? I have tried the vmware-any-any-84 update to no avail and have had it working before on other systems. I must mention that I am runnning AMD64 64 bit native mode. Could this be the problem?

Kristian Hermansen
_________________
~ Do the rubberman...do the rubberman...do the rubberman ~
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum