You are not logged in.

#1 2016-05-08 10:43:26

Nightwulf
Member
Registered: 2016-05-08
Posts: 11

Update of kernel to 4.5.2 and gcc to 6.1 causes VMWare Player to fail

Hi there,

today the updates for gcc and the kernel came across and since then the VMWare Player stopped working because the modules could not be recompiled.
If I try to do it manually,  it complains as follows:

vmware-modconfig --console --install-all
Failed to get gcc information.

Any ideas?

Thanks in advance,

Nightwulf

Offline

#2 2016-05-08 15:30:48

mingumo
Member
Registered: 2016-03-05
Posts: 2

Re: Update of kernel to 4.5.2 and gcc to 6.1 causes VMWare Player to fail

Try to manually compile the modules.

# create a temp folder and copy the module files to the folder.
mkdir ~/vmmodules
cp /usr/lib/vmware/modules/source/vmnet.tar /usr/lib/vmware/modules/source/vmmon.tar ~/vmmodules/

# make the modules manually
tar -xvf vmmon.tar
cd vmmon-only
make
cd ..
sudo cp vmmon.o /lib/modules/`uname -r`/kernel/drivers/misc/vmmon.ko.gz

tar -xvf vmnet.tar
cd vmnet-only
make
cd ..
sudo cp vmnet.o /lib/modules/`uname -r`/kernel/drivers/misc/vmnet.ko.gz

#Then reload the modules and restart vmware service, vmplayer should works now.
sudo depmod -a
sudo systemctl restart vmware

Offline

#3 2016-05-08 15:46:00

Nightwulf
Member
Registered: 2016-05-08
Posts: 11

Re: Update of kernel to 4.5.2 and gcc to 6.1 causes VMWare Player to fail

Partly solved.

hence the vmware-modconfig tool doesn't work, I tried to build the modules by hand. This works for the vmmon and vmnet modules:

cd /usr/lib/vmware/modules/source
tar xvf vmmon.tar
cd vmmon-only
make
gzip vmmon.ko
cp vmmon.ko.gz /lib/modules/4.5.2-1-ARCH/kernel/drivers/misc/
cd ..
rm vmmon.o
rm -Rf vmmon-only

Same procedure for vmnet.tar.

The other modules fail with some errors. The vmware-player starts now but has no networking :-(

I'll report if I succeed building the rest of the modules.

Offline

#4 2016-05-08 15:51:23

TheChickenMan
Member
From: United States
Registered: 2015-07-25
Posts: 354

Re: Update of kernel to 4.5.2 and gcc to 6.1 causes VMWare Player to fail

Have you tried compiling with the switch to ignore minor errors?

vmware-modconfig --gcc-ignore-minor

If quantum mechanics hasn't profoundly shocked you, you haven't understood it yet.
Niels Bohr

Offline

#5 2016-05-08 15:57:12

Nightwulf
Member
Registered: 2016-05-08
Posts: 11

Re: Update of kernel to 4.5.2 and gcc to 6.1 causes VMWare Player to fail

I need to set the GTK-2.0 path manually, otherwise it will complain about libcanberra-gtk-module.so not found. It then runs without complaining but doesn't build the modules...it returns in one second without building anything.

[root@nightwulf source]# GTK_PATH=:/usr/lib/gtk-2.0 vmware-modconfig --gcc-ignore-minor
[root@nightwulf source]# 

Offline

#6 2016-05-08 16:35:27

edward.81
Member
Registered: 2014-10-25
Posts: 46

Re: Update of kernel to 4.5.2 and gcc to 6.1 causes VMWare Player to fail

TheChickenMan wrote:

Have you tried compiling with the switch to ignore minor errors?

vmware-modconfig --gcc-ignore-minor

I get stuck too with vmplayer 12
With this switch i get:
$ vmware-modconfig --gcc-ignore-minor --console --install-all
[...]
/usr/lib/vmware/bin/vmware-modconfig-console: unrecognized option '--gcc-ignore-minor'
[...]

Offline

#7 2016-05-08 18:26:31

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: Update of kernel to 4.5.2 and gcc to 6.1 causes VMWare Player to fail

There's been one signifcant change in gcc behavior in gcc-6.1.0, namely it doesn't check if "this" pointer is null by default. This shouldn't prevent compiling, but be cautious when using gcc-6.1. Or one could reenable those check and forget about them.

If I were using gcc-6 I'd check the exact parameter to reenable the checks.

Offline

#8 2016-05-08 20:12:19

Ambyjkl
Member
Registered: 2015-12-05
Posts: 33

Re: Update of kernel to 4.5.2 and gcc to 6.1 causes VMWare Player to fail

I was facing the same issues. The quickest fix I could think of was downgrading gcc and gcc-libs. You can use the downgrade package from AUR or you can directly download gcc and gcc-libs 5.3.0-5 from some arch package mirror and use pacman -U to install them. Then vmware works like a charm.

Last edited by Ambyjkl (2016-05-08 20:12:49)

Offline

#9 2016-05-08 20:40:05

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: Update of kernel to 4.5.2 and gcc to 6.1 causes VMWare Player to fail

Has anyone reported the regression upstream?

Offline

#10 2016-05-08 21:40:06

Nightwulf
Member
Registered: 2016-05-08
Posts: 11

Re: Update of kernel to 4.5.2 and gcc to 6.1 causes VMWare Player to fail

bstaletic wrote:

Has anyone reported the regression upstream?

I'm not quiet sure whom to report. VMWare isn't an official arch package. So report to the kernel guys or the gcc guys?

Offline

#11 2016-05-08 21:47:04

Nightwulf
Member
Registered: 2016-05-08
Posts: 11

Re: Update of kernel to 4.5.2 and gcc to 6.1 causes VMWare Player to fail

Ok, Downgrade of gcc and gcc-libs did the job. But the problem itself isn't solved, so I don't mark the thread as "solved".

Offline

#12 2016-05-08 22:47:58

TheChickenMan
Member
From: United States
Registered: 2015-07-25
Posts: 354

Re: Update of kernel to 4.5.2 and gcc to 6.1 causes VMWare Player to fail

Nightwulf wrote:
bstaletic wrote:

Has anyone reported the regression upstream?

I'm not quiet sure whom to report. VMWare isn't an official arch package. So report to the kernel guys or the gcc guys?

It would need to be reported to the VMWare guys.


If quantum mechanics hasn't profoundly shocked you, you haven't understood it yet.
Niels Bohr

Offline

#13 2016-05-09 03:05:53

mingumo
Member
Registered: 2016-03-05
Posts: 2

Re: Update of kernel to 4.5.2 and gcc to 6.1 causes VMWare Player to fail

btw,  I reinstalled VMWare Player 12.1.1 before I manually compiled vmmon and vmnet, I did not compiled other modules, and now It works good with network.
Maybe the VMWare installer did something.

Offline

#14 2016-05-09 06:55:10

rakotomandimby
Member
From: Madagascar
Registered: 2014-05-07
Posts: 20
Website

Re: Update of kernel to 4.5.2 and gcc to 6.1 causes VMWare Player to fail

mingumo wrote:

btw,  I reinstalled VMWare Player 12.1.1 before I manually compiled vmmon and vmnet, I did not compiled other modules, and now It works good with network.
Maybe the VMWare installer did something.

I'll try that. Also encountering this problem...

Offline

#15 2016-05-09 07:05:12

rakotomandimby
Member
From: Madagascar
Registered: 2014-05-07
Posts: 20
Website

Re: Update of kernel to 4.5.2 and gcc to 6.1 causes VMWare Player to fail

Offline

#16 2016-05-09 12:59:00

glavin
Member
Registered: 2015-07-08
Posts: 22

Re: Update of kernel to 4.5.2 and gcc to 6.1 causes VMWare Player to fail

mingumo wrote:

btw,  I reinstalled VMWare Player 12.1.1 before I manually compiled vmmon and vmnet, I did not compiled other modules, and now It works good with network.
Maybe the VMWare installer did something.

Reinstalling VMware Player worked for me too, ofcourse had to manually compile vmmon and vmnet. Now all modules are starting and working properly.

Cheers smile


Speak your mind even if your voice shakes.

Offline

#17 2016-05-09 13:02:01

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: Update of kernel to 4.5.2 and gcc to 6.1 causes VMWare Player to fail

I'd bet it would work fine with kernel 4.5.3 in testing

Offline

#18 2016-05-09 13:58:37

TheChickenMan
Member
From: United States
Registered: 2015-07-25
Posts: 354

Re: Update of kernel to 4.5.2 and gcc to 6.1 causes VMWare Player to fail

Scimmia wrote:

I'd bet it would work fine with kernel 4.5.3 in testing

I'm sorry but could you explain this? Why would the kernel upgrade cause VM Workstation to compile differently?


If quantum mechanics hasn't profoundly shocked you, you haven't understood it yet.
Niels Bohr

Offline

#19 2016-05-09 15:47:33

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: Update of kernel to 4.5.2 and gcc to 6.1 causes VMWare Player to fail

TheChickenMan wrote:
Scimmia wrote:

I'd bet it would work fine with kernel 4.5.3 in testing

I'm sorry but could you explain this? Why would the kernel upgrade cause VM Workstation to compile differently?

Because 4.5.2 was built with gcc 5.3. 4.5.3 was built with gcc 6.1. This matters when building modules for the kernel.

Offline

#20 2016-05-09 15:51:18

rakotomandimby
Member
From: Madagascar
Registered: 2014-05-07
Posts: 20
Website

Re: Update of kernel to 4.5.2 and gcc to 6.1 causes VMWare Player to fail

I manually built "vmmon" and "vmnet" with the installed gcc 6.1 and it works now.

But, now it's Thunderbird that doesnt buid... :-( (yet another topic, off here)

Offline

#21 2016-05-09 19:38:44

TheChickenMan
Member
From: United States
Registered: 2015-07-25
Posts: 354

Re: Update of kernel to 4.5.2 and gcc to 6.1 causes VMWare Player to fail

Scimmia wrote:
TheChickenMan wrote:
Scimmia wrote:

I'd bet it would work fine with kernel 4.5.3 in testing

I'm sorry but could you explain this? Why would the kernel upgrade cause VM Workstation to compile differently?

Because 4.5.2 was built with gcc 5.3. 4.5.3 was built with gcc 6.1. This matters when building modules for the kernel.

Thank you.


If quantum mechanics hasn't profoundly shocked you, you haven't understood it yet.
Niels Bohr

Offline

#22 2016-05-10 14:27:24

netadmin
Member
Registered: 2016-04-28
Posts: 45

Re: Update of kernel to 4.5.2 and gcc to 6.1 causes VMWare Player to fail

This was fixed for me today with taking kernel and headers 4.5.3-1. After taking the upgrade and then allowing PACMAN to install GCC 6.1.1-1 VMWARE started fine.

Offline

#23 2016-05-16 11:03:01

andav
Member
Registered: 2006-12-04
Posts: 117

Re: Update of kernel to 4.5.2 and gcc to 6.1 causes VMWare Player to fail

netadmin wrote:

This was fixed for me today with taking kernel and headers 4.5.3-1. After taking the upgrade and then allowing PACMAN to install GCC 6.1.1-1 VMWARE started fine.

i can confirm that vmware player is also working for me now without a problem.

Offline

Board footer

Powered by FluxBB