I'm having trouble completing the VMware Installation on a newly installed Ubuntu 19.04. The base install succeed, but the "VMware Kernel Module Updater" ends with the following failure message:
2019-04-17T14:30:11.522-04:00| host-3403| I125: The header path "/lib/modules/5.0.0-8-generic/build/incl
ude" for the kernel "5.0.0-8-generic" is valid. Whoohoo!
2019-04-17T14:30:11.682-04:00| host-3403| I125: found symbol version file /lib/modules/5.0.0-8-generic/b
uild/Module.symvers
2019-04-17T14:30:11.682-04:00| host-3403| I125: Reading symbol versions from /lib/modules/5.0.0-8-generi
c/build/Module.symvers.
2019-04-17T14:30:11.696-04:00| host-3403| I125: Read 23232 symbol versions
2019-04-17T14:30:11.696-04:00| host-3403| I125: Invoking modinfo on "vmmon".
2019-04-17T14:30:11.700-04:00| host-3403| I125: "/sbin/modinfo" exited with status 256.
2019-04-17T14:30:11.700-04:00| host-3403| I125: Invoking modinfo on "vmnet".
2019-04-17T14:30:11.703-04:00| host-3403| I125: "/sbin/modinfo" exited with status 256.
2019-04-17T14:30:12.181-04:00| host-3403| I125: Setting destination path for vmmon to "/lib/modules/5.0.
0-8-generic/misc/vmmon.ko".
2019-04-17T14:30:12.181-04:00| host-3403| I125: Extracting the vmmon source from "/usr/lib/vmware/module
s/source/vmmon.tar".
2019-04-17T14:30:12.190-04:00| host-3403| I125: Successfully extracted the vmmon source.
2019-04-17T14:30:12.190-04:00| host-3403| I125: Building module with command "/usr/bin/make -j32 -C /tmp
/modconfig-jhdGal/vmmon-only auto-build HEADER_DIR=/lib/modules/5.0.0-8-generic/build/include CC=/usr/bi
n/gcc IS_GCC_3=no"
2019-04-17T14:30:13.405-04:00| host-3403| W115: Failed to build vmmon. Failed to execute the build comm
and.
2019-04-17T14:30:13.408-04:00| host-3403| I125: Setting destination path for vmnet to "/lib/modules/5.0.
0-8-generic/misc/vmnet.ko".
2019-04-17T14:30:13.408-04:00| host-3403| I125: Extracting the vmnet source from "/usr/lib/vmware/module
s/source/vmnet.tar".
2019-04-17T14:30:13.414-04:00| host-3403| I125: Successfully extracted the vmnet source.
2019-04-17T14:30:13.414-04:00| host-3403| I125: Building module with command "/usr/bin/make -j32 -C /tmp
/modconfig-jhdGal/vmnet-only auto-build HEADER_DIR=/lib/modules/5.0.0-8-generic/build/include CC=/usr/bi
n/gcc IS_GCC_3=no"
2019-04-17T14:30:14.764-04:00| host-3403| W115: Failed to build vmnet. Failed to execute the build comm
and.
root@WSTATION01:/tmp/vmware-root# /usr/bin/make -j32 -C /tmp/modconfig-1GMLtN/vmmon-only auto-build HEADER_DIR=/lib/modules/5.0.0-8-generic/build/include CC=/usr/bin/gcc IS_GCC_3=no
make: Entering directory '/tmp/modconfig-1GMLtN/vmmon-only'
Using kernel build system.
/usr/bin/make -C /lib/modules/5.0.0-8-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/linux-headers-5.0.0-8-generic'
Makefile:203: ================= WARNING ================
Makefile:204: 'SUBDIRS' will be removed after Linux 5.3
Makefile:205: Please use 'M=' or 'KBUILD_EXTMOD' instead
Makefile:206: ==========================================
CC [M] /tmp/modconfig-1GMLtN/vmmon-only/linux/hostif.o
In file included from /tmp/modconfig-1GMLtN/vmmon-only/./include/vm_asm.h:43,
from /tmp/modconfig-1GMLtN/vmmon-only/linux/hostif.c:60:
/tmp/modconfig-1GMLtN/vmmon-only/./include/x86msr.h:130: warning: "MSR_MISC_FEATURES_ENABLES" redefined
#define MSR_MISC_FEATURES_ENABLES 0x140
In file included from ./arch/x86/include/asm/nospec-branch.h:11,
from ./arch/x86/include/asm/paravirt.h:10,
from ./arch/x86/include/asm/irqflags.h:68,
from ./include/linux/irqflags.h:16,
from ./include/linux/rcupdate.h:39,
from ./include/linux/rculist.h:11,
from ./include/linux/pid.h:5,
from ./include/linux/sched.h:14,
from ./include/linux/binfmts.h:5,
from /tmp/modconfig-1GMLtN/vmmon-only/linux/hostif.c:32:
./arch/x86/include/asm/msr-index.h:661: note: this is the location of the previous definition
#define MSR_MISC_FEATURES_ENABLES 0x00000140
In file included from /tmp/modconfig-1GMLtN/vmmon-only/./include/vm_asm.h:43,
from /tmp/modconfig-1GMLtN/vmmon-only/linux/hostif.c:60:
/tmp/modconfig-1GMLtN/vmmon-only/./include/x86msr.h:466: warning: "MSR_K7_HWCR_SMMLOCK" redefined
#define MSR_K7_HWCR_SMMLOCK 0x00000001ULL // Lock SMM environment
In file included from ./arch/x86/include/asm/nospec-branch.h:11,
from ./arch/x86/include/asm/paravirt.h:10,
from ./arch/x86/include/asm/irqflags.h:68,
from ./include/linux/irqflags.h:16,
from ./include/linux/rcupdate.h:39,
from ./include/linux/rculist.h:11,
from ./include/linux/pid.h:5,
from ./include/linux/sched.h:14,
from ./include/linux/binfmts.h:5,
from /tmp/modconfig-1GMLtN/vmmon-only/linux/hostif.c:32:
./arch/x86/include/asm/msr-index.h:470: note: this is the location of the previous definition
#define MSR_K7_HWCR_SMMLOCK BIT_ULL(MSR_K7_HWCR_SMMLOCK_BIT)
In file included from /tmp/modconfig-1GMLtN/vmmon-only/./include/vm_asm_x86.h:41,
from /tmp/modconfig-1GMLtN/vmmon-only/./include/vm_asm_x86_64.h:40,
from /tmp/modconfig-1GMLtN/vmmon-only/./include/vm_asm.h:46,
from /tmp/modconfig-1GMLtN/vmmon-only/linux/hostif.c:60:
/tmp/modconfig-1GMLtN/vmmon-only/./include/x86_basic_defs.h:78: warning: "CR3_PCID_MASK" redefined
#define CR3_PCID_MASK 0xFFF
In file included from ./arch/x86/include/asm/irqflags.h:5,
from ./include/linux/irqflags.h:16,
from ./include/linux/rcupdate.h:39,
from ./include/linux/rculist.h:11,
from ./include/linux/pid.h:5,
from ./include/linux/sched.h:14,
from ./include/linux/binfmts.h:5,
from /tmp/modconfig-1GMLtN/vmmon-only/linux/hostif.c:32:
./arch/x86/include/asm/processor-flags.h:39: note: this is the location of the previous definition
#define CR3_PCID_MASK 0xFFFull
/tmp/modconfig-1GMLtN/vmmon-only/linux/hostif.c: In function ‘HostIF_EstimateLockedPageLimit’:
/tmp/modconfig-1GMLtN/vmmon-only/linux/hostif.c:1641:25: error: ‘totalram_pages’ redeclared as different kind of symbol
extern unsigned long totalram_pages;
^~~~~~~~~~~~~~
In file included from /tmp/modconfig-1GMLtN/vmmon-only/linux/hostif.c:42:
./include/linux/mm.h:52:29: note: previous definition of ‘totalram_pages’ was here
static inline unsigned long totalram_pages(void)
^~~~~~~~~~~~~~
/tmp/modconfig-1GMLtN/vmmon-only/linux/hostif.c: In function ‘HostIFReadUptimeWork’:
/tmp/modconfig-1GMLtN/vmmon-only/linux/hostif.c:1787:4: error: implicit declaration of function ‘do_gettimeofday’; did you mean ‘do_settimeofday64’? [-Werror=implicit-function-declaration]
do_gettimeofday(&tv);
^~~~~~~~~~~~~~~
do_settimeofday64
/tmp/modconfig-1GMLtN/vmmon-only/linux/hostif.c: In function ‘HostIF_MapUserMem’:
/tmp/modconfig-1GMLtN/vmmon-only/linux/hostif.c:3408:40: error: macro "access_ok" passed 3 arguments, but takes just 2
if (!access_ok(VERIFY_WRITE, p, size)) {
^
/tmp/modconfig-1GMLtN/vmmon-only/linux/hostif.c:3408:9: error: ‘access_ok’ undeclared (first use in this function)
if (!access_ok(VERIFY_WRITE, p, size)) {
^~~~~~~~~
/tmp/modconfig-1GMLtN/vmmon-only/linux/hostif.c:3408:9: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:284: /tmp/modconfig-1GMLtN/vmmon-only/linux/hostif.o] Error 1
make[1]: *** [Makefile:1582: _module_/tmp/modconfig-1GMLtN/vmmon-only] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.0.0-8-generic'
make: *** [Makefile:110: vmmon.ko] Error 2
make: Leaving directory '/tmp/modconfig-1GMLtN/vmmon-only'