Package Details: vmware-patch 15.5.1-1

Git Clone URL: https://aur.archlinux.org/vmware-patch.git (read-only)
Package Base: vmware-patch
Description: A post-install configuration solution for VMware Workstation (Pro) and Player (Plus and Pro)
Upstream URL: https://wiki.archlinux.org/index.php/VMware#Configuration
Keywords: patch vmci vmmon vmnet vmware
Licenses: GPL
Submitter: oliv
Maintainer: None
Last Packager: lfleischer
Votes: 208
Popularity: 0.32
First Submitted: 2011-01-31 12:49
Last Updated: 2019-11-23 15:07

Required by (0)

Sources (41)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 ... Next › Last »

boennhoff commented on 2017-10-09 13:12

It's not working for me either, using:
* VMware-Workstation-Full-14.0.0-6661328.x86_64.bundle
* vmware-patch-14.0.0-1
* linux-4.13.4-1

vmware-patch fails when starting the VMware services: "Virtual machine communication interface failed".
The VMCI module seems to be the problem. It's not even built.
"vmware-modconfig --console --install-all" produces the same problem (after running vmware-unpatch).

# find /lib/modules -name 'vm*.ko'
/lib/modules/4.13.4-1-ARCH/misc/vmmon.ko
/lib/modules/4.13.4-1-ARCH/misc/vmnet.ko

# find /usr/lib/vmware/modules -type f -exec md5sum {} \;
e2ed032b842a23e0edd2423383b306c1 /usr/lib/vmware/modules/source/vmci.tar
72272c7fb2f9e87b90b08359de0008d2 /usr/lib/vmware/modules/source/vmmon.bkp
9c41b9bbec1a5b11778ada993b1364f6 /usr/lib/vmware/modules/source/vmnet.bkp
79cf7c3573e90fa81cba2bc13115d98e /usr/lib/vmware/modules/source/vmblock.tar
ffdf44457dfd7d7b10c34fbd67248cfc /usr/lib/vmware/modules/source/vmnet.tar
52d07faf0c0ad50a62635878b4041d81 /usr/lib/vmware/modules/source/vmmon.tar
e21e0553e46623c764bbd630657a6270 /usr/lib/vmware/modules/source/vsock.tar
0d7c84c3b611bedce3303c24aa666c64 /usr/lib/vmware/modules/patches/vmci-10.0.4-3.14.patch
3c165edb6847fc9bfa04657f346ac4cc /usr/lib/vmware/modules/patches/vmmon-12.5.7-4.13.3.patch
a176c9e7f6fb0a994249dcbb47390040 /usr/lib/vmware/modules/patches/vsock-10.0.6-4.1.patch
1e264a2aa92c8786e87bda86026f7e4c /usr/lib/vmware/modules/patches/vsock-11.1.2-4.2.patch
7acdc91c88c64d55bd775d2fcdc1b242 /usr/lib/vmware/modules/patches/vmmon-12.5.2-4.9.patch
905d6daa87b314e541eec00ca4f927c6 /usr/lib/vmware/modules/patches/vmmon-11.1.2-4.2.patch
86a889febd9bdf88e458244195d604a4 /usr/lib/vmware/modules/patches/vsock-10.0.4-3.14.patch
5eb0567825f0dea3d7c9f21038463de9 /usr/lib/vmware/modules/patches/vmnet-12.5.2-4.9.patch
4eca49060d2373c259a0c045520de9f9 /usr/lib/vmware/modules/patches/vmmon-10.0.4-3.14.patch
2dbd8389e1a275ea734dcedba8510df1 /usr/lib/vmware/modules/patches/vsock-10.0.6-3.19.patch
ced58cf32a21adfe21d612366c52116a /usr/lib/vmware/modules/patches/vmci-14.0.0-4.13.3.patch
3c165edb6847fc9bfa04657f346ac4cc /usr/lib/vmware/modules/patches/vmmon-14.0.0-4.13.3.patch
298e1b59a9e729525cc3fa9d06f127eb /usr/lib/vmware/modules/patches/vmmon-10.0.5-3.14.patch
d980b5092aeee55edc6dbafb843d886f /usr/lib/vmware/modules/patches/vmnet-10.0.1-3.13.patch
43dee79cc5f5980372e16a20962b3105 /usr/lib/vmware/modules/patches/vmnet-10.0.6-3.17.patch
d5ba75849a3946851506ecbaa9ff3bb5 /usr/lib/vmware/modules/patches/vmci-10.0.6-4.0.patch
0a8dbce269c7ac34a63453435a4a9fad /usr/lib/vmware/modules/patches/vmci-10.0.6-3.19.patch
a2c3e2bbbe6dcbf66737a5e33df5b892 /usr/lib/vmware/modules/patches/vmnet-12.5.7-4.13.patch
36727e319ce5379e5227f618401fd313 /usr/lib/vmware/modules/patches/vmblock-11.1.2-4.2.patch
acd25c0daccb62af8abf750e6369ae25 /usr/lib/vmware/modules/patches/vmnet-10.0.4-3.14.patch
eca2542e4c484ea2ca06b7e9c065b8af /usr/lib/vmware/modules/patches/vmnet-14.0.0-4.13.3.patch
eca2542e4c484ea2ca06b7e9c065b8af /usr/lib/vmware/modules/patches/vmnet-12.5.7-4.13.3.patch
350679df90d266fe7dd343922622c39e /usr/lib/vmware/modules/patches/vmnet-11.1.0-3.19.patch
2c1d8433b698376c228e650741ba6be5 /usr/lib/vmware/modules/patches/vmnet-11.1.2-4.2.patch
1893542f8144aa0bb96f5433b9c34158 /usr/lib/vmware/modules/patches/vsock-10.0.6-3.15.patch
133f3ba5c19ceb00a4ae8f44dc08352a /usr/lib/vmware/modules/patches/vmci-12.0.0-4.2.patch
19f0c57fb59452d344061a1e09261ee9 /usr/lib/vmware/modules/source-14.0.0/vmci.tar
72272c7fb2f9e87b90b08359de0008d2 /usr/lib/vmware/modules/source-14.0.0/vmmon.bkp
9c41b9bbec1a5b11778ada993b1364f6 /usr/lib/vmware/modules/source-14.0.0/vmnet.bkp
79cf7c3573e90fa81cba2bc13115d98e /usr/lib/vmware/modules/source-14.0.0/vmblock.tar
6b31756745a5ff3f27a7e28279bdfe04 /usr/lib/vmware/modules/source-14.0.0/vmnet.tar
aa913e6700ffda1bbe73762ff097adcd /usr/lib/vmware/modules/source-14.0.0/vmmon.tar
e21e0553e46623c764bbd630657a6270 /usr/lib/vmware/modules/source-14.0.0/vsock.tar
bfc389fa366678071600b998e8333a58 /usr/lib/vmware/modules/modules.xml

# LC_ALL=C sudo vmware-patch -fv
==> Patching VMware Workstation v14.0.0 for kernel 4.13.4-1-ARCH..
-> [vmci]
-> Extracting archives..
-> Patching..
patching file vmci-only/linux/driver.c
patching file vmci-only/linux/vmciKernelIf.c
patching file vmci-only/shared/compat_module.h
patching file vmci-only/shared/vm_device_version.h
patching file vmci-only/shared/vmci_kernel_if.h
-> Recreating archives..
-> [vmmon]
-> Extracting archives..
-> Patching..
patching file vmmon-only/linux/hostif.c
Hunk #1 succeeded at 93 with fuzz 2 (offset -6 lines).
Hunk #2 succeeded at 1547 (offset -78 lines).
-> Recreating archives..
-> [vmnet]
-> Extracting archives..
-> Patching..
patching file vmnet-only/userif.c
-> Recreating archives..
==> Installing modules..
[AppLoader] Use shipped PC/SC Lite smart card framework.
An up-to-date "pcsc-lite-libs" or "libpcsclite1" package from your system is preferred.
[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-QDoJy1/vmmon-only'
Using kernel build system.
/sbin/make -C /lib/modules/4.13.4-1-ARCH/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/lib/modules/4.13.4-1-ARCH/build'
CC [M] /tmp/modconfig-QDoJy1/vmmon-only/linux/driverLog.o
CC [M] /tmp/modconfig-QDoJy1/vmmon-only/linux/driver.o
CC [M] /tmp/modconfig-QDoJy1/vmmon-only/linux/hostif.o
CC [M] /tmp/modconfig-QDoJy1/vmmon-only/common/memtrack.o
CC [M] /tmp/modconfig-QDoJy1/vmmon-only/common/apic.o
CC [M] /tmp/modconfig-QDoJy1/vmmon-only/common/vmx86.o
CC [M] /tmp/modconfig-QDoJy1/vmmon-only/common/cpuid.o
CC [M] /tmp/modconfig-QDoJy1/vmmon-only/common/task.o
In file included from ./arch/x86/include/asm/processor.h:4:0,
from ./arch/x86/include/asm/cpufeature.h:4,
from ./arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:37,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:80,
from ./include/linux/spinlock.h:50,
from ./arch/x86/include/asm/mmu.h:4,
from ./arch/x86/include/asm/desc.h:6,
from /tmp/modconfig-QDoJy1/vmmon-only/common/task.c:70:
./arch/x86/include/asm/processor-flags.h:37:0: warning: "CR3_PCID_MASK" redefined
#define CR3_PCID_MASK 0xFFFull

In file included from /tmp/modconfig-QDoJy1/vmmon-only/./include/vm_asm_x86.h:41:0,
from /tmp/modconfig-QDoJy1/vmmon-only/./include/vm_asm_x86_64.h:40,
from /tmp/modconfig-QDoJy1/vmmon-only/./include/vm_asm.h:46,
from /tmp/modconfig-QDoJy1/vmmon-only/common/task.c:53:
/tmp/modconfig-QDoJy1/vmmon-only/./include/x86_basic_defs.h:78:0: note: this is the location of the previous definition
#define CR3_PCID_MASK 0xFFF

CC [M] /tmp/modconfig-QDoJy1/vmmon-only/common/hashFunc.o
In file included from ./arch/x86/include/asm/msr.h:4:0,
from ./arch/x86/include/asm/processor.h:20,
from ./arch/x86/include/asm/cpufeature.h:4,
from ./arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:37,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:80,
from ./include/linux/spinlock.h:50,
from ./arch/x86/include/asm/mmu.h:4,
from ./arch/x86/include/asm/desc.h:6,
from /tmp/modconfig-QDoJy1/vmmon-only/common/task.c:70:
./arch/x86/include/asm/msr-index.h:569:0: warning: "MSR_MISC_FEATURES_ENABLES" redefined
#define MSR_MISC_FEATURES_ENABLES 0x00000140

In file included from /tmp/modconfig-QDoJy1/vmmon-only/common/vmx86.h:32:0,
from /tmp/modconfig-QDoJy1/vmmon-only/common/task.c:51:
/tmp/modconfig-QDoJy1/vmmon-only/./include/x86msr.h:115:0: note: this is the location of the previous definition
#define MSR_MISC_FEATURES_ENABLES 0x140

CC [M] /tmp/modconfig-QDoJy1/vmmon-only/common/comport.o
CC [M] /tmp/modconfig-QDoJy1/vmmon-only/common/phystrack.o
In file included from /tmp/modconfig-QDoJy1/vmmon-only/common/vmx86.h:32:0,
from /tmp/modconfig-QDoJy1/vmmon-only/common/vmx86.c:43:
/tmp/modconfig-QDoJy1/vmmon-only/./include/x86msr.h:115:0: warning: "MSR_MISC_FEATURES_ENABLES" redefined
#define MSR_MISC_FEATURES_ENABLES 0x140

In file included from ./arch/x86/include/asm/msr.h:4:0,
from ./arch/x86/include/asm/processor.h:20,
from ./arch/x86/include/asm/cpufeature.h:4,
from ./arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:37,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:80,
from ./include/linux/rcupdate.h:40,
from ./include/linux/rculist.h:10,
from ./include/linux/pid.h:4,
from ./include/linux/sched.h:13,
from /tmp/modconfig-QDoJy1/vmmon-only/common/vmx86.c:31:
./arch/x86/include/asm/msr-index.h:569:0: note: this is the location of the previous definition
#define MSR_MISC_FEATURES_ENABLES 0x00000140

In file included from /tmp/modconfig-QDoJy1/vmmon-only/./include/vm_asm_x86.h:41:0,
from /tmp/modconfig-QDoJy1/vmmon-only/./include/vm_asm_x86_64.h:40,
from /tmp/modconfig-QDoJy1/vmmon-only/./include/vm_asm.h:46,
from /tmp/modconfig-QDoJy1/vmmon-only/common/vmx86.c:46:
/tmp/modconfig-QDoJy1/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:4:0,
from ./include/linux/irqflags.h:15,
from ./include/linux/rcupdate.h:39,
from ./include/linux/rculist.h:10,
from ./include/linux/pid.h:4,
from ./include/linux/sched.h:13,
from /tmp/modconfig-QDoJy1/vmmon-only/common/vmx86.c:31:
./arch/x86/include/asm/processor-flags.h:37:0: note: this is the location of the previous definition
#define CR3_PCID_MASK 0xFFFull

CC [M] /tmp/modconfig-QDoJy1/vmmon-only/vmcore/moduleloop.o
CC [M] /tmp/modconfig-QDoJy1/vmmon-only/bootstrap/monLoaderVmmon.o
CC [M] /tmp/modconfig-QDoJy1/vmmon-only/bootstrap/monLoader.o
In file included from /tmp/modconfig-QDoJy1/vmmon-only/./include/vm_asm.h:43:0,
from /tmp/modconfig-QDoJy1/vmmon-only/linux/hostif.c:60:
/tmp/modconfig-QDoJy1/vmmon-only/./include/x86msr.h:115:0: warning: "MSR_MISC_FEATURES_ENABLES" redefined
#define MSR_MISC_FEATURES_ENABLES 0x140

In file included from ./arch/x86/include/asm/msr.h:4:0,
from ./arch/x86/include/asm/processor.h:20,
from ./arch/x86/include/asm/cpufeature.h:4,
from ./arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:37,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:80,
from ./include/linux/rcupdate.h:40,
from ./include/linux/rculist.h:10,
from ./include/linux/pid.h:4,
from ./include/linux/sched.h:13,
from ./include/linux/binfmts.h:4,
from /tmp/modconfig-QDoJy1/vmmon-only/linux/hostif.c:32:
./arch/x86/include/asm/msr-index.h:569:0: note: this is the location of the previous definition
#define MSR_MISC_FEATURES_ENABLES 0x00000140

In file included from /tmp/modconfig-QDoJy1/vmmon-only/./include/vm_asm_x86.h:41:0,
from /tmp/modconfig-QDoJy1/vmmon-only/./include/vm_asm_x86_64.h:40,
from /tmp/modconfig-QDoJy1/vmmon-only/./include/vm_asm.h:46,
from /tmp/modconfig-QDoJy1/vmmon-only/linux/hostif.c:60:
/tmp/modconfig-QDoJy1/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:4:0,
from ./include/linux/irqflags.h:15,
from ./include/linux/rcupdate.h:39,
from ./include/linux/rculist.h:10,
from ./include/linux/pid.h:4,
from ./include/linux/sched.h:13,
from ./include/linux/binfmts.h:4,
from /tmp/modconfig-QDoJy1/vmmon-only/linux/hostif.c:32:
./arch/x86/include/asm/processor-flags.h:37:0: note: this is the location of the previous definition
#define CR3_PCID_MASK 0xFFFull

/tmp/modconfig-QDoJy1/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Remove()+0x1a: unknown stack-related register move
/tmp/modconfig-QDoJy1/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Remove()+0x0: stack state mismatch: cfa1=6+16 cfa2=7+8
CC [M] /tmp/modconfig-QDoJy1/vmmon-only/bootstrap/bootstrap.o
In file included from /tmp/modconfig-QDoJy1/vmmon-only/./common/vmx86.h:32:0,
from /tmp/modconfig-QDoJy1/vmmon-only/linux/driver.h:32,
from /tmp/modconfig-QDoJy1/vmmon-only/linux/driver.c:47:
/tmp/modconfig-QDoJy1/vmmon-only/./include/x86msr.h:115:0: warning: "MSR_MISC_FEATURES_ENABLES" redefined
#define MSR_MISC_FEATURES_ENABLES 0x140

In file included from ./arch/x86/include/asm/msr.h:4:0,
from ./arch/x86/include/asm/processor.h:20,
from ./arch/x86/include/asm/cpufeature.h:4,
from ./arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:37,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:80,
from ./include/linux/spinlock.h:50,
from ./include/linux/wait.h:8,
from ./include/linux/wait_bit.h:7,
from ./include/linux/fs.h:5,
from ./include/linux/highmem.h:4,
from /tmp/modconfig-QDoJy1/vmmon-only/linux/driver.c:25:
./arch/x86/include/asm/msr-index.h:569:0: note: this is the location of the previous definition
#define MSR_MISC_FEATURES_ENABLES 0x00000140

In file included from /tmp/modconfig-QDoJy1/vmmon-only/./include/vm_asm_x86.h:41:0,
from /tmp/modconfig-QDoJy1/vmmon-only/./include/vm_asm_x86_64.h:40,
from /tmp/modconfig-QDoJy1/vmmon-only/./include/vm_asm.h:46,
from /tmp/modconfig-QDoJy1/vmmon-only/linux/driver.c:49:
/tmp/modconfig-QDoJy1/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:4:0,
from ./arch/x86/include/asm/cpufeature.h:4,
from ./arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:37,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:80,
from ./include/linux/spinlock.h:50,
from ./include/linux/wait.h:8,
from ./include/linux/wait_bit.h:7,
from ./include/linux/fs.h:5,
from ./include/linux/highmem.h:4,
from /tmp/modconfig-QDoJy1/vmmon-only/linux/driver.c:25:
./arch/x86/include/asm/processor-flags.h:37:0: note: this is the location of the previous definition
#define CR3_PCID_MASK 0xFFFull

/tmp/modconfig-QDoJy1/vmmon-only/bootstrap/monLoaderVmmon.o: warning: objtool: MonLoaderCallout_MapMPNInPTE()+0x10: unknown stack-related register move
/tmp/modconfig-QDoJy1/vmmon-only/bootstrap/monLoaderVmmon.o: warning: objtool: MonLoaderCallout_MapMPNInPTE()+0x0: stack state mismatch: cfa1=6+16 cfa2=7+8
/tmp/modconfig-QDoJy1/vmmon-only/bootstrap/monLoaderVmmon.o: warning: objtool: MonLoaderCallout_CopyFromBlob()+0x19: unknown stack-related register move
/tmp/modconfig-QDoJy1/vmmon-only/bootstrap/monLoaderVmmon.o: warning: objtool: MonLoaderCallout_CopyFromBlob()+0x0: stack state mismatch: cfa1=6+16 cfa2=7+8
/tmp/modconfig-QDoJy1/vmmon-only/bootstrap/monLoaderVmmon.o: warning: objtool: MonLoaderCallout_IsPrivileged()+0xb: unknown stack-related register move
/tmp/modconfig-QDoJy1/vmmon-only/bootstrap/monLoaderVmmon.o: warning: objtool: MonLoaderCallout_IsPrivileged()+0x0: stack state mismatch: cfa1=6+16 cfa2=7+8
/tmp/modconfig-QDoJy1/vmmon-only/bootstrap/monLoaderVmmon.o: warning: objtool: .text: unexpected end of section
/tmp/modconfig-QDoJy1/vmmon-only/linux/driver.c:981:1: warning: always_inline function might not be inlinable [-Wattributes]
LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max - TSC min
^~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/modconfig-QDoJy1/vmmon-only/./common/vmx86.h:32:0,
from /tmp/modconfig-QDoJy1/vmmon-only/vmcore/moduleloop.c:35:
/tmp/modconfig-QDoJy1/vmmon-only/./include/x86msr.h:115:0: warning: "MSR_MISC_FEATURES_ENABLES" redefined
#define MSR_MISC_FEATURES_ENABLES 0x140

In file included from ./arch/x86/include/asm/msr.h:4:0,
from ./arch/x86/include/asm/processor.h:20,
from ./arch/x86/include/asm/cpufeature.h:4,
from ./arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:37,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:80,
from ./include/linux/rcupdate.h:40,
from ./include/linux/rculist.h:10,
from ./include/linux/pid.h:4,
from ./include/linux/sched.h:13,
from /tmp/modconfig-QDoJy1/vmmon-only/vmcore/moduleloop.c:31:
./arch/x86/include/asm/msr-index.h:569:0: note: this is the location of the previous definition
#define MSR_MISC_FEATURES_ENABLES 0x00000140

/tmp/modconfig-QDoJy1/vmmon-only/common/vmx86.o: warning: objtool: Vmx86GetMSR()+0x6: unknown stack-related register move
/tmp/modconfig-QDoJy1/vmmon-only/common/vmx86.o: warning: objtool: Vmx86GetMSR()+0x0: stack state mismatch: cfa1=6+16 cfa2=7+8
LD [M] /tmp/modconfig-QDoJy1/vmmon-only/vmmon.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/modconfig-QDoJy1/vmmon-only/vmmon.mod.o
LD [M] /tmp/modconfig-QDoJy1/vmmon-only/vmmon.ko
make[1]: Leaving directory '/usr/lib/modules/4.13.4-1-ARCH/build'
/sbin/make -C $PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= postbuild
make[1]: Entering directory '/tmp/modconfig-QDoJy1/vmmon-only'
make[1]: 'postbuild' is up to date.
make[1]: Leaving directory '/tmp/modconfig-QDoJy1/vmmon-only'
cp -f vmmon.ko ./../vmmon.o
make: Leaving directory '/tmp/modconfig-QDoJy1/vmmon-only'
make: Entering directory '/tmp/modconfig-QDoJy1/vmnet-only'
Using kernel build system.
/sbin/make -C /lib/modules/4.13.4-1-ARCH/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/lib/modules/4.13.4-1-ARCH/build'
CC [M] /tmp/modconfig-QDoJy1/vmnet-only/driver.o
CC [M] /tmp/modconfig-QDoJy1/vmnet-only/hub.o
CC [M] /tmp/modconfig-QDoJy1/vmnet-only/userif.o
CC [M] /tmp/modconfig-QDoJy1/vmnet-only/netif.o
CC [M] /tmp/modconfig-QDoJy1/vmnet-only/bridge.o
CC [M] /tmp/modconfig-QDoJy1/vmnet-only/procfs.o
CC [M] /tmp/modconfig-QDoJy1/vmnet-only/smac_compat.o
CC [M] /tmp/modconfig-QDoJy1/vmnet-only/smac.o
CC [M] /tmp/modconfig-QDoJy1/vmnet-only/vnetEvent.o
In file included from ./include/linux/pci.h:36:0,
from /tmp/modconfig-QDoJy1/vmnet-only/compat_netdevice.h:27,
from /tmp/modconfig-QDoJy1/vmnet-only/netif.c:43:
./include/linux/pci_ids.h:2260:0: warning: "PCI_VENDOR_ID_VMWARE" redefined
#define PCI_VENDOR_ID_VMWARE 0x15ad

In file included from /tmp/modconfig-QDoJy1/vmnet-only/net.h:38:0,
from /tmp/modconfig-QDoJy1/vmnet-only/vnetInt.h:26,
from /tmp/modconfig-QDoJy1/vmnet-only/netif.c:42:
/tmp/modconfig-QDoJy1/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:36:0,
from /tmp/modconfig-QDoJy1/vmnet-only/compat_netdevice.h:27,
from /tmp/modconfig-QDoJy1/vmnet-only/netif.c:43:
./include/linux/pci_ids.h:2261:0: warning: "PCI_DEVICE_ID_VMWARE_VMXNET3" redefined
#define PCI_DEVICE_ID_VMWARE_VMXNET3 0x07b0

In file included from /tmp/modconfig-QDoJy1/vmnet-only/net.h:38:0,
from /tmp/modconfig-QDoJy1/vmnet-only/vnetInt.h:26,
from /tmp/modconfig-QDoJy1/vmnet-only/netif.c:42:
/tmp/modconfig-QDoJy1/vmnet-only/vm_device_version.h:73:0: note: this is the location of the previous definition
#define PCI_DEVICE_ID_VMWARE_VMXNET3 0x07B0

CC [M] /tmp/modconfig-QDoJy1/vmnet-only/vnetUserListener.o
In file included from /tmp/modconfig-QDoJy1/vmnet-only/net.h:38:0,
from /tmp/modconfig-QDoJy1/vmnet-only/vnetInt.h:26,
from /tmp/modconfig-QDoJy1/vmnet-only/bridge.c:53:
/tmp/modconfig-QDoJy1/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:36:0,
from /tmp/modconfig-QDoJy1/vmnet-only/compat_netdevice.h:27,
from /tmp/modconfig-QDoJy1/vmnet-only/bridge.c:52:
./include/linux/pci_ids.h:2260:0: note: this is the location of the previous definition
#define PCI_VENDOR_ID_VMWARE 0x15ad

In file included from /tmp/modconfig-QDoJy1/vmnet-only/net.h:38:0,
from /tmp/modconfig-QDoJy1/vmnet-only/vnetInt.h:26,
from /tmp/modconfig-QDoJy1/vmnet-only/bridge.c:53:
/tmp/modconfig-QDoJy1/vmnet-only/vm_device_version.h:73:0: warning: "PCI_DEVICE_ID_VMWARE_VMXNET3" redefined
#define PCI_DEVICE_ID_VMWARE_VMXNET3 0x07B0

In file included from ./include/linux/pci.h:36:0,
from /tmp/modconfig-QDoJy1/vmnet-only/compat_netdevice.h:27,
from /tmp/modconfig-QDoJy1/vmnet-only/bridge.c:52:
./include/linux/pci_ids.h:2261:0: note: this is the location of the previous definition
#define PCI_DEVICE_ID_VMWARE_VMXNET3 0x07b0

LD [M] /tmp/modconfig-QDoJy1/vmnet-only/vmnet.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/modconfig-QDoJy1/vmnet-only/vmnet.mod.o
LD [M] /tmp/modconfig-QDoJy1/vmnet-only/vmnet.ko
make[1]: Leaving directory '/usr/lib/modules/4.13.4-1-ARCH/build'
/sbin/make -C $PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= postbuild
make[1]: Entering directory '/tmp/modconfig-QDoJy1/vmnet-only'
make[1]: 'postbuild' is up to date.
make[1]: Leaving directory '/tmp/modconfig-QDoJy1/vmnet-only'
cp -f vmnet.ko ./../vmnet.o
make: Leaving directory '/tmp/modconfig-QDoJy1/vmnet-only'
Starting VMware services:
Virtual machine monitor done
Virtual machine communication interface failed
VM communication interface socket family done
Blocking file system done
Virtual ethernet done
VMware Authentication Daemon done
Unable to start services
==> error: Unable to build. See:
* /tmp/vmware-root/vmware-modconfig*.log

rains commented on 2017-10-08 10:11

for 12.5.7 users, you can manually make vmware-patch_12.5.7-3 package by following commands.
% git clone https://aur.archlinux.org/vmware-patch.git
% cd vmware-patch
% git checkout 34468bb29eb613538bc180ef39a3ecf37fd54393
% makepkg -Cf
% yaourt -U vmware-patch-12.5.7-3-x86_64.pkg.tar.xz

rains commented on 2017-10-06 09:22

I've no idea what the problem is. @Trevelian @mkasu.
can you provide some more detailed information for me?

% find /usr/lib/vmware/modules -type f -exec md5sum {} \;
bfc389fa366678071600b998e8333a58 /usr/lib/vmware/modules/modules.xml
36727e319ce5379e5227f618401fd313 /usr/lib/vmware/modules/patches/vmblock-11.1.2-4.2.patch
0d7c84c3b611bedce3303c24aa666c64 /usr/lib/vmware/modules/patches/vmci-10.0.4-3.14.patch
0a8dbce269c7ac34a63453435a4a9fad /usr/lib/vmware/modules/patches/vmci-10.0.6-3.19.patch
d5ba75849a3946851506ecbaa9ff3bb5 /usr/lib/vmware/modules/patches/vmci-10.0.6-4.0.patch
133f3ba5c19ceb00a4ae8f44dc08352a /usr/lib/vmware/modules/patches/vmci-12.0.0-4.2.patch
ced58cf32a21adfe21d612366c52116a /usr/lib/vmware/modules/patches/vmci-14.0.0-4.13.3.patch
4eca49060d2373c259a0c045520de9f9 /usr/lib/vmware/modules/patches/vmmon-10.0.4-3.14.patch
298e1b59a9e729525cc3fa9d06f127eb /usr/lib/vmware/modules/patches/vmmon-10.0.5-3.14.patch
905d6daa87b314e541eec00ca4f927c6 /usr/lib/vmware/modules/patches/vmmon-11.1.2-4.2.patch
7acdc91c88c64d55bd775d2fcdc1b242 /usr/lib/vmware/modules/patches/vmmon-12.5.2-4.9.patch
3c165edb6847fc9bfa04657f346ac4cc /usr/lib/vmware/modules/patches/vmmon-12.5.7-4.13.3.patch
3c165edb6847fc9bfa04657f346ac4cc /usr/lib/vmware/modules/patches/vmmon-14.0.0-4.13.3.patch
d980b5092aeee55edc6dbafb843d886f /usr/lib/vmware/modules/patches/vmnet-10.0.1-3.13.patch
acd25c0daccb62af8abf750e6369ae25 /usr/lib/vmware/modules/patches/vmnet-10.0.4-3.14.patch
43dee79cc5f5980372e16a20962b3105 /usr/lib/vmware/modules/patches/vmnet-10.0.6-3.17.patch
350679df90d266fe7dd343922622c39e /usr/lib/vmware/modules/patches/vmnet-11.1.0-3.19.patch
2c1d8433b698376c228e650741ba6be5 /usr/lib/vmware/modules/patches/vmnet-11.1.2-4.2.patch
5eb0567825f0dea3d7c9f21038463de9 /usr/lib/vmware/modules/patches/vmnet-12.5.2-4.9.patch
eca2542e4c484ea2ca06b7e9c065b8af /usr/lib/vmware/modules/patches/vmnet-12.5.7-4.13.3.patch
a2c3e2bbbe6dcbf66737a5e33df5b892 /usr/lib/vmware/modules/patches/vmnet-12.5.7-4.13.patch
eca2542e4c484ea2ca06b7e9c065b8af /usr/lib/vmware/modules/patches/vmnet-14.0.0-4.13.3.patch
86a889febd9bdf88e458244195d604a4 /usr/lib/vmware/modules/patches/vsock-10.0.4-3.14.patch
1893542f8144aa0bb96f5433b9c34158 /usr/lib/vmware/modules/patches/vsock-10.0.6-3.15.patch
2dbd8389e1a275ea734dcedba8510df1 /usr/lib/vmware/modules/patches/vsock-10.0.6-3.19.patch
a176c9e7f6fb0a994249dcbb47390040 /usr/lib/vmware/modules/patches/vsock-10.0.6-4.1.patch
1e264a2aa92c8786e87bda86026f7e4c /usr/lib/vmware/modules/patches/vsock-11.1.2-4.2.patch
79cf7c3573e90fa81cba2bc13115d98e /usr/lib/vmware/modules/source/vmblock.tar
383c513657758f98cafdc0fd7a153e0a /usr/lib/vmware/modules/source/vmci.tar
153a5c90e0a5212c79245dea8e5118bb /usr/lib/vmware/modules/source/vmmon.tar
7d2fe9a134c6cd566da724b65d480449 /usr/lib/vmware/modules/source/vmnet.tar
e21e0553e46623c764bbd630657a6270 /usr/lib/vmware/modules/source/vsock.tar
79cf7c3573e90fa81cba2bc13115d98e /usr/lib/vmware/modules/source-14.0.0/vmblock.tar
19f0c57fb59452d344061a1e09261ee9 /usr/lib/vmware/modules/source-14.0.0/vmci.tar
aa913e6700ffda1bbe73762ff097adcd /usr/lib/vmware/modules/source-14.0.0/vmmon.tar
6b31756745a5ff3f27a7e28279bdfe04 /usr/lib/vmware/modules/source-14.0.0/vmnet.tar
e21e0553e46623c764bbd630657a6270 /usr/lib/vmware/modules/source-14.0.0/vsock.tar

% LC_ALL=C sudo vmware-patch -f -v
==> Patching VMware Workstation v14.0.0 for kernel 4.13.4-1-ARCH..
-> [vmci]
-> Extracting archives..
-> Patching..
patching file vmci-only/linux/driver.c
patching file vmci-only/linux/vmciKernelIf.c
patching file vmci-only/shared/compat_module.h
patching file vmci-only/shared/vm_device_version.h
patching file vmci-only/shared/vmci_kernel_if.h
-> Recreating archives..
-> [vmmon]
-> Extracting archives..
-> Patching..
patching file vmmon-only/linux/hostif.c
Hunk #1 succeeded at 93 with fuzz 2 (offset -6 lines).
Hunk #2 succeeded at 1547 (offset -78 lines).
-> Recreating archives..
-> [vmnet]
-> Extracting archives..
-> Patching..
patching file vmnet-only/userif.c
-> Recreating archives..
==> Installing modules..
[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-EA35YX/vmmon-only'
Using kernel build system.
/sbin/make -C /lib/modules/4.13.4-1-ARCH/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/lib/modules/4.13.4-1-ARCH/build'
CC [M] /tmp/modconfig-EA35YX/vmmon-only/linux/driverLog.o
CC [M] /tmp/modconfig-EA35YX/vmmon-only/linux/driver.o
CC [M] /tmp/modconfig-EA35YX/vmmon-only/linux/hostif.o
CC [M] /tmp/modconfig-EA35YX/vmmon-only/common/memtrack.o
CC [M] /tmp/modconfig-EA35YX/vmmon-only/common/apic.o
CC [M] /tmp/modconfig-EA35YX/vmmon-only/common/hashFunc.o
CC [M] /tmp/modconfig-EA35YX/vmmon-only/common/vmx86.o
CC [M] /tmp/modconfig-EA35YX/vmmon-only/common/cpuid.o
CC [M] /tmp/modconfig-EA35YX/vmmon-only/common/task.o
CC [M] /tmp/modconfig-EA35YX/vmmon-only/common/comport.o
CC [M] /tmp/modconfig-EA35YX/vmmon-only/common/phystrack.o
In file included from /tmp/modconfig-EA35YX/vmmon-only/common/vmx86.h:32:0,
from /tmp/modconfig-EA35YX/vmmon-only/common/vmx86.c:43:
/tmp/modconfig-EA35YX/vmmon-only/./include/x86msr.h:115:0: 警告:“MSR_MISC_FEATURES_ENABLES”重定义
#define MSR_MISC_FEATURES_ENABLES 0x140

In file included from ./arch/x86/include/asm/msr.h:4:0,
from ./arch/x86/include/asm/processor.h:20,
from ./arch/x86/include/asm/cpufeature.h:4,
from ./arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:37,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:80,
from ./include/linux/rcupdate.h:40,
from ./include/linux/rculist.h:10,
from ./include/linux/pid.h:4,
from ./include/linux/sched.h:13,
from /tmp/modconfig-EA35YX/vmmon-only/common/vmx86.c:31:
./arch/x86/include/asm/msr-index.h:569:0: 附注:这是先前定义的位置
#define MSR_MISC_FEATURES_ENABLES 0x00000140

In file included from /tmp/modconfig-EA35YX/vmmon-only/./include/vm_asm_x86.h:41:0,
from /tmp/modconfig-EA35YX/vmmon-only/./include/vm_asm_x86_64.h:40,
from /tmp/modconfig-EA35YX/vmmon-only/./include/vm_asm.h:46,
from /tmp/modconfig-EA35YX/vmmon-only/common/vmx86.c:46:
/tmp/modconfig-EA35YX/vmmon-only/./include/x86_basic_defs.h:78:0: 警告:“CR3_PCID_MASK”重定义
#define CR3_PCID_MASK 0xFFF

In file included from ./arch/x86/include/asm/irqflags.h:4:0,
from ./include/linux/irqflags.h:15,
from ./include/linux/rcupdate.h:39,
from ./include/linux/rculist.h:10,
from ./include/linux/pid.h:4,
from ./include/linux/sched.h:13,
from /tmp/modconfig-EA35YX/vmmon-only/common/vmx86.c:31:
./arch/x86/include/asm/processor-flags.h:37:0: 附注:这是先前定义的位置
#define CR3_PCID_MASK 0xFFFull

CC [M] /tmp/modconfig-EA35YX/vmmon-only/vmcore/moduleloop.o
CC [M] /tmp/modconfig-EA35YX/vmmon-only/bootstrap/monLoaderVmmon.o
In file included from ./arch/x86/include/asm/processor.h:4:0,
from ./arch/x86/include/asm/cpufeature.h:4,
from ./arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:37,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:80,
from ./include/linux/spinlock.h:50,
from ./arch/x86/include/asm/mmu.h:4,
from ./arch/x86/include/asm/desc.h:6,
from /tmp/modconfig-EA35YX/vmmon-only/common/task.c:70:
./arch/x86/include/asm/processor-flags.h:37:0: 警告:“CR3_PCID_MASK”重定义
#define CR3_PCID_MASK 0xFFFull

In file included from /tmp/modconfig-EA35YX/vmmon-only/./include/vm_asm_x86.h:41:0,
from /tmp/modconfig-EA35YX/vmmon-only/./include/vm_asm_x86_64.h:40,
from /tmp/modconfig-EA35YX/vmmon-only/./include/vm_asm.h:46,
from /tmp/modconfig-EA35YX/vmmon-only/common/task.c:53:
/tmp/modconfig-EA35YX/vmmon-only/./include/x86_basic_defs.h:78:0: 附注:这是先前定义的位置
#define CR3_PCID_MASK 0xFFF

In file included from ./arch/x86/include/asm/msr.h:4:0,
from ./arch/x86/include/asm/processor.h:20,
from ./arch/x86/include/asm/cpufeature.h:4,
from ./arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:37,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:80,
from ./include/linux/spinlock.h:50,
from ./arch/x86/include/asm/mmu.h:4,
from ./arch/x86/include/asm/desc.h:6,
from /tmp/modconfig-EA35YX/vmmon-only/common/task.c:70:
./arch/x86/include/asm/msr-index.h:569:0: 警告:“MSR_MISC_FEATURES_ENABLES”重定义
#define MSR_MISC_FEATURES_ENABLES 0x00000140

In file included from /tmp/modconfig-EA35YX/vmmon-only/common/vmx86.h:32:0,
from /tmp/modconfig-EA35YX/vmmon-only/common/task.c:51:
/tmp/modconfig-EA35YX/vmmon-only/./include/x86msr.h:115:0: 附注:这是先前定义的位置
#define MSR_MISC_FEATURES_ENABLES 0x140

CC [M] /tmp/modconfig-EA35YX/vmmon-only/bootstrap/monLoader.o
In file included from /tmp/modconfig-EA35YX/vmmon-only/./include/vm_asm.h:43:0,
from /tmp/modconfig-EA35YX/vmmon-only/linux/hostif.c:60:
/tmp/modconfig-EA35YX/vmmon-only/./include/x86msr.h:115:0: 警告:“MSR_MISC_FEATURES_ENABLES”重定义
#define MSR_MISC_FEATURES_ENABLES 0x140

In file included from ./arch/x86/include/asm/msr.h:4:0,
from ./arch/x86/include/asm/processor.h:20,
from ./arch/x86/include/asm/cpufeature.h:4,
from ./arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:37,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:80,
from ./include/linux/rcupdate.h:40,
from ./include/linux/rculist.h:10,
from ./include/linux/pid.h:4,
from ./include/linux/sched.h:13,
from ./include/linux/binfmts.h:4,
from /tmp/modconfig-EA35YX/vmmon-only/linux/hostif.c:32:
./arch/x86/include/asm/msr-index.h:569:0: 附注:这是先前定义的位置
#define MSR_MISC_FEATURES_ENABLES 0x00000140

In file included from /tmp/modconfig-EA35YX/vmmon-only/./include/vm_asm_x86.h:41:0,
from /tmp/modconfig-EA35YX/vmmon-only/./include/vm_asm_x86_64.h:40,
from /tmp/modconfig-EA35YX/vmmon-only/./include/vm_asm.h:46,
from /tmp/modconfig-EA35YX/vmmon-only/linux/hostif.c:60:
/tmp/modconfig-EA35YX/vmmon-only/./include/x86_basic_defs.h:78:0: 警告:“CR3_PCID_MASK”重定义
#define CR3_PCID_MASK 0xFFF

In file included from ./arch/x86/include/asm/irqflags.h:4:0,
from ./include/linux/irqflags.h:15,
from ./include/linux/rcupdate.h:39,
from ./include/linux/rculist.h:10,
from ./include/linux/pid.h:4,
from ./include/linux/sched.h:13,
from ./include/linux/binfmts.h:4,
from /tmp/modconfig-EA35YX/vmmon-only/linux/hostif.c:32:
./arch/x86/include/asm/processor-flags.h:37:0: 附注:这是先前定义的位置
#define CR3_PCID_MASK 0xFFFull

In file included from /tmp/modconfig-EA35YX/vmmon-only/./common/vmx86.h:32:0,
from /tmp/modconfig-EA35YX/vmmon-only/linux/driver.h:32,
from /tmp/modconfig-EA35YX/vmmon-only/linux/driver.c:47:
/tmp/modconfig-EA35YX/vmmon-only/./include/x86msr.h:115:0: 警告:“MSR_MISC_FEATURES_ENABLES”重定义
#define MSR_MISC_FEATURES_ENABLES 0x140

In file included from ./arch/x86/include/asm/msr.h:4:0,
from ./arch/x86/include/asm/processor.h:20,
from ./arch/x86/include/asm/cpufeature.h:4,
from ./arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:37,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:80,
from ./include/linux/spinlock.h:50,
from ./include/linux/wait.h:8,
from ./include/linux/wait_bit.h:7,
from ./include/linux/fs.h:5,
from ./include/linux/highmem.h:4,
from /tmp/modconfig-EA35YX/vmmon-only/linux/driver.c:25:
./arch/x86/include/asm/msr-index.h:569:0: 附注:这是先前定义的位置
#define MSR_MISC_FEATURES_ENABLES 0x00000140

In file included from /tmp/modconfig-EA35YX/vmmon-only/./include/vm_asm_x86.h:41:0,
from /tmp/modconfig-EA35YX/vmmon-only/./include/vm_asm_x86_64.h:40,
from /tmp/modconfig-EA35YX/vmmon-only/./include/vm_asm.h:46,
from /tmp/modconfig-EA35YX/vmmon-only/linux/driver.c:49:
/tmp/modconfig-EA35YX/vmmon-only/./include/x86_basic_defs.h:78:0: 警告:“CR3_PCID_MASK”重定义
#define CR3_PCID_MASK 0xFFF

In file included from ./arch/x86/include/asm/processor.h:4:0,
from ./arch/x86/include/asm/cpufeature.h:4,
from ./arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:37,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:80,
from ./include/linux/spinlock.h:50,
from ./include/linux/wait.h:8,
from ./include/linux/wait_bit.h:7,
from ./include/linux/fs.h:5,
from ./include/linux/highmem.h:4,
from /tmp/modconfig-EA35YX/vmmon-only/linux/driver.c:25:
./arch/x86/include/asm/processor-flags.h:37:0: 附注:这是先前定义的位置
#define CR3_PCID_MASK 0xFFFull

/tmp/modconfig-EA35YX/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Remove()+0x1a: unknown stack-related register move
/tmp/modconfig-EA35YX/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Remove()+0x0: stack state mismatch: cfa1=6+16 cfa2=7+8
CC [M] /tmp/modconfig-EA35YX/vmmon-only/bootstrap/bootstrap.o
/tmp/modconfig-EA35YX/vmmon-only/linux/driver.c:981:1: 警告:always_inline function might not be inlinable [-Wattributes]
LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max - TSC min
^~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/modconfig-EA35YX/vmmon-only/./common/vmx86.h:32:0,
from /tmp/modconfig-EA35YX/vmmon-only/vmcore/moduleloop.c:35:
/tmp/modconfig-EA35YX/vmmon-only/./include/x86msr.h:115:0: 警告:“MSR_MISC_FEATURES_ENABLES”重定义
#define MSR_MISC_FEATURES_ENABLES 0x140

In file included from ./arch/x86/include/asm/msr.h:4:0,
from ./arch/x86/include/asm/processor.h:20,
from ./arch/x86/include/asm/cpufeature.h:4,
from ./arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:37,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:80,
from ./include/linux/rcupdate.h:40,
from ./include/linux/rculist.h:10,
from ./include/linux/pid.h:4,
from ./include/linux/sched.h:13,
from /tmp/modconfig-EA35YX/vmmon-only/vmcore/moduleloop.c:31:
./arch/x86/include/asm/msr-index.h:569:0: 附注:这是先前定义的位置
#define MSR_MISC_FEATURES_ENABLES 0x00000140

/tmp/modconfig-EA35YX/vmmon-only/bootstrap/monLoaderVmmon.o: warning: objtool: MonLoaderCallout_MapMPNInPTE()+0x10: unknown stack-related register move
/tmp/modconfig-EA35YX/vmmon-only/bootstrap/monLoaderVmmon.o: warning: objtool: MonLoaderCallout_MapMPNInPTE()+0x0: stack state mismatch: cfa1=6+16 cfa2=7+8
/tmp/modconfig-EA35YX/vmmon-only/bootstrap/monLoaderVmmon.o: warning: objtool: MonLoaderCallout_CopyFromBlob()+0x19: unknown stack-related register move
/tmp/modconfig-EA35YX/vmmon-only/bootstrap/monLoaderVmmon.o: warning: objtool: MonLoaderCallout_CopyFromBlob()+0x0: stack state mismatch: cfa1=6+16 cfa2=7+8
/tmp/modconfig-EA35YX/vmmon-only/bootstrap/monLoaderVmmon.o: warning: objtool: MonLoaderCallout_IsPrivileged()+0xb: unknown stack-related register move
/tmp/modconfig-EA35YX/vmmon-only/bootstrap/monLoaderVmmon.o: warning: objtool: MonLoaderCallout_IsPrivileged()+0x0: stack state mismatch: cfa1=6+16 cfa2=7+8
/tmp/modconfig-EA35YX/vmmon-only/bootstrap/monLoaderVmmon.o: warning: objtool: .text: unexpected end of section
/tmp/modconfig-EA35YX/vmmon-only/common/vmx86.o: warning: objtool: Vmx86GetMSR()+0x6: unknown stack-related register move
/tmp/modconfig-EA35YX/vmmon-only/common/vmx86.o: warning: objtool: Vmx86GetMSR()+0x0: stack state mismatch: cfa1=6+16 cfa2=7+8
LD [M] /tmp/modconfig-EA35YX/vmmon-only/vmmon.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/modconfig-EA35YX/vmmon-only/vmmon.mod.o
LD [M] /tmp/modconfig-EA35YX/vmmon-only/vmmon.ko
make[1]: Leaving directory '/usr/lib/modules/4.13.4-1-ARCH/build'
/sbin/make -C $PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= postbuild
make[1]: Entering directory '/tmp/modconfig-EA35YX/vmmon-only'
make[1]: 'postbuild' is up to date.
make[1]: Leaving directory '/tmp/modconfig-EA35YX/vmmon-only'
cp -f vmmon.ko ./../vmmon.o
make: Leaving directory '/tmp/modconfig-EA35YX/vmmon-only'
make: Entering directory '/tmp/modconfig-EA35YX/vmnet-only'
Using kernel build system.
/sbin/make -C /lib/modules/4.13.4-1-ARCH/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/lib/modules/4.13.4-1-ARCH/build'
CC [M] /tmp/modconfig-EA35YX/vmnet-only/driver.o
CC [M] /tmp/modconfig-EA35YX/vmnet-only/hub.o
CC [M] /tmp/modconfig-EA35YX/vmnet-only/userif.o
CC [M] /tmp/modconfig-EA35YX/vmnet-only/netif.o
CC [M] /tmp/modconfig-EA35YX/vmnet-only/bridge.o
CC [M] /tmp/modconfig-EA35YX/vmnet-only/procfs.o
CC [M] /tmp/modconfig-EA35YX/vmnet-only/smac_compat.o
CC [M] /tmp/modconfig-EA35YX/vmnet-only/smac.o
CC [M] /tmp/modconfig-EA35YX/vmnet-only/vnetEvent.o
In file included from ./include/linux/pci.h:36:0,
from /tmp/modconfig-EA35YX/vmnet-only/compat_netdevice.h:27,
from /tmp/modconfig-EA35YX/vmnet-only/netif.c:43:
./include/linux/pci_ids.h:2260:0: 警告:“PCI_VENDOR_ID_VMWARE”重定义
#define PCI_VENDOR_ID_VMWARE 0x15ad

In file included from /tmp/modconfig-EA35YX/vmnet-only/net.h:38:0,
from /tmp/modconfig-EA35YX/vmnet-only/vnetInt.h:26,
from /tmp/modconfig-EA35YX/vmnet-only/netif.c:42:
/tmp/modconfig-EA35YX/vmnet-only/vm_device_version.h:56:0: 附注:这是先前定义的位置
#define PCI_VENDOR_ID_VMWARE 0x15AD

In file included from ./include/linux/pci.h:36:0,
from /tmp/modconfig-EA35YX/vmnet-only/compat_netdevice.h:27,
from /tmp/modconfig-EA35YX/vmnet-only/netif.c:43:
./include/linux/pci_ids.h:2261:0: 警告:“PCI_DEVICE_ID_VMWARE_VMXNET3”重定义
#define PCI_DEVICE_ID_VMWARE_VMXNET3 0x07b0

In file included from /tmp/modconfig-EA35YX/vmnet-only/net.h:38:0,
from /tmp/modconfig-EA35YX/vmnet-only/vnetInt.h:26,
from /tmp/modconfig-EA35YX/vmnet-only/netif.c:42:
/tmp/modconfig-EA35YX/vmnet-only/vm_device_version.h:73:0: 附注:这是先前定义的位置
#define PCI_DEVICE_ID_VMWARE_VMXNET3 0x07B0

CC [M] /tmp/modconfig-EA35YX/vmnet-only/vnetUserListener.o
In file included from /tmp/modconfig-EA35YX/vmnet-only/net.h:38:0,
from /tmp/modconfig-EA35YX/vmnet-only/vnetInt.h:26,
from /tmp/modconfig-EA35YX/vmnet-only/bridge.c:53:
/tmp/modconfig-EA35YX/vmnet-only/vm_device_version.h:56:0: 警告:“PCI_VENDOR_ID_VMWARE”重定义
#define PCI_VENDOR_ID_VMWARE 0x15AD

In file included from ./include/linux/pci.h:36:0,
from /tmp/modconfig-EA35YX/vmnet-only/compat_netdevice.h:27,
from /tmp/modconfig-EA35YX/vmnet-only/bridge.c:52:
./include/linux/pci_ids.h:2260:0: 附注:这是先前定义的位置
#define PCI_VENDOR_ID_VMWARE 0x15ad

In file included from /tmp/modconfig-EA35YX/vmnet-only/net.h:38:0,
from /tmp/modconfig-EA35YX/vmnet-only/vnetInt.h:26,
from /tmp/modconfig-EA35YX/vmnet-only/bridge.c:53:
/tmp/modconfig-EA35YX/vmnet-only/vm_device_version.h:73:0: 警告:“PCI_DEVICE_ID_VMWARE_VMXNET3”重定义
#define PCI_DEVICE_ID_VMWARE_VMXNET3 0x07B0

In file included from ./include/linux/pci.h:36:0,
from /tmp/modconfig-EA35YX/vmnet-only/compat_netdevice.h:27,
from /tmp/modconfig-EA35YX/vmnet-only/bridge.c:52:
./include/linux/pci_ids.h:2261:0: 附注:这是先前定义的位置
#define PCI_DEVICE_ID_VMWARE_VMXNET3 0x07b0

LD [M] /tmp/modconfig-EA35YX/vmnet-only/vmnet.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/modconfig-EA35YX/vmnet-only/vmnet.mod.o
LD [M] /tmp/modconfig-EA35YX/vmnet-only/vmnet.ko
make[1]: Leaving directory '/usr/lib/modules/4.13.4-1-ARCH/build'
/sbin/make -C $PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= postbuild
make[1]: Entering directory '/tmp/modconfig-EA35YX/vmnet-only'
make[1]: 'postbuild' is up to date.
make[1]: Leaving directory '/tmp/modconfig-EA35YX/vmnet-only'
cp -f vmnet.ko ./../vmnet.o
make: Leaving directory '/tmp/modconfig-EA35YX/vmnet-only'
make: Entering directory '/tmp/modconfig-EA35YX/vmci-only'
Using kernel build system.
/sbin/make -C /lib/modules/4.13.4-1-ARCH/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/lib/modules/4.13.4-1-ARCH/build'
CC [M] /tmp/modconfig-EA35YX/vmci-only/linux/driver.o
CC [M] /tmp/modconfig-EA35YX/vmci-only/linux/vmciKernelIf.o
CC [M] /tmp/modconfig-EA35YX/vmci-only/common/vmciDriver.o
CC [M] /tmp/modconfig-EA35YX/vmci-only/common/vmciResource.o
CC [M] /tmp/modconfig-EA35YX/vmci-only/common/vmciRoute.o
CC [M] /tmp/modconfig-EA35YX/vmci-only/common/vmciContext.o
CC [M] /tmp/modconfig-EA35YX/vmci-only/common/vmciDatagram.o
CC [M] /tmp/modconfig-EA35YX/vmci-only/common/vmciHashtable.o
CC [M] /tmp/modconfig-EA35YX/vmci-only/common/vmciEvent.o
CC [M] /tmp/modconfig-EA35YX/vmci-only/common/vmciQueuePair.o
In file included from /tmp/modconfig-EA35YX/vmci-only/linux/driver.c:62:0:
/tmp/modconfig-EA35YX/vmci-only/./shared/vm_device_version.h:75:0: 警告:“PCI_DEVICE_ID_VMWARE_VMXNET3”重定义
#define PCI_DEVICE_ID_VMWARE_VMXNET3 0x07B0

In file included from ./include/linux/pci.h:36:0,
from /tmp/modconfig-EA35YX/vmci-only/./shared/compat_pci.h:27,
from /tmp/modconfig-EA35YX/vmci-only/linux/driver.c:51:
./include/linux/pci_ids.h:2261:0: 附注:这是先前定义的位置
#define PCI_DEVICE_ID_VMWARE_VMXNET3 0x07b0

CC [M] /tmp/modconfig-EA35YX/vmci-only/common/vmciQPair.o
In file included from /tmp/modconfig-EA35YX/vmci-only/./shared/vmci_defs.h:33:0,
from /tmp/modconfig-EA35YX/vmci-only/./shared/vmci_iocontrols.h:36,
from /tmp/modconfig-EA35YX/vmci-only/linux/vmciKernelIf.c:63:
/tmp/modconfig-EA35YX/vmci-only/./shared/vm_basic_defs.h:759:0: 警告:“DO_ONCE”重定义
#define DO_ONCE(code) \

In file included from ./include/linux/random.h:10:0,
from ./include/linux/net.h:22,
from ./include/linux/skbuff.h:29,
from /tmp/modconfig-EA35YX/vmci-only/linux/vmciKernelIf.c:43:
./include/linux/once.h:37:0: 附注:这是先前定义的位置
#define DO_ONCE(func, ...) \

CC [M] /tmp/modconfig-EA35YX/vmci-only/common/vmciDoorbell.o
CC [M] /tmp/modconfig-EA35YX/vmci-only/driverLog.o
LD [M] /tmp/modconfig-EA35YX/vmci-only/vmci.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/modconfig-EA35YX/vmci-only/vmci.mod.o
LD [M] /tmp/modconfig-EA35YX/vmci-only/vmci.ko
make[1]: Leaving directory '/usr/lib/modules/4.13.4-1-ARCH/build'
/sbin/make -C $PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= postbuild
make[1]: Entering directory '/tmp/modconfig-EA35YX/vmci-only'
make[1]: 'postbuild' is up to date.
make[1]: Leaving directory '/tmp/modconfig-EA35YX/vmci-only'
cp -f vmci.ko ./../vmci.o
make: Leaving directory '/tmp/modconfig-EA35YX/vmci-only'
Starting VMware services:
Virtual machine monitor done
Virtual machine communication interface done
VM communication interface socket family done
Blocking file system done
Virtual ethernet done
VMware Authentication Daemon done
Shared Memory Available done
-> Done.

Trevelian commented on 2017-10-05 12:55

"vmware-patch -f -v" is on error because Starting VMware services:
"Virtual machine communication interface failed"

# find /lib/modules -name 'vm*.ko'
/lib/modules/4.13.3-1-ARCH/misc/vmmon.ko
/lib/modules/4.13.3-1-ARCH/misc/vmnet.ko

mkasu commented on 2017-10-05 06:27

Does not work for me with VMWare Player 14.

At first, it wouldn't patch. Adding [[ $ver != 14.* ]] to line 149 in vmware-patch seemed to fix it. But then, it failed to start services (Virtual machine communication interface.)

edit: grammar

rains commented on 2017-10-05 00:19

i'm on vmware 14.0.0 and kernel 4.13.4. it works fine.
you may need manually remove the old "vmmon vmci vmnet" modules if you had "aur/vmware-workstation" package installed before.
% find /lib/modules -name 'vm*.ko'
/lib/modules/4.13.4-1-ARCH/misc/vmmon.ko
/lib/modules/4.13.4-1-ARCH/misc/vmnet.ko
/lib/modules/4.13.4-1-ARCH/misc/vmci.ko

please backup and remove other vm*.ko files other than the above files.

% sudo vmware-patch -f
==> Patching VMware Workstation v14.0.0 for kernel 4.13.4-1-ARCH..
-> [vmci]
-> [vmmon]
-> [vmnet]
==> Installing modules..
-> Done.

Fallback commented on 2017-10-04 17:25

can't build Virtual machine communication interface on on kernel 4.13 (failed)(tested with workstation 14)

(Failed to open device "/dev/vmci")

this doesn't help either:
https://wiki.archlinux.org/index.php/VMware#Kernel_modules_fail_to_build_on_Linux_4.13

any idea ?

Update: I reinstalled everything, linux kernel, vmware-workstation 14.bundle ,vmware-patch , systemctl enable vmware etc.. now it seems to work (with kernel 4.13) // no manual patching

rains commented on 2017-10-04 08:58

i'm sorry.
My laptop fell to the ground and got broken a few days ago, and my new system is ready just now.
I start working on this right away.
i will add @boetger's patches first. and then upgrade to vmware 14.0.
it wouldn't take a long time. please be patient.

boettger commented on 2017-10-03 11:38

I had to add another patch file for my 4.13.3 kernel to compile:
/lib/vmware/modules/patches/vmnet-12.5.7-4.13.3.patch:
--- vmnet-only/userif.c 2016-08-13 13:10:14.000000000 +0200
+++ vmnet-only/userif.c 2017-09-30 13:09:46.953073564 +0200
@@ -33,6 +33,7 @@
#include <linux/proc_fs.h>
#include <linux/sockios.h>
#include <linux/sched.h>
+#include <linux/sched/signal.h>
#include <linux/slab.h>
#include <linux/version.h>
#include <linux/wait.h>

boettger commented on 2017-10-03 11:36

/lib/vmware/modules/patches/vmmon-12.5.7-4.13.3.patch:

diff --git vmmon-only/linux/hostif.c vmmon-only/linux/hostif.c
--- vmmon-only/linux/hostif.c 2017-06-20 04:54:38.000000000 +0200
+++ vmmon-only/linux/hostif.c 2017-10-03 13:07:17.712521686 +0200
@@ -99,6 +99,37 @@
#include "vmmonInt.h"
#include "versioned_atomic.h"

+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 0)
+# define global_zone_page_state global_page_state
+#endif
+
+static unsigned long get_nr_slab_unreclaimable(void)
+{
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 13, 0)
+ return global_node_page_state(NR_SLAB_UNRECLAIMABLE);
+#else
+ return global_page_state(NR_SLAB_UNRECLAIMABLE);
+#endif
+}
+
+static unsigned long get_nr_unevictable(void)
+{
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)
+ return global_node_page_state(NR_UNEVICTABLE);
+#else
+ return global_page_state(NR_UNEVICTABLE);
+#endif
+}
+
+static unsigned long get_nr_anon_mapped(void)
+{
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)
+ return global_node_page_state(NR_ANON_MAPPED);
+ #else
+ return global_page_state(NR_ANON_PAGES);
+ #endif
+}
+
/*
* Determine if we can use high resolution timers.
*/
@@ -1594,16 +1625,11 @@
unsigned int reservedPages = MEMDEFAULTS_MIN_HOST_PAGES;
unsigned int hugePages = (vm == NULL) ? 0 :
BYTES_2_PAGES(vm->memInfo.hugePageBytes);
- unsigned int lockedPages = global_page_state(NR_PAGETABLE) +
- global_page_state(NR_SLAB_UNRECLAIMABLE) +
- global_page_state(NR_UNEVICTABLE) +
+ unsigned int lockedPages = global_zone_page_state(NR_PAGETABLE) +
+ get_nr_slab_unreclaimable() +
+ get_nr_unevictable() +
hugePages + reservedPages;
- unsigned int anonPages =
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)
- global_page_state(NR_ANON_MAPPED);
-#else
- global_page_state(NR_ANON_PAGES);
-#endif
+ unsigned int anonPages = get_nr_anon_mapped();
unsigned int swapPages = BYTES_2_PAGES(linuxState.swapSize);

if (anonPages > swapPages) {