13 Replies Latest reply on Feb 18, 2020 7:07 AM by neogeek83

    Workstation 15.0.4 Failed Install on Ubuntu 19.04 Kernel 5.0.0-8-generic - VMware Kernel Module Updater fails

    lukasbradley Lurker

      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:

         Unable to start services.

         See log file /tmp/vmware-root/vmware-3403.log

      In that log, things seem to badly starting here:

      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.

      When I attempt to execute the first vmmon compile command as such:

      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

      I get the following output:

      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'

      Any ideas on what's going on here?

        • 1. Re: Workstation 15.0.4 Failed Install on Ubuntu 19.04 Kernel 5.0.0-8-generic - VMware Kernel Module Updater fails
          TollHouse Novice

          Hi Lukasbradley,

           

          try this solution: https://askubuntu.com/questions/1041912/installing-vmware-on-18-04-failed-to-build-vmmon

          or use this one:

           

          #!/bin/bash

          VMWARE_VERSION=workstation-15.0.4

          TMP_FOLDER=/tmp/patch-vmware

          rm -fdr $TMP_FOLDER

          mkdir -p $TMP_FOLDER

          cd $TMP_FOLDER

          git clone https://github.com/mkubecek/vmware-host-modules.git

          cd $TMP_FOLDER/vmware-host-modules

          git checkout $VMWARE_VERSION

          git fetch

          make

          sudo make install

          sudo rm /usr/lib/vmware/lib/libz.so.1/libz.so.1

          sudo ln -s /lib/x86_64-linux-gnu/libz.so.1

          /usr/lib/vmware/lib/libz.so.1/libz.so.1

          sudo /etc/init.d/vmware restart

          2 people found this helpful
          • 4. Re: Workstation 15.0.4 Failed Install on Ubuntu 19.04 Kernel 5.0.0-8-generic - VMware Kernel Module Updater fails
            seanw75 Lurker

            I came across this which I'm pretty sure does the same thing, but is just a bit easier to do (worked for me with my upgrade to Ubuntu 19.04).

             

            compiling - Installing VMware on 18.10: Failed to build vmmon - Ask Ubuntu

            • 5. Re: Workstation 15.0.4 Failed Install on Ubuntu 19.04 Kernel 5.0.0-8-generic - VMware Kernel Module Updater fails
              AndreD Novice

              it's like this almost every time a new Ubuntu gets released, or kernel does a jump.

              VMWare does simply not care to be professional about the "pro" product , there should be an new version weeks ago !

              • 10. Re: Workstation 15.0.4 Failed Install on Ubuntu 19.04 Kernel 5.0.0-8-generic - VMware Kernel Module Updater fails
                mkubecek Enthusiast

                Unfortunately, Release Notes are of limited use as they only tell you about "supported host OS" (actually, these do not do even that - they only mention new supported guest OS) which means very short list of selected distributions. They don't tell you anything about supported kernel versions. So the important (and missing) information is: Workstation 15.1.0 fixes host modules build errors with 5.0 kernel (VMware doesn't care about build warnings) but both build errors with 5.1 kernel are still there. :-(

                • 12. Re: Workstation 15.0.4 Failed Install on Ubuntu 19.04 Kernel 5.0.0-8-generic - VMware Kernel Module Updater fails
                  mkubecek Enthusiast

                  It works with 5.0 kernel but not with 5.1. Which is rather sad as 5.1 final was released more than a week before Workstation/Player 15.1.0 and they had in two months to fix the (trivial) breakages since v5.1-rc1.

                  • 13. Re: Workstation 15.0.4 Failed Install on Ubuntu 19.04 Kernel 5.0.0-8-generic - VMware Kernel Module Updater fails
                    neogeek83 Novice

                    Ran into a similar issue, and this solution worked like a charm. Thanks Michal Kubecek <mkubecek@suse.cz> for maintaining that repo!

                     

                    The issue:

                    1. Ubuntu 18.04.3 OS updates to kernel 5.3.0-40-generic

                    2. Loading vmware workstation 15.5.1(you can check which version you are running with 'vmware -v' when you can't load the workstation GUI to see the version) results in a prompt that you need to update the kernel driver for VMware, clicking install fails, points you an error log that has lots of errors like these:

                    2020-02-18T09:15:42.883-05:00| host-14140| I125+ /tmp/modconfig-rbzKVl/vmci-only/linux/driver.c:1462:53: error: macro "access_ok" passed 3 arguments, but takes just 2

                    2020-02-18T09:15:42.883-05:00| host-14140| I125+ /tmp/modconfig-rbzKVl/vmci-only/linux/vmciKernelIf.c:378:8: error: implicit declaration of function ‘signal_pending’; did you mean ‘timer_pending’? [-Werror=implicit-function-declaration]

                    2020-02-18T09:15:42.883-05:00| host-14140| I125+ /tmp/modconfig-rbzKVl/vmci-only/linux/driver.c:1462:12: error: ‘access_ok’ undeclared (first use in this function)

                    2020-02-18T09:15:42.883-05:00| host-14140| I125+ /tmp/modconfig-rbzKVl/vmci-only/linux/driver.c:1492:43: error: passing argument 5 of ‘get_user_pages’ from incompatible pointer type [-Werror=incompatible-pointer-types]

                    2020-02-18T09:15:42.883-05:00| host-14140| I125+ /tmp/modconfig-rbzKVl/vmci-only/linux/driver.c:1492:13: error: too many arguments to function ‘get_user_pages’

                     

                    === and ends with these warnings ====

                     

                    2020-02-18T09:23:57.236-05:00| host-14140| I125+ ./arch/x86/include/asm/current.h:18:17: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion]

                    2020-02-18T09:23:57.236-05:00| host-14140| I125+  #define current get_current()

                    2020-02-18T09:23:57.236-05:00| host-14140| I125+                  ^

                    2020-02-18T09:23:57.236-05:00| host-14140| I125+ /tmp/modconfig-r8oTQC/vmci-only/linux/vmciKernelIf.c:2092:28: note: in expansion of macro ‘current’

                    2020-02-18T09:23:57.236-05:00| host-14140| I125+                             current->mm,

                    2020-02-18T09:23:57.236-05:00| host-14140| I125+                             ^~~~~~~

                    2020-02-18T09:23:57.236-05:00| host-14140| I125+ In file included from /tmp/modconfig-r8oTQC/vmci-only/linux/vmciKernelIf.c:38:0:

                    2020-02-18T09:23:57.236-05:00| host-14140| I125+ ./

                     

                    3. Attempt to run the build manually, which also fails:

                    sudo vmware-modconfig --console --install-all

                    [sudo] password for user:

                    [AppLoader] GLib does not have GSettings support.

                    Stopping VMware services:

                       VMware Authentication Daemon                                        done

                       VM communication interface socket family                            done

                       Virtual machine communication interface                             done

                       Virtual machine monitor                                             done

                       Blocking file system                                                done

                    make: Entering directory '/tmp/modconfig-YD04zh/vmmon-only'

                    Using kernel build system.

                    /usr/bin/make -C /lib/modules/5.3.0-40-generic/build/include/.. M=$PWD SRCROOT=$PWD/. \

                      MODULEBUILDDIR= modules

                    make[1]: Entering directory '/usr/src/linux-headers-5.3.0-40-generic'

                      CC [M]  /tmp/modconfig-YD04zh/vmmon-only/linux/driverLog.o

                      CC [M]  /tmp/modconfig-YD04zh/vmmon-only/linux/driver.o

                      CC [M]  /tmp/modconfig-YD04zh/vmmon-only/common/apic.o

                      CC [M]  /tmp/modconfig-YD04zh/vmmon-only/linux/hostif.o

                      CC [M]  /tmp/modconfig-YD04zh/vmmon-only/common/statVarsVmmon.o

                      CC [M]  /tmp/modconfig-YD04zh/vmmon-only/common/memtrack.o

                      CC [M]  /tmp/modconfig-YD04zh/vmmon-only/common/vmx86.o

                      CC [M]  /tmp/modconfig-YD04zh/vmmon-only/common/sharedAreaVmmon.o

                      CC [M]  /tmp/modconfig-YD04zh/vmmon-only/common/cpuid.o

                      CC [M]  /tmp/modconfig-YD04zh/vmmon-only/common/task.o

                      CC [M]  /tmp/modconfig-YD04zh/vmmon-only/common/comport.o

                      CC [M]  /tmp/modconfig-YD04zh/vmmon-only/common/phystrack.o

                      CC [M]  /tmp/modconfig-YD04zh/vmmon-only/vmcore/moduleloop.o

                      CC [M]  /tmp/modconfig-YD04zh/vmmon-only/bootstrap/monLoaderVmmon.o

                      CC [M]  /tmp/modconfig-YD04zh/vmmon-only/bootstrap/monLoader.o

                      CC [M]  /tmp/modconfig-YD04zh/vmmon-only/bootstrap/vmmblob.o

                    In file included from ./arch/x86/include/asm/processor.h:5:0,

                                     from ./arch/x86/include/asm/cpufeature.h:5,

                                     from ./arch/x86/include/asm/thread_info.h:53,

                                     from ./include/linux/thread_info.h:38,

                                     from ./arch/x86/include/asm/preempt.h:7,

                                     from ./include/linux/preempt.h:78,

                                     from ./include/linux/spinlock.h:51,

                                     from ./arch/x86/include/asm/mmu.h:5,

                                     from ./arch/x86/include/asm/desc.h:7,

                                     from /tmp/modconfig-YD04zh/vmmon-only/common/task.c:71:

                    ./arch/x86/include/asm/processor-flags.h:39:0: warning: "CR3_PCID_MASK" redefined

                    #define CR3_PCID_MASK 0xFFFull

                     

                    In file included from /tmp/modconfig-YD04zh/vmmon-only/./include/vm_asm_x86.h:41:0,

                                     from /tmp/modconfig-YD04zh/vmmon-only/./include/vm_asm.h:44,

                                     from /tmp/modconfig-YD04zh/vmmon-only/common/task.c:53:

                    /tmp/modconfig-YD04zh/vmmon-only/./include/x86_basic_defs.h:78:0: note: this is the location of the previous definition

                    #define CR3_PCID_MASK  0xFFF

                     

                    In file included from ./arch/x86/include/asm/nospec-branch.h:11:0,

                                     from ./arch/x86/include/asm/paravirt_types.h:46,

                                     from ./arch/x86/include/asm/ptrace.h:94,

                                     from ./arch/x86/include/asm/math_emu.h:5,

                                     from ./arch/x86/include/asm/processor.h:12,

                                     from ./arch/x86/include/asm/cpufeature.h:5,

                                     from ./arch/x86/include/asm/thread_info.h:53,

                                     from ./include/linux/thread_info.h:38,

                                     from ./arch/x86/include/asm/preempt.h:7,

                                     from ./include/linux/preempt.h:78,

                                     from ./include/linux/spinlock.h:51,

                                     from ./arch/x86/include/asm/mmu.h:5,

                                     from ./arch/x86/include/asm/desc.h:7,

                                     from /tmp/modconfig-YD04zh/vmmon-only/common/task.c:71:

                    ./arch/x86/include/asm/msr-index.h:504:0: warning: "MSR_K7_HWCR_SMMLOCK" redefined

                    #define MSR_K7_HWCR_SMMLOCK  BIT_ULL(MSR_K7_HWCR_SMMLOCK_BIT)

                     

                    In file included from /tmp/modconfig-YD04zh/vmmon-only/common/vmx86.h:32:0,

                                     from /tmp/modconfig-YD04zh/vmmon-only/common/task.c:51:

                    /tmp/modconfig-YD04zh/vmmon-only/./include/x86msr.h:474:0: note: this is the location of the previous definition

                    #define MSR_K7_HWCR_SMMLOCK        0x00000001ULL // Lock SMM environment

                     

                    In file included from ./arch/x86/include/asm/nospec-branch.h:11:0,

                                     from ./arch/x86/include/asm/paravirt_types.h:46,

                                     from ./arch/x86/include/asm/ptrace.h:94,

                                     from ./arch/x86/include/asm/math_emu.h:5,

                                     from ./arch/x86/include/asm/processor.h:12,

                                     from ./arch/x86/include/asm/cpufeature.h:5,

                                     from ./arch/x86/include/asm/thread_info.h:53,

                                     from ./include/linux/thread_info.h:38,

                                     from ./arch/x86/include/asm/preempt.h:7,

                                     from ./include/linux/preempt.h:78,

                                     from ./include/linux/spinlock.h:51,

                                     from ./arch/x86/include/asm/mmu.h:5,

                                     from ./arch/x86/include/asm/desc.h:7,

                                     from /tmp/modconfig-YD04zh/vmmon-only/common/task.c:71:

                    ./arch/x86/include/asm/msr-index.h:695:0: warning: "MSR_MISC_FEATURES_ENABLES" redefined

                    #define MSR_MISC_FEATURES_ENABLES 0x00000140

                     

                    In file included from /tmp/modconfig-YD04zh/vmmon-only/common/vmx86.h:32:0,

                                     from /tmp/modconfig-YD04zh/vmmon-only/common/task.c:51:

                    /tmp/modconfig-YD04zh/vmmon-only/./include/x86msr.h:134:0: note: this is the location of the previous definition

                    #define MSR_MISC_FEATURES_ENABLES            0x140

                     

                    In file included from ./arch/x86/include/asm/nospec-branch.h:11:0,

                                     from ./arch/x86/include/asm/paravirt_types.h:46,

                                     from ./arch/x86/include/asm/ptrace.h:94,

                                     from ./arch/x86/include/asm/math_emu.h:5,

                                     from ./arch/x86/include/asm/processor.h:12,

                                     from ./arch/x86/include/asm/cpufeature.h:5,

                                     from ./arch/x86/include/asm/thread_info.h:53,

                                     from ./include/linux/thread_info.h:38,

                                     from ./arch/x86/include/asm/preempt.h:7,

                                     from ./include/linux/preempt.h:78,

                                     from ./include/linux/spinlock.h:51,

                                     from ./arch/x86/include/asm/mmu.h:5,

                                     from ./arch/x86/include/asm/desc.h:7,

                                     from /tmp/modconfig-YD04zh/vmmon-only/common/task.c:71:

                    ./arch/x86/include/asm/msr-index.h:704:0: warning: "MSR_TSX_FORCE_ABORT" redefined

                    #define MSR_TSX_FORCE_ABORT  0x0000010F

                     

                    In file included from /tmp/modconfig-YD04zh/vmmon-only/common/vmx86.h:32:0,

                                     from /tmp/modconfig-YD04zh/vmmon-only/common/task.c:51:

                    /tmp/modconfig-YD04zh/vmmon-only/./include/x86msr.h:633:0: note: this is the location of the previous definition

                    #define MSR_TSX_FORCE_ABORT                      0x0000010f

                     

                      CC [M]  /tmp/modconfig-YD04zh/vmmon-only/bootstrap/bootstrap.o

                    In file included from /tmp/modconfig-YD04zh/vmmon-only/common/vmx86.h:32:0,

                                     from /tmp/modconfig-YD04zh/vmmon-only/common/vmx86.c:43:

                    /tmp/modconfig-YD04zh/vmmon-only/./include/x86msr.h:134:0: warning: "MSR_MISC_FEATURES_ENABLES" redefined

                    #define MSR_MISC_FEATURES_ENABLES            0x140

                     

                    In file included from ./arch/x86/include/asm/nospec-branch.h:11:0,

                                     from ./arch/x86/include/asm/irqflags.h:9,

                                     from ./include/linux/irqflags.h:16,

                                     from ./include/linux/rcupdate.h:26,

                                     from ./include/linux/rculist.h:11,

                                     from ./include/linux/pid.h:5,

                                     from ./include/linux/sched.h:14,

                                     from /tmp/modconfig-YD04zh/vmmon-only/common/vmx86.c:31:

                    ./arch/x86/include/asm/msr-index.h:695:0: note: this is the location of the previous definition

                    #define MSR_MISC_FEATURES_ENABLES 0x00000140

                     

                    In file included from /tmp/modconfig-YD04zh/vmmon-only/common/vmx86.h:32:0,

                                     from /tmp/modconfig-YD04zh/vmmon-only/common/vmx86.c:43:

                    /tmp/modconfig-YD04zh/vmmon-only/./include/x86msr.h:474:0: 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:0,

                                     from ./arch/x86/include/asm/irqflags.h:9,

                                     from ./include/linux/irqflags.h:16,

                                     from ./include/linux/rcupdate.h:26,

                                     from ./include/linux/rculist.h:11,

                                     from ./include/linux/pid.h:5,

                                     from ./include/linux/sched.h:14,

                                     from /tmp/modconfig-YD04zh/vmmon-only/common/vmx86.c:31:

                    ./arch/x86/include/asm/msr-index.h:504:0: 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-YD04zh/vmmon-only/common/vmx86.h:32:0,

                                     from /tmp/modconfig-YD04zh/vmmon-only/common/vmx86.c:43:

                    /tmp/modconfig-YD04zh/vmmon-only/./include/x86msr.h:633:0: warning: "MSR_TSX_FORCE_ABORT" redefined

                    #define MSR_TSX_FORCE_ABORT                      0x0000010f

                     

                    In file included from ./arch/x86/include/asm/nospec-branch.h:11:0,

                                     from ./arch/x86/include/asm/irqflags.h:9,

                                     from ./include/linux/irqflags.h:16,

                                     from ./include/linux/rcupdate.h:26,

                                     from ./include/linux/rculist.h:11,

                                     from ./include/linux/pid.h:5,

                                     from ./include/linux/sched.h:14,

                                     from /tmp/modconfig-YD04zh/vmmon-only/common/vmx86.c:31:

                    ./arch/x86/include/asm/msr-index.h:704:0: note: this is the location of the previous definition

                    #define MSR_TSX_FORCE_ABORT  0x0000010F

                     

                    In file included from /tmp/modconfig-YD04zh/vmmon-only/./include/vm_asm_x86.h:41:0,

                                     from /tmp/modconfig-YD04zh/vmmon-only/./include/vm_asm.h:44,

                                     from /tmp/modconfig-YD04zh/vmmon-only/common/vmx86.c:45:

                    /tmp/modconfig-YD04zh/vmmon-only/./include/x86_basic_defs.h:78:0: warning: "CR3_PCID_MASK" redefined

                    #define CR3_PCID_MASK  0xFFF

                     

                    In file included from ./arch/x86/include/asm/irqflags.h:5:0,

                                     from ./include/linux/irqflags.h:16,

                                     from ./include/linux/rcupdate.h:26,

                                     from ./include/linux/rculist.h:11,

                                     from ./include/linux/pid.h:5,

                                     from ./include/linux/sched.h:14,

                                     from /tmp/modconfig-YD04zh/vmmon-only/common/vmx86.c:31:

                    ./arch/x86/include/asm/processor-flags.h:39:0: note: this is the location of the previous definition

                    #define CR3_PCID_MASK 0xFFFull

                     

                    In file included from /tmp/modconfig-YD04zh/vmmon-only/./common/vmx86.h:32:0,

                                     from /tmp/modconfig-YD04zh/vmmon-only/linux/driver.h:33,

                                     from /tmp/modconfig-YD04zh/vmmon-only/linux/driver.c:47:

                    /tmp/modconfig-YD04zh/vmmon-only/./include/x86msr.h:134:0: warning: "MSR_MISC_FEATURES_ENABLES" redefined

                    #define MSR_MISC_FEATURES_ENABLES            0x140

                     

                    In file included from ./arch/x86/include/asm/nospec-branch.h:11:0,

                                     from ./arch/x86/include/asm/paravirt_types.h:46,

                                     from ./arch/x86/include/asm/ptrace.h:94,

                                     from ./arch/x86/include/asm/math_emu.h:5,

                                     from ./arch/x86/include/asm/processor.h:12,

                                     from ./arch/x86/include/asm/cpufeature.h:5,

                                     from ./arch/x86/include/asm/thread_info.h:53,

                                     from ./include/linux/thread_info.h:38,

                                     from ./arch/x86/include/asm/preempt.h:7,

                                     from ./include/linux/preempt.h:78,

                                     from ./include/linux/spinlock.h:51,

                                     from ./include/linux/wait.h:9,

                                     from ./include/linux/wait_bit.h:8,

                                     from ./include/linux/fs.h:6,

                                     from ./include/linux/highmem.h:5,

                                     from /tmp/modconfig-YD04zh/vmmon-only/linux/driver.c:25:

                    ./arch/x86/include/asm/msr-index.h:695:0: note: this is the location of the previous definition

                    #define MSR_MISC_FEATURES_ENABLES 0x00000140

                     

                    In file included from /tmp/modconfig-YD04zh/vmmon-only/./common/vmx86.h:32:0,

                                     from /tmp/modconfig-YD04zh/vmmon-only/linux/driver.h:33,

                                     from /tmp/modconfig-YD04zh/vmmon-only/linux/driver.c:47:

                    /tmp/modconfig-YD04zh/vmmon-only/./include/x86msr.h:474:0: 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:0,

                                     from ./arch/x86/include/asm/paravirt_types.h:46,

                                     from ./arch/x86/include/asm/ptrace.h:94,

                                     from ./arch/x86/include/asm/math_emu.h:5,

                                     from ./arch/x86/include/asm/processor.h:12,

                                     from ./arch/x86/include/asm/cpufeature.h:5,

                                     from ./arch/x86/include/asm/thread_info.h:53,

                                     from ./include/linux/thread_info.h:38,

                                     from ./arch/x86/include/asm/preempt.h:7,

                                     from ./include/linux/preempt.h:78,

                                     from ./include/linux/spinlock.h:51,

                                     from ./include/linux/wait.h:9,

                                     from ./include/linux/wait_bit.h:8,

                                     from ./include/linux/fs.h:6,

                                     from ./include/linux/highmem.h:5,

                                     from /tmp/modconfig-YD04zh/vmmon-only/linux/driver.c:25:

                    ./arch/x86/include/asm/msr-index.h:504:0: 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-YD04zh/vmmon-only/./common/vmx86.h:32:0,

                                     from /tmp/modconfig-YD04zh/vmmon-only/linux/driver.h:33,

                                     from /tmp/modconfig-YD04zh/vmmon-only/linux/driver.c:47:

                    /tmp/modconfig-YD04zh/vmmon-only/./include/x86msr.h:633:0: warning: "MSR_TSX_FORCE_ABORT" redefined

                    #define MSR_TSX_FORCE_ABORT                      0x0000010f

                     

                    In file included from ./arch/x86/include/asm/nospec-branch.h:11:0,

                                     from ./arch/x86/include/asm/paravirt_types.h:46,

                                     from ./arch/x86/include/asm/ptrace.h:94,

                                     from ./arch/x86/include/asm/math_emu.h:5,

                                     from ./arch/x86/include/asm/processor.h:12,

                                     from ./arch/x86/include/asm/cpufeature.h:5,

                                     from ./arch/x86/include/asm/thread_info.h:53,

                                     from ./include/linux/thread_info.h:38,

                                     from ./arch/x86/include/asm/preempt.h:7,

                                     from ./include/linux/preempt.h:78,

                                     from ./include/linux/spinlock.h:51,

                                     from ./include/linux/wait.h:9,

                                     from ./include/linux/wait_bit.h:8,

                                     from ./include/linux/fs.h:6,

                                     from ./include/linux/highmem.h:5,

                                     from /tmp/modconfig-YD04zh/vmmon-only/linux/driver.c:25:

                    ./arch/x86/include/asm/msr-index.h:704:0: note: this is the location of the previous definition

                    #define MSR_TSX_FORCE_ABORT  0x0000010F

                     

                    In file included from /tmp/modconfig-YD04zh/vmmon-only/./common/vmx86.h:32:0,

                                     from /tmp/modconfig-YD04zh/vmmon-only/vmcore/moduleloop.c:35:

                    /tmp/modconfig-YD04zh/vmmon-only/./include/x86msr.h:134:0: warning: "MSR_MISC_FEATURES_ENABLES" redefined

                    #define MSR_MISC_FEATURES_ENABLES            0x140

                     

                    In file included from ./arch/x86/include/asm/nospec-branch.h:11:0,

                                     from ./arch/x86/include/asm/irqflags.h:9,

                                     from ./include/linux/irqflags.h:16,

                                     from ./include/linux/rcupdate.h:26,

                                     from ./include/linux/rculist.h:11,

                                     from ./include/linux/pid.h:5,

                                     from ./include/linux/sched.h:14,

                                     from /tmp/modconfig-YD04zh/vmmon-only/vmcore/moduleloop.c:31:

                    ./arch/x86/include/asm/msr-index.h:695:0: note: this is the location of the previous definition

                    #define MSR_MISC_FEATURES_ENABLES 0x00000140

                     

                    In file included from /tmp/modconfig-YD04zh/vmmon-only/./common/vmx86.h:32:0,

                                     from /tmp/modconfig-YD04zh/vmmon-only/vmcore/moduleloop.c:35:

                    /tmp/modconfig-YD04zh/vmmon-only/./include/x86msr.h:474:0: 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:0,

                                     from ./arch/x86/include/asm/irqflags.h:9,

                                     from ./include/linux/irqflags.h:16,

                                     from ./include/linux/rcupdate.h:26,

                                     from ./include/linux/rculist.h:11,

                                     from ./include/linux/pid.h:5,

                                     from ./include/linux/sched.h:14,

                                     from /tmp/modconfig-YD04zh/vmmon-only/vmcore/moduleloop.c:31:

                    ./arch/x86/include/asm/msr-index.h:504:0: 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-YD04zh/vmmon-only/./common/vmx86.h:32:0,

                                     from /tmp/modconfig-YD04zh/vmmon-only/vmcore/moduleloop.c:35:

                    /tmp/modconfig-YD04zh/vmmon-only/./include/x86msr.h:633:0: warning: "MSR_TSX_FORCE_ABORT" redefined

                    #define MSR_TSX_FORCE_ABORT                      0x0000010f

                     

                    In file included from ./arch/x86/include/asm/nospec-branch.h:11:0,

                                     from ./arch/x86/include/asm/irqflags.h:9,

                                     from ./include/linux/irqflags.h:16,

                                     from ./include/linux/rcupdate.h:26,

                                     from ./include/linux/rculist.h:11,

                                     from ./include/linux/pid.h:5,

                                     from ./include/linux/sched.h:14,

                                     from /tmp/modconfig-YD04zh/vmmon-only/vmcore/moduleloop.c:31:

                    ./arch/x86/include/asm/msr-index.h:704:0: note: this is the location of the previous definition

                    #define MSR_TSX_FORCE_ABORT  0x0000010F

                     

                    In file included from /tmp/modconfig-YD04zh/vmmon-only/./include/vm_asm_x86.h:41:0,

                                     from /tmp/modconfig-YD04zh/vmmon-only/./include/vm_asm.h:44,

                                     from /tmp/modconfig-YD04zh/vmmon-only/linux/driver.c:49:

                    /tmp/modconfig-YD04zh/vmmon-only/./include/x86_basic_defs.h:78:0: warning: "CR3_PCID_MASK" redefined

                    #define CR3_PCID_MASK  0xFFF

                     

                    In file included from ./arch/x86/include/asm/processor.h:5:0,

                                     from ./arch/x86/include/asm/cpufeature.h:5,

                                     from ./arch/x86/include/asm/thread_info.h:53,

                                     from ./include/linux/thread_info.h:38,

                                     from ./arch/x86/include/asm/preempt.h:7,

                                     from ./include/linux/preempt.h:78,

                                     from ./include/linux/spinlock.h:51,

                                     from ./include/linux/wait.h:9,

                                     from ./include/linux/wait_bit.h:8,

                                     from ./include/linux/fs.h:6,

                                     from ./include/linux/highmem.h:5,

                                     from /tmp/modconfig-YD04zh/vmmon-only/linux/driver.c:25:

                    ./arch/x86/include/asm/processor-flags.h:39:0: note: this is the location of the previous definition

                    #define CR3_PCID_MASK 0xFFFull

                     

                    In file included from /tmp/modconfig-YD04zh/vmmon-only/./include/vm_asm.h:43:0,

                                     from /tmp/modconfig-YD04zh/vmmon-only/linux/hostif.c:60:

                    /tmp/modconfig-YD04zh/vmmon-only/./include/x86msr.h:134:0: warning: "MSR_MISC_FEATURES_ENABLES" redefined

                    #define MSR_MISC_FEATURES_ENABLES            0x140

                     

                    In file included from ./arch/x86/include/asm/nospec-branch.h:11:0,

                                     from ./arch/x86/include/asm/irqflags.h:9,

                                     from ./include/linux/irqflags.h:16,

                                     from ./include/linux/rcupdate.h:26,

                                     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-YD04zh/vmmon-only/linux/hostif.c:32:

                    ./arch/x86/include/asm/msr-index.h:695:0: note: this is the location of the previous definition

                    #define MSR_MISC_FEATURES_ENABLES 0x00000140

                     

                    In file included from /tmp/modconfig-YD04zh/vmmon-only/./include/vm_asm.h:43:0,

                                     from /tmp/modconfig-YD04zh/vmmon-only/linux/hostif.c:60:

                    /tmp/modconfig-YD04zh/vmmon-only/./include/x86msr.h:474:0: 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:0,

                                     from ./arch/x86/include/asm/irqflags.h:9,

                                     from ./include/linux/irqflags.h:16,

                                     from ./include/linux/rcupdate.h:26,

                                     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-YD04zh/vmmon-only/linux/hostif.c:32:

                    ./arch/x86/include/asm/msr-index.h:504:0: 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-YD04zh/vmmon-only/./include/vm_asm.h:43:0,

                                     from /tmp/modconfig-YD04zh/vmmon-only/linux/hostif.c:60:

                    /tmp/modconfig-YD04zh/vmmon-only/./include/x86msr.h:633:0: warning: "MSR_TSX_FORCE_ABORT" redefined

                    #define MSR_TSX_FORCE_ABORT                      0x0000010f

                     

                    In file included from ./arch/x86/include/asm/nospec-branch.h:11:0,

                                     from ./arch/x86/include/asm/irqflags.h:9,

                                     from ./include/linux/irqflags.h:16,

                                     from ./include/linux/rcupdate.h:26,

                                     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-YD04zh/vmmon-only/linux/hostif.c:32:

                    ./arch/x86/include/asm/msr-index.h:704:0: note: this is the location of the previous definition

                    #define MSR_TSX_FORCE_ABORT  0x0000010F

                     

                    In file included from /tmp/modconfig-YD04zh/vmmon-only/./include/vm_asm_x86.h:41:0,

                                     from /tmp/modconfig-YD04zh/vmmon-only/./include/vm_asm.h:44,

                                     from /tmp/modconfig-YD04zh/vmmon-only/linux/hostif.c:60:

                    /tmp/modconfig-YD04zh/vmmon-only/./include/x86_basic_defs.h:78:0: warning: "CR3_PCID_MASK" redefined

                    #define CR3_PCID_MASK  0xFFF

                     

                    In file included from ./arch/x86/include/asm/irqflags.h:5:0,

                                     from ./include/linux/irqflags.h:16,

                                     from ./include/linux/rcupdate.h:26,

                                     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-YD04zh/vmmon-only/linux/hostif.c:32:

                    ./arch/x86/include/asm/processor-flags.h:39:0: note: this is the location of the previous definition

                    #define CR3_PCID_MASK 0xFFFull

                     

                    /tmp/modconfig-YD04zh/vmmon-only/linux/driver.c: In function ‘LinuxDriver_Ioctl’:

                    /tmp/modconfig-YD04zh/vmmon-only/linux/driver.c:1536:5: warning: "VMX86_DEVEL" is not defined, evaluates to 0 [-Wundef]

                    #if VMX86_DEVEL

                         ^~~~~~~~~~~

                    At top level:

                    /tmp/modconfig-YD04zh/vmmon-only/linux/driver.c:961:1: warning: always_inline function might not be inlinable [-Wattributes]

                    LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max - TSC min

                    ^~~~~~~~~~~~~~~~~~~~~~~

                      LD [M]  /tmp/modconfig-YD04zh/vmmon-only/vmmon.o

                      Building modules, stage 2.

                      MODPOST 1 modules

                      CC      /tmp/modconfig-YD04zh/vmmon-only/vmmon.mod.o

                      LD [M]  /tmp/modconfig-YD04zh/vmmon-only/vmmon.ko

                    make[1]: Leaving directory '/usr/src/linux-headers-5.3.0-40-generic'

                    /usr/bin/make -C $PWD SRCROOT=$PWD/. \

                      MODULEBUILDDIR= postbuild

                    make[1]: Entering directory '/tmp/modconfig-YD04zh/vmmon-only'

                    make[1]: 'postbuild' is up to date.

                    make[1]: Leaving directory '/tmp/modconfig-YD04zh/vmmon-only'

                    cp -f vmmon.ko ./../vmmon.o

                    make: Leaving directory '/tmp/modconfig-YD04zh/vmmon-only'

                    make: Entering directory '/tmp/modconfig-YD04zh/vmnet-only'

                    Using kernel build system.

                    /usr/bin/make -C /lib/modules/5.3.0-40-generic/build/include/.. M=$PWD SRCROOT=$PWD/. \

                      MODULEBUILDDIR= modules

                    make[1]: Entering directory '/usr/src/linux-headers-5.3.0-40-generic'

                      CC [M]  /tmp/modconfig-YD04zh/vmnet-only/driver.o

                      CC [M]  /tmp/modconfig-YD04zh/vmnet-only/hub.o

                      CC [M]  /tmp/modconfig-YD04zh/vmnet-only/userif.o

                      CC [M]  /tmp/modconfig-YD04zh/vmnet-only/netif.o

                      CC [M]  /tmp/modconfig-YD04zh/vmnet-only/bridge.o

                      CC [M]  /tmp/modconfig-YD04zh/vmnet-only/smac_compat.o

                      CC [M]  /tmp/modconfig-YD04zh/vmnet-only/procfs.o

                      CC [M]  /tmp/modconfig-YD04zh/vmnet-only/smac.o

                      CC [M]  /tmp/modconfig-YD04zh/vmnet-only/vnetEvent.o

                      CC [M]  /tmp/modconfig-YD04zh/vmnet-only/vnetUserListener.o

                    In file included from /tmp/modconfig-YD04zh/vmnet-only/net.h:38:0,

                                     from /tmp/modconfig-YD04zh/vmnet-only/vnetInt.h:26,

                                     from /tmp/modconfig-YD04zh/vmnet-only/bridge.c:53:

                    /tmp/modconfig-YD04zh/vmnet-only/vm_device_version.h:56:0: warning: "PCI_VENDOR_ID_VMWARE" redefined

                    #define PCI_VENDOR_ID_VMWARE                    0x15AD

                     

                    In file included from ./include/linux/pci.h:37:0,

                                     from /tmp/modconfig-YD04zh/vmnet-only/compat_netdevice.h:27,

                                     from /tmp/modconfig-YD04zh/vmnet-only/bridge.c:52:

                    ./include/linux/pci_ids.h:2282:0: note: this is the location of the previous definition

                    #define PCI_VENDOR_ID_VMWARE  0x15ad

                     

                    In file included from /tmp/modconfig-YD04zh/vmnet-only/net.h:38:0,

                                     from /tmp/modconfig-YD04zh/vmnet-only/vnetInt.h:26,

                                     from /tmp/modconfig-YD04zh/vmnet-only/bridge.c:53:

                    /tmp/modconfig-YD04zh/vmnet-only/vm_device_version.h:74:0: warning: "PCI_DEVICE_ID_VMWARE_VMXNET3" redefined

                    #define PCI_DEVICE_ID_VMWARE_VMXNET3            0x07B0

                     

                    In file included from ./include/linux/pci.h:37:0,

                                     from /tmp/modconfig-YD04zh/vmnet-only/compat_netdevice.h:27,

                                     from /tmp/modconfig-YD04zh/vmnet-only/bridge.c:52:

                    ./include/linux/pci_ids.h:2283:0: note: this is the location of the previous definition

                    #define PCI_DEVICE_ID_VMWARE_VMXNET3 0x07b0

                     

                    In file included from ./include/linux/pci.h:37:0,

                                     from /tmp/modconfig-YD04zh/vmnet-only/compat_netdevice.h:27,

                                     from /tmp/modconfig-YD04zh/vmnet-only/netif.c:44:

                    ./include/linux/pci_ids.h:2282:0: warning: "PCI_VENDOR_ID_VMWARE" redefined

                    #define PCI_VENDOR_ID_VMWARE  0x15ad

                     

                    In file included from /tmp/modconfig-YD04zh/vmnet-only/net.h:38:0,

                                     from /tmp/modconfig-YD04zh/vmnet-only/vnetInt.h:26,

                                     from /tmp/modconfig-YD04zh/vmnet-only/netif.c:43:

                    /tmp/modconfig-YD04zh/vmnet-only/vm_device_version.h:56:0: note: this is the location of the previous definition

                    #define PCI_VENDOR_ID_VMWARE                    0x15AD

                     

                    In file included from ./include/linux/pci.h:37:0,

                                     from /tmp/modconfig-YD04zh/vmnet-only/compat_netdevice.h:27,

                                     from /tmp/modconfig-YD04zh/vmnet-only/netif.c:44:

                    ./include/linux/pci_ids.h:2283:0: warning: "PCI_DEVICE_ID_VMWARE_VMXNET3" redefined

                    #define PCI_DEVICE_ID_VMWARE_VMXNET3 0x07b0

                     

                    In file included from /tmp/modconfig-YD04zh/vmnet-only/net.h:38:0,

                                     from /tmp/modconfig-YD04zh/vmnet-only/vnetInt.h:26,

                                     from /tmp/modconfig-YD04zh/vmnet-only/netif.c:43:

                    /tmp/modconfig-YD04zh/vmnet-only/vm_device_version.h:74:0: note: this is the location of the previous definition

                    #define PCI_DEVICE_ID_VMWARE_VMXNET3            0x07B0

                     

                      LD [M]  /tmp/modconfig-YD04zh/vmnet-only/vmnet.o

                      Building modules, stage 2.

                      MODPOST 1 modules

                      CC      /tmp/modconfig-YD04zh/vmnet-only/vmnet.mod.o

                      LD [M]  /tmp/modconfig-YD04zh/vmnet-only/vmnet.ko

                    make[1]: Leaving directory '/usr/src/linux-headers-5.3.0-40-generic'

                    /usr/bin/make -C $PWD SRCROOT=$PWD/. \

                      MODULEBUILDDIR= postbuild

                    make[1]: Entering directory '/tmp/modconfig-YD04zh/vmnet-only'

                    make[1]: 'postbuild' is up to date.

                    make[1]: Leaving directory '/tmp/modconfig-YD04zh/vmnet-only'

                    cp -f vmnet.ko ./../vmnet.o

                    make: Leaving directory '/tmp/modconfig-YD04zh/vmnet-only'

                    make: Entering directory '/tmp/modconfig-YD04zh/vmci-only'

                    Using kernel build system.

                    /usr/bin/make -C /lib/modules/5.3.0-40-generic/build/include/.. M=$PWD SRCROOT=$PWD/. \

                      MODULEBUILDDIR= modules

                    make[1]: Entering directory '/usr/src/linux-headers-5.3.0-40-generic'

                      CC [M]  /tmp/modconfig-YD04zh/vmci-only/linux/driver.o

                      CC [M]  /tmp/modconfig-YD04zh/vmci-only/linux/vmciKernelIf.o

                      CC [M]  /tmp/modconfig-YD04zh/vmci-only/common/vmciDatagram.o

                      CC [M]  /tmp/modconfig-YD04zh/vmci-only/common/vmciDriver.o

                      CC [M]  /tmp/modconfig-YD04zh/vmci-only/common/vmciResource.o

                      CC [M]  /tmp/modconfig-YD04zh/vmci-only/common/vmciRoute.o

                      CC [M]  /tmp/modconfig-YD04zh/vmci-only/common/vmciContext.o

                      CC [M]  /tmp/modconfig-YD04zh/vmci-only/common/vmciHashtable.o

                      CC [M]  /tmp/modconfig-YD04zh/vmci-only/common/vmciEvent.o

                      CC [M]  /tmp/modconfig-YD04zh/vmci-only/common/vmciQPair.o

                      CC [M]  /tmp/modconfig-YD04zh/vmci-only/common/vmciQueuePair.o

                      CC [M]  /tmp/modconfig-YD04zh/vmci-only/common/vmciDoorbell.o

                      CC [M]  /tmp/modconfig-YD04zh/vmci-only/driverLog.o

                    In file included from /tmp/modconfig-YD04zh/vmci-only/linux/driver.c:60:0:

                    /tmp/modconfig-YD04zh/vmci-only/./shared/vm_device_version.h:56:0: warning: "PCI_VENDOR_ID_VMWARE" redefined

                    #define PCI_VENDOR_ID_VMWARE                    0x15AD

                     

                    In file included from ./include/linux/pci.h:37:0,

                                     from /tmp/modconfig-YD04zh/vmci-only/./shared/compat_pci.h:27,

                                     from /tmp/modconfig-YD04zh/vmci-only/linux/driver.c:49:

                    ./include/linux/pci_ids.h:2282:0: note: this is the location of the previous definition

                    #define PCI_VENDOR_ID_VMWARE  0x15ad

                     

                    In file included from /tmp/modconfig-YD04zh/vmci-only/linux/driver.c:60:0:

                    /tmp/modconfig-YD04zh/vmci-only/./shared/vm_device_version.h:74:0: warning: "PCI_DEVICE_ID_VMWARE_VMXNET3" redefined

                    #define PCI_DEVICE_ID_VMWARE_VMXNET3            0x07B0

                     

                    In file included from ./include/linux/pci.h:37:0,

                                     from /tmp/modconfig-YD04zh/vmci-only/./shared/compat_pci.h:27,

                                     from /tmp/modconfig-YD04zh/vmci-only/linux/driver.c:49:

                    ./include/linux/pci_ids.h:2283:0: note: this is the location of the previous definition

                    #define PCI_DEVICE_ID_VMWARE_VMXNET3 0x07b0

                     

                    /tmp/modconfig-YD04zh/vmci-only/linux/driver.c: In function ‘VMCIUserVAInvalidPointer’:

                    /tmp/modconfig-YD04zh/vmci-only/linux/driver.c:1462:53: error: macro "access_ok" passed 3 arguments, but takes just 2

                        return !access_ok(VERIFY_WRITE, (void *)uva, size);

                                                                         ^

                    /tmp/modconfig-YD04zh/vmci-only/linux/driver.c:1462:12: error: ‘access_ok’ undeclared (first use in this function)

                        return !access_ok(VERIFY_WRITE, (void *)uva, size);

                                ^~~~~~~~~

                    /tmp/modconfig-YD04zh/vmci-only/linux/driver.c:1462:12: note: each undeclared identifier is reported only once for each function it appears in

                    /tmp/modconfig-YD04zh/vmci-only/linux/driver.c: In function ‘VMCIUserVALockPage’:

                    /tmp/modconfig-YD04zh/vmci-only/linux/driver.c:1492:43: error: passing argument 5 of ‘get_user_pages’ from incompatible pointer type [-Werror=incompatible-pointer-types]

                        retval = get_user_pages(addr, 1, 1, 0, &page, NULL);

                                                               ^

                    In file included from ./include/linux/highmem.h:8:0,

                                     from /tmp/modconfig-YD04zh/vmci-only/./shared/compat_highmem.h:22,

                                     from /tmp/modconfig-YD04zh/vmci-only/linux/driver.c:41:

                    ./include/linux/mm.h:1573:6: note: expected ‘struct vm_area_struct **’ but argument is of type ‘struct page **’

                    long get_user_pages(unsigned long start, unsigned long nr_pages,

                          ^~~~~~~~~~~~~~

                    /tmp/modconfig-YD04zh/vmci-only/linux/driver.c:1492:13: error: too many arguments to function ‘get_user_pages’

                        retval = get_user_pages(addr, 1, 1, 0, &page, NULL);

                                 ^~~~~~~~~~~~~~

                    In file included from ./include/linux/highmem.h:8:0,

                                     from /tmp/modconfig-YD04zh/vmci-only/./shared/compat_highmem.h:22,

                                     from /tmp/modconfig-YD04zh/vmci-only/linux/driver.c:41:

                    ./include/linux/mm.h:1573:6: note: declared here

                    long get_user_pages(unsigned long start, unsigned long nr_pages,

                          ^~~~~~~~~~~~~~

                    /tmp/modconfig-YD04zh/vmci-only/linux/driver.c: In function ‘vmci_enable_msix’:

                    /tmp/modconfig-YD04zh/vmci-only/linux/driver.c:1747:13: error: implicit declaration of function ‘pci_enable_msix’; did you mean ‘pci_enable_msi’? [-Werror=implicit-function-declaration]

                        result = pci_enable_msix(pdev, vmci_dev.msix_entries, VMCI_MAX_INTRS);

                                 ^~~~~~~~~~~~~~~

                                 pci_enable_msi

                    /tmp/modconfig-YD04zh/vmci-only/linux/vmciKernelIf.c: In function ‘VMCIHost_WaitForCallLocked’:

                    /tmp/modconfig-YD04zh/vmci-only/linux/vmciKernelIf.c:378:8: error: implicit declaration of function ‘signal_pending’; did you mean ‘timer_pending’? [-Werror=implicit-function-declaration]

                        if (signal_pending(current)) {

                            ^~~~~~~~~~~~~~

                            timer_pending

                    /tmp/modconfig-YD04zh/vmci-only/linux/driver.c: In function ‘vmci_exit’:

                    /tmp/modconfig-YD04zh/vmci-only/linux/driver.c:2521:14: error: void value not ignored as it ought to be

                           retval = misc_deregister(&linuxState.misc);

                                  ^

                    /tmp/modconfig-YD04zh/vmci-only/linux/vmciKernelIf.c: In function ‘__VMCIMemcpyToQueue’:

                    /tmp/modconfig-YD04zh/vmci-only/linux/vmciKernelIf.c:1223:16: error: implicit declaration of function ‘memcpy_fromiovec’; did you mean ‘memcpy_fromio’? [-Werror=implicit-function-declaration]

                              err = memcpy_fromiovec((uint8 *)va + pageOffset, iov, toCopy);

                                    ^~~~~~~~~~~~~~~~

                                    memcpy_fromio

                    /tmp/modconfig-YD04zh/vmci-only/linux/driver.c: In function ‘VMCIUserVAInvalidPointer’:

                    /tmp/modconfig-YD04zh/vmci-only/linux/driver.c:1463:1: warning: control reaches end of non-void function [-Wreturn-type]

                    }

                    ^

                    /tmp/modconfig-YD04zh/vmci-only/linux/vmciKernelIf.c: In function ‘__VMCIMemcpyFromQueue’:

                    /tmp/modconfig-YD04zh/vmci-only/linux/vmciKernelIf.c:1298:16: error: implicit declaration of function ‘memcpy_toiovec’; did you mean ‘memcpy_toio’? [-Werror=implicit-function-declaration]

                              err = memcpy_toiovec(iov, (uint8 *)va + pageOffset, toCopy);

                                    ^~~~~~~~~~~~~~

                                    memcpy_toio

                    cc1: some warnings being treated as errors

                    scripts/Makefile.build:288: recipe for target '/tmp/modconfig-YD04zh/vmci-only/linux/driver.o' failed

                    make[2]: *** [/tmp/modconfig-YD04zh/vmci-only/linux/driver.o] Error 1

                    make[2]: *** Waiting for unfinished jobs....

                    /tmp/modconfig-YD04zh/vmci-only/linux/vmciKernelIf.c: In function ‘VMCIReleasePages’:

                    /tmp/modconfig-YD04zh/vmci-only/linux/vmciKernelIf.c:1855:7: error: implicit declaration of function ‘page_cache_release’; did you mean ‘pagecache_get_page’? [-Werror=implicit-function-declaration]

                           page_cache_release(pages[i]);

                           ^~~~~~~~~~~~~~~~~~

                           pagecache_get_page

                    /tmp/modconfig-YD04zh/vmci-only/linux/vmciKernelIf.c: In function ‘VMCIHost_GetUserMemory’:

                    /tmp/modconfig-YD04zh/vmci-only/linux/vmciKernelIf.c:2073:28: error: passing argument 5 of ‘get_user_pages’ from incompatible pointer type [-Werror=incompatible-pointer-types]

                                                produceQ->kernelIf->u.h.headerPage,

                                                ^~~~~~~~

                    In file included from /tmp/modconfig-YD04zh/vmci-only/linux/vmciKernelIf.c:38:0:

                    ./include/linux/mm.h:1573:6: note: expected ‘struct vm_area_struct **’ but argument is of type ‘struct page **’

                    long get_user_pages(unsigned long start, unsigned long nr_pages,

                          ^~~~~~~~~~~~~~

                    /tmp/modconfig-YD04zh/vmci-only/linux/vmciKernelIf.c:2070:13: error: too many arguments to function ‘get_user_pages’

                        retval = get_user_pages((VA)produceUVA,

                                 ^~~~~~~~~~~~~~

                    In file included from /tmp/modconfig-YD04zh/vmci-only/linux/vmciKernelIf.c:38:0:

                    ./include/linux/mm.h:1573:6: note: declared here

                    long get_user_pages(unsigned long start, unsigned long nr_pages,

                          ^~~~~~~~~~~~~~

                    In file included from ./include/linux/thread_info.h:21:0,

                                     from ./arch/x86/include/asm/preempt.h:7,

                                     from ./include/linux/preempt.h:78,

                                     from ./include/linux/spinlock.h:51,

                                     from ./include/linux/mmzone.h:8,

                                     from ./include/linux/gfp.h:6,

                                     from ./include/linux/mm.h:10,

                                     from /tmp/modconfig-YD04zh/vmci-only/linux/vmciKernelIf.c:38:

                    ./arch/x86/include/asm/current.h:18:17: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion]

                    #define current get_current()

                                     ^

                    /tmp/modconfig-YD04zh/vmci-only/linux/vmciKernelIf.c:2091:28: note: in expansion of macro ‘current’

                        retval = get_user_pages(current,

                                                ^~~~~~~

                    In file included from /tmp/modconfig-YD04zh/vmci-only/linux/vmciKernelIf.c:38:0:

                    ./include/linux/mm.h:1573:6: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’

                    long get_user_pages(unsigned long start, unsigned long nr_pages,

                          ^~~~~~~~~~~~~~

                    In file included from ./include/linux/thread_info.h:21:0,

                                     from ./arch/x86/include/asm/preempt.h:7,

                                     from ./include/linux/preempt.h:78,

                                     from ./include/linux/spinlock.h:51,

                                     from ./include/linux/mmzone.h:8,

                                     from ./include/linux/gfp.h:6,

                                     from ./include/linux/mm.h:10,

                                     from /tmp/modconfig-YD04zh/vmci-only/linux/vmciKernelIf.c:38:

                    ./arch/x86/include/asm/current.h:18:17: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion]

                    #define current get_current()

                                     ^

                    /tmp/modconfig-YD04zh/vmci-only/linux/vmciKernelIf.c:2092:28: note: in expansion of macro ‘current’

                                                current->mm,

                                                ^~~~~~~

                    In file included from /tmp/modconfig-YD04zh/vmci-only/linux/vmciKernelIf.c:38:0:

                    ./include/linux/mm.h:1573:6: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’

                    long get_user_pages(unsigned long start, unsigned long nr_pages,

                          ^~~~~~~~~~~~~~

                    /tmp/modconfig-YD04zh/vmci-only/linux/vmciKernelIf.c:2094:28: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion]

                                                consumeQ->kernelIf->numPages,

                                                ^~~~~~~~

                    In file included from /tmp/modconfig-YD04zh/vmci-only/linux/vmciKernelIf.c:38:0:

                    ./include/linux/mm.h:1573:6: note: expected ‘struct page **’ but argument is of type ‘size_t {aka long unsigned int}’

                    long get_user_pages(unsigned long start, unsigned long nr_pages,

                          ^~~~~~~~~~~~~~

                    /tmp/modconfig-YD04zh/vmci-only/linux/vmciKernelIf.c:2095:28: warning: passing argument 5 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion]

                                                1, 0,

                                                ^

                    In file included from /tmp/modconfig-YD04zh/vmci-only/linux/vmciKernelIf.c:38:0:

                    ./include/linux/mm.h:1573:6: note: expected ‘struct vm_area_struct **’ but argument is of type ‘int’

                    long get_user_pages(unsigned long start, unsigned long nr_pages,

                          ^~~~~~~~~~~~~~

                    /tmp/modconfig-YD04zh/vmci-only/linux/vmciKernelIf.c:2091:13: error: too many arguments to function ‘get_user_pages’

                        retval = get_user_pages(current,

                                 ^~~~~~~~~~~~~~

                    In file included from /tmp/modconfig-YD04zh/vmci-only/linux/vmciKernelIf.c:38:0:

                    ./include/linux/mm.h:1573:6: note: declared here

                    long get_user_pages(unsigned long start, unsigned long nr_pages,

                          ^~~~~~~~~~~~~~

                    cc1: some warnings being treated as errors

                    scripts/Makefile.build:288: recipe for target '/tmp/modconfig-YD04zh/vmci-only/linux/vmciKernelIf.o' failed

                    make[2]: *** [/tmp/modconfig-YD04zh/vmci-only/linux/vmciKernelIf.o] Error 1

                    Makefile:1655: recipe for target '_module_/tmp/modconfig-YD04zh/vmci-only' failed

                    make[1]: *** [_module_/tmp/modconfig-YD04zh/vmci-only] Error 2

                    make[1]: Leaving directory '/usr/src/linux-headers-5.3.0-40-generic'

                    Makefile:117: recipe for target 'vmci.ko' failed

                    make: *** [vmci.ko] Error 2

                    make: Leaving directory '/tmp/modconfig-YD04zh/vmci-only'

                    Unable to install all modules.  See log for details.

                     

                     

                    4. Okay, fine, need a custom patch because Vmware sucks at staying on top of these things... Followed this method (notice it's updated from the original solution to include the updated ws version). Just stick this in a script that you run after every kernel upgrade:

                    #!/bin/bash

                    VMWARE_VERSION=workstation-`vmware -v|grep [0-9.]* -o|head -n 1` # this is detect the version you have

                    #VMWARE_VERSION=workstation-15.5.1

                    TMP_FOLDER=/tmp/patch-vmware

                    rm -fdr $TMP_FOLDER

                    mkdir -p $TMP_FOLDER

                    cd $TMP_FOLDER

                    git clone https://github.com/mkubecek/vmware-host-modules.git

                    cd $TMP_FOLDER/vmware-host-modules

                    git checkout $VMWARE_VERSION

                    git fetch

                    make

                    sudo make install

                    sudo rm /usr/lib/vmware/lib/libz.so.1/libz.so.1
                    sudo ln -s /lib/x86_64-linux-gnu/libz.so.1 /usr/lib/vmware/lib/libz.so.1/libz.so.1
                    sudo /etc/init.d/vmware restart

                    5. Boom, workstation fires right up and works as it should without 3rd parties fixing basic kernel updates to their stuff.