VMware GCC 9.2.1

Asked by John Shakespeare

I've installed xubuntu 18.04 on a newsystem, and I'm trying to install VMware Workstation Player 15.5.0 on it.
Is anyone else getting this complaint?

I have updated the system to gcc 9 using

$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test

$ sudo apt-get update

I can reverse these changes, if needed. It still gives the error (I think it has to do with the minor version number). I'm using the kernel 5.3.4, since it apparently gives the fewest crashes (about once per day) on nvidia 1060. Other kernels can be used; I would prefer kernels >5.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
John Shakespeare
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

"It still gives the error"

Which error? Please provide the full text.

Revision history for this message
John Shakespeare (shakespeare1) said :
#2

"Before you can run VMware, several modules must be compiled and loaded into the running kernel.
GCC
GNU C Compiler (gcc) version 9.2.1 was not found. If you installed it in a non-default path you can specify the path below. Otherwise refer to your distribution's documentation for installation instructors and click Refresh to search again in default locations."
There is a box marked 'Location:' it appears to take text, and some buttons "Install", "Cancel", "Refresh", and "Brose"

Revision history for this message
John Shakespeare (shakespeare1) said :
#3

"Brose"

"Brose" should be "Browse"

Revision history for this message
John Shakespeare (shakespeare1) said :
#4

I have already installed gcc and build-essential

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

For diagnostic purposes, what is the output of the commands

uname -a
lsb_release -crid
apt-cache policy gcc-9
gcc --version

Maybe you have to use a different PPA for a sufficiently high version of the compiler, eventually ppa:jonathonf/gcc-9.2

Revision history for this message
John Shakespeare (shakespeare1) said :
#6

I reduced the kernel version from 5.3.4 to 5.0.0-32 and it all went well. Maybe the kernel versions are dodgy, and they refer to an unreleased version of gcc.

FWIW here are the answers to your questions:
$ uname -a
Linux RYZEN 5.0.0-32-generic #34~18.04.2-Ubuntu SMP Thu Oct 10 10:36:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
$ apt-cache policy gcc-9
gcc-9:
  Installed: (none)
  Candidate: 9.1.0-2ubuntu2~18.04
  Version table:
     9.1.0-2ubuntu2~18.04 500
        500 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu bionic/main amd64 Packages
$ gcc --version
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Revision history for this message
costinel (costinel) said :
#7

> $ sudo add-apt-repository ppa:ubuntu-toolchain-r/test

thanks, I found this bug when I needed gcc9.2.1 for vmware 15.1 on kernel 5.3.12 so it helped me compile the vmmon module from https://github.com/mkubecek/vmware-host-modules (thanks for the gcc ppa repo name!)

all worked fine on this config:

user@ubuntu:~$ uname -a
Linux ubuntu.tld 5.3.12-050312-generic #201911201137 SMP Wed Nov 20 16:39:42 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
user@ubuntu:~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
user@ubuntu:~$ apt-cache policy gcc-9
gcc-9:
  Installed: 9.2.1-17ubuntu1~18.04.1
  Candidate: 9.2.1-17ubuntu1~18.04.1
  Version table:
 *** 9.2.1-17ubuntu1~18.04.1 500
        500 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status
user@ubuntu:~$ gcc --version
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

user@ubuntu:~$ gcc-
...5 ...7 ...9 ...ar ...ar-5 ...ar-7 ...ar-9 ...nm
...nm-5 ...nm-7 ...nm-9 ...ranlib ...ranlib-5 ...ranlib-7 ...ranlib-9
user@ubuntu:~$ gcc-9 --version
gcc-9 (Ubuntu 9.2.1-17ubuntu1~18.04.1) 9.2.1 20191102
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.