You are not logged in.
Hi
I was trying to install/build vmware player (12.5.7) on my arch system with a custom kernel I compiled myself (v. 4.13.1-1).
But it fails at the point were the vmware kernel modules need to be built against my kernel; if I see correctly only vmmon ist built, but nothing else (vmnet).
It does compile though, if I boot into the arch generic kernel (package "linux").
Anyone sees, what might be missing so that the compile fails with a custom kernel? How can I debug this in order to see what is missing in my slimmed down kernel?
Thanks for your help!
P.S.
Here is the compilation output: as you can see, only vmmon builds correctly:
vmplayer [12:11]
Gtk-Message: Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory
Gtk-Message: Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory
me='VMware'/3099-0-mybox_TIME0
gksu-run: 9e48d135867d062bb8541372d0b78d9a
Gtk-Message: Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory
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-Zzj7AI/vmmon-only'
Using kernel build system.
/sbin/make -C /lib/modules/4.13.1-1-custom/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/lib/modules/4.13.1-1-custom/build'
CC [M] /tmp/modconfig-Zzj7AI/vmmon-only/linux/driver.o
CC [M] /tmp/modconfig-Zzj7AI/vmmon-only/linux/driverLog.o
CC [M] /tmp/modconfig-Zzj7AI/vmmon-only/linux/hostif.o
CC [M] /tmp/modconfig-Zzj7AI/vmmon-only/common/memtrack.o
CC [M] /tmp/modconfig-Zzj7AI/vmmon-only/common/apic.o
CC [M] /tmp/modconfig-Zzj7AI/vmmon-only/common/vmx86.o
CC [M] /tmp/modconfig-Zzj7AI/vmmon-only/common/cpuid.o
CC [M] /tmp/modconfig-Zzj7AI/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-Zzj7AI/vmmon-only/common/task.c:67:
./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-Zzj7AI/vmmon-only/./include/vm_asm_x86.h:41:0,
from /tmp/modconfig-Zzj7AI/vmmon-only/./include/vm_asm_x86_64.h:39,
from /tmp/modconfig-Zzj7AI/vmmon-only/./include/vm_asm.h:46,
from /tmp/modconfig-Zzj7AI/vmmon-only/common/task.c:53:
/tmp/modconfig-Zzj7AI/vmmon-only/./include/x86_basic_defs.h:65:0: note: this is the location of the previous definition
#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-Zzj7AI/vmmon-only/common/task.c:67:
./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-Zzj7AI/vmmon-only/common/vmx86.h:32:0,
from /tmp/modconfig-Zzj7AI/vmmon-only/common/task.c:51:
/tmp/modconfig-Zzj7AI/vmmon-only/./include/x86msr.h:109:0: note: this is the location of the previous definition
#define MSR_MISC_FEATURES_ENABLES 0x140
CC [M] /tmp/modconfig-Zzj7AI/vmmon-only/common/hashFunc.o
CC [M] /tmp/modconfig-Zzj7AI/vmmon-only/common/comport.o
CC [M] /tmp/modconfig-Zzj7AI/vmmon-only/common/phystrack.o
In file included from /tmp/modconfig-Zzj7AI/vmmon-only/common/vmx86.h:32:0,
from /tmp/modconfig-Zzj7AI/vmmon-only/common/vmx86.c:43:
/tmp/modconfig-Zzj7AI/vmmon-only/./include/x86msr.h:109: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-Zzj7AI/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-Zzj7AI/vmmon-only/./include/vm_asm_x86.h:41:0,
from /tmp/modconfig-Zzj7AI/vmmon-only/./include/vm_asm_x86_64.h:39,
from /tmp/modconfig-Zzj7AI/vmmon-only/./include/vm_asm.h:46,
from /tmp/modconfig-Zzj7AI/vmmon-only/common/vmx86.c:46:
/tmp/modconfig-Zzj7AI/vmmon-only/./include/x86_basic_defs.h:65: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-Zzj7AI/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-Zzj7AI/vmmon-only/vmcore/moduleloop.o
/tmp/modconfig-Zzj7AI/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Remove()+0x1a: unknown stack-related register move
/tmp/modconfig-Zzj7AI/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Remove()+0x0: stack state mismatch: cfa1=6+16 cfa2=7+8
In file included from /tmp/modconfig-Zzj7AI/vmmon-only/./common/vmx86.h:32:0,
from /tmp/modconfig-Zzj7AI/vmmon-only/linux/driver.h:31,
from /tmp/modconfig-Zzj7AI/vmmon-only/linux/driver.c:48:
/tmp/modconfig-Zzj7AI/vmmon-only/./include/x86msr.h:109: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-Zzj7AI/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-Zzj7AI/vmmon-only/./include/vm_asm_x86.h:41:0,
from /tmp/modconfig-Zzj7AI/vmmon-only/./include/vm_asm_x86_64.h:39,
from /tmp/modconfig-Zzj7AI/vmmon-only/./include/vm_asm.h:46,
from /tmp/modconfig-Zzj7AI/vmmon-only/linux/driver.c:50:
/tmp/modconfig-Zzj7AI/vmmon-only/./include/x86_basic_defs.h:65: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-Zzj7AI/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
In file included from /tmp/modconfig-Zzj7AI/vmmon-only/./include/vm_asm.h:43:0,
from /tmp/modconfig-Zzj7AI/vmmon-only/linux/hostif.c:83:
/tmp/modconfig-Zzj7AI/vmmon-only/./include/x86msr.h:109: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/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /tmp/modconfig-Zzj7AI/vmmon-only/./include/compat_page.h:23,
from /tmp/modconfig-Zzj7AI/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-Zzj7AI/vmmon-only/./include/vm_asm_x86.h:41:0,
from /tmp/modconfig-Zzj7AI/vmmon-only/./include/vm_asm_x86_64.h:39,
from /tmp/modconfig-Zzj7AI/vmmon-only/./include/vm_asm.h:46,
from /tmp/modconfig-Zzj7AI/vmmon-only/linux/hostif.c:83:
/tmp/modconfig-Zzj7AI/vmmon-only/./include/x86_basic_defs.h:65: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/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /tmp/modconfig-Zzj7AI/vmmon-only/./include/compat_page.h:23,
from /tmp/modconfig-Zzj7AI/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-Zzj7AI/vmmon-only/linux/driver.c:1291:1: warning: always_inline function might not be inlinable [-Wattributes]
LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max - TSC min
^~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/modconfig-Zzj7AI/vmmon-only/./common/vmx86.h:32:0,
from /tmp/modconfig-Zzj7AI/vmmon-only/vmcore/moduleloop.c:35:
/tmp/modconfig-Zzj7AI/vmmon-only/./include/x86msr.h:109: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-Zzj7AI/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
LD [M] /tmp/modconfig-Zzj7AI/vmmon-only/vmmon.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/modconfig-Zzj7AI/vmmon-only/vmmon.mod.o
LD [M] /tmp/modconfig-Zzj7AI/vmmon-only/vmmon.ko
make[1]: Leaving directory '/usr/lib/modules/4.13.1-1-custom/build'
/sbin/make -C $PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= postbuild
make[1]: Entering directory '/tmp/modconfig-Zzj7AI/vmmon-only'
make[1]: 'postbuild' is up to date.
make[1]: Leaving directory '/tmp/modconfig-Zzj7AI/vmmon-only'
cp -f vmmon.ko ./../vmmon.o
make: Leaving directory '/tmp/modconfig-Zzj7AI/vmmon-only'
make: Entering directory '/tmp/modconfig-Zzj7AI/vmnet-only'
Using kernel build system.
/sbin/make -C /lib/modules/4.13.1-1-custom/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/lib/modules/4.13.1-1-custom/build'
CC [M] /tmp/modconfig-Zzj7AI/vmnet-only/driver.o
CC [M] /tmp/modconfig-Zzj7AI/vmnet-only/hub.o
CC [M] /tmp/modconfig-Zzj7AI/vmnet-only/userif.o
CC [M] /tmp/modconfig-Zzj7AI/vmnet-only/netif.o
CC [M] /tmp/modconfig-Zzj7AI/vmnet-only/bridge.o
CC [M] /tmp/modconfig-Zzj7AI/vmnet-only/procfs.o
CC [M] /tmp/modconfig-Zzj7AI/vmnet-only/smac_compat.o
CC [M] /tmp/modconfig-Zzj7AI/vmnet-only/smac.o
CC [M] /tmp/modconfig-Zzj7AI/vmnet-only/vnetEvent.o
CC [M] /tmp/modconfig-Zzj7AI/vmnet-only/vnetUserListener.o
In file included from ./include/linux/pci.h:36:0,
from /tmp/modconfig-Zzj7AI/vmnet-only/compat_netdevice.h:27,
from /tmp/modconfig-Zzj7AI/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-Zzj7AI/vmnet-only/net.h:38:0,
from /tmp/modconfig-Zzj7AI/vmnet-only/vnetInt.h:26,
from /tmp/modconfig-Zzj7AI/vmnet-only/netif.c:42:
/tmp/modconfig-Zzj7AI/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-Zzj7AI/vmnet-only/compat_netdevice.h:27,
from /tmp/modconfig-Zzj7AI/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-Zzj7AI/vmnet-only/net.h:38:0,
from /tmp/modconfig-Zzj7AI/vmnet-only/vnetInt.h:26,
from /tmp/modconfig-Zzj7AI/vmnet-only/netif.c:42:
/tmp/modconfig-Zzj7AI/vmnet-only/vm_device_version.h:73:0: note: this is the location of the previous definition
#define PCI_DEVICE_ID_VMWARE_VMXNET3 0x07B0
In file included from /tmp/modconfig-Zzj7AI/vmnet-only/net.h:38:0,
from /tmp/modconfig-Zzj7AI/vmnet-only/vnetInt.h:26,
from /tmp/modconfig-Zzj7AI/vmnet-only/bridge.c:52:
/tmp/modconfig-Zzj7AI/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-Zzj7AI/vmnet-only/compat_netdevice.h:27,
from /tmp/modconfig-Zzj7AI/vmnet-only/bridge.c:51:
./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-Zzj7AI/vmnet-only/net.h:38:0,
from /tmp/modconfig-Zzj7AI/vmnet-only/vnetInt.h:26,
from /tmp/modconfig-Zzj7AI/vmnet-only/bridge.c:52:
/tmp/modconfig-Zzj7AI/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-Zzj7AI/vmnet-only/compat_netdevice.h:27,
from /tmp/modconfig-Zzj7AI/vmnet-only/bridge.c:51:
./include/linux/pci_ids.h:2261:0: note: this is the location of the previous definition
#define PCI_DEVICE_ID_VMWARE_VMXNET3 0x07b0
/tmp/modconfig-Zzj7AI/vmnet-only/bridge.c: In function ‘VNetBridgeReceiveFromVNet’:
/tmp/modconfig-Zzj7AI/vmnet-only/bridge.c:639:14: error: passing argument 1 of ‘atomic_inc’ from incompatible pointer type [-Werror=incompatible-pointer-types]
atomic_inc(&clone->users);
^
In file included from ./include/linux/atomic.h:4:0,
from ./include/linux/rcupdate.h:38,
from ./include/linux/rculist.h:10,
from ./include/linux/pid.h:4,
from ./include/linux/sched.h:13,
from /tmp/modconfig-Zzj7AI/vmnet-only/bridge.c:25:
./arch/x86/include/asm/atomic.h:89:29: note: expected ‘atomic_t * {aka struct <anonymous> *}’ but argument is of type ‘refcount_t * {aka struct refcount_struct *}’
static __always_inline void atomic_inc(atomic_t *v)
^~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:302: /tmp/modconfig-Zzj7AI/vmnet-only/bridge.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1512: _module_/tmp/modconfig-Zzj7AI/vmnet-only] Error 2
make[1]: Leaving directory '/usr/lib/modules/4.13.1-1-custom/build'
make: *** [Makefile:120: vmnet.ko] Error 2
make: Leaving directory '/tmp/modconfig-Zzj7AI/vmnet-only'
make: Entering directory '/tmp/modconfig-Zzj7AI/vmci-only'
Using kernel build system.
/sbin/make -C /lib/modules/4.13.1-1-custom/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/lib/modules/4.13.1-1-custom/build'
CC [M] /tmp/modconfig-Zzj7AI/vmci-only/linux/driver.o
CC [M] /tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.o
CC [M] /tmp/modconfig-Zzj7AI/vmci-only/common/vmciDriver.o
CC [M] /tmp/modconfig-Zzj7AI/vmci-only/common/vmciResource.o
CC [M] /tmp/modconfig-Zzj7AI/vmci-only/common/vmciRoute.o
CC [M] /tmp/modconfig-Zzj7AI/vmci-only/common/vmciContext.o
CC [M] /tmp/modconfig-Zzj7AI/vmci-only/common/vmciDatagram.o
CC [M] /tmp/modconfig-Zzj7AI/vmci-only/common/vmciHashtable.o
CC [M] /tmp/modconfig-Zzj7AI/vmci-only/common/vmciEvent.o
CC [M] /tmp/modconfig-Zzj7AI/vmci-only/common/vmciQueuePair.o
In file included from /tmp/modconfig-Zzj7AI/vmci-only/linux/driver.c:60:0:
/tmp/modconfig-Zzj7AI/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:36:0,
from /tmp/modconfig-Zzj7AI/vmci-only/./shared/compat_pci.h:27,
from /tmp/modconfig-Zzj7AI/vmci-only/linux/driver.c:49:
./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-Zzj7AI/vmci-only/linux/driver.c:60:0:
/tmp/modconfig-Zzj7AI/vmci-only/./shared/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-Zzj7AI/vmci-only/./shared/compat_pci.h:27,
from /tmp/modconfig-Zzj7AI/vmci-only/linux/driver.c:49:
./include/linux/pci_ids.h:2261:0: note: this is the location of the previous definition
#define PCI_DEVICE_ID_VMWARE_VMXNET3 0x07b0
CC [M] /tmp/modconfig-Zzj7AI/vmci-only/common/vmciQPair.o
/tmp/modconfig-Zzj7AI/vmci-only/linux/driver.c: In function ‘VMCIUserVALockPage’:
/tmp/modconfig-Zzj7AI/vmci-only/linux/driver.c:1470: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:7:0,
from /tmp/modconfig-Zzj7AI/vmci-only/./shared/compat_highmem.h:22,
from /tmp/modconfig-Zzj7AI/vmci-only/linux/driver.c:41:
./include/linux/mm.h:1321: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-Zzj7AI/vmci-only/linux/driver.c:1470: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:7:0,
from /tmp/modconfig-Zzj7AI/vmci-only/./shared/compat_highmem.h:22,
from /tmp/modconfig-Zzj7AI/vmci-only/linux/driver.c:41:
./include/linux/mm.h:1321:6: note: declared here
long get_user_pages(unsigned long start, unsigned long nr_pages,
^~~~~~~~~~~~~~
/tmp/modconfig-Zzj7AI/vmci-only/linux/driver.c: In function ‘vmci_enable_msix’:
/tmp/modconfig-Zzj7AI/vmci-only/linux/driver.c:1725: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-Zzj7AI/vmci-only/linux/driver.c: In function ‘vmci_exit’:
/tmp/modconfig-Zzj7AI/vmci-only/linux/driver.c:2485:14: error: void value not ignored as it ought to be
retval = misc_deregister(&linuxState.misc);
^
/tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c: In function ‘VMCIHost_WaitForCallLocked’:
/tmp/modconfig-Zzj7AI/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-Zzj7AI/vmci-only/linux/vmciKernelIf.c: In function ‘__VMCIMemcpyToQueue’:
/tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c:1205: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
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:302: /tmp/modconfig-Zzj7AI/vmci-only/linux/driver.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c: In function ‘__VMCIMemcpyFromQueue’:
/tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c:1280: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
/tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c: In function ‘VMCIReleasePages’:
/tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c:1837: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-Zzj7AI/vmci-only/linux/vmciKernelIf.c: In function ‘VMCIHost_GetUserMemory’:
/tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c:2055: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-Zzj7AI/vmci-only/linux/vmciKernelIf.c:38:0:
./include/linux/mm.h:1321: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-Zzj7AI/vmci-only/linux/vmciKernelIf.c:2052:13: error: too many arguments to function ‘get_user_pages’
retval = get_user_pages((VA)produceUVA,
^~~~~~~~~~~~~~
In file included from /tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c:38:0:
./include/linux/mm.h:1321:6: note: declared here
long get_user_pages(unsigned long start, unsigned long nr_pages,
^~~~~~~~~~~~~~
In file included from ./include/linux/thread_info.h:20:0,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:80,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c:38:
./arch/x86/include/asm/current.h:17:17: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion]
#define current get_current()
^
/tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c:2073:28: note: in expansion of macro ‘current’
retval = get_user_pages(current,
^~~~~~~
In file included from /tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c:38:0:
./include/linux/mm.h:1321: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:20:0,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:80,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c:38:
./arch/x86/include/asm/current.h:17:17: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion]
#define current get_current()
^
/tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c:2074:28: note: in expansion of macro ‘current’
current->mm,
^~~~~~~
In file included from /tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c:38:0:
./include/linux/mm.h:1321: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-Zzj7AI/vmci-only/linux/vmciKernelIf.c:2076: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-Zzj7AI/vmci-only/linux/vmciKernelIf.c:38:0:
./include/linux/mm.h:1321: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-Zzj7AI/vmci-only/linux/vmciKernelIf.c:2077: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-Zzj7AI/vmci-only/linux/vmciKernelIf.c:38:0:
./include/linux/mm.h:1321: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-Zzj7AI/vmci-only/linux/vmciKernelIf.c:2073:13: error: too many arguments to function ‘get_user_pages’
retval = get_user_pages(current,
^~~~~~~~~~~~~~
In file included from /tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c:38:0:
./include/linux/mm.h:1321:6: note: declared here
long get_user_pages(unsigned long start, unsigned long nr_pages,
^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:302: /tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.o] Error 1
make[1]: *** [Makefile:1512: _module_/tmp/modconfig-Zzj7AI/vmci-only] Error 2
make[1]: Leaving directory '/usr/lib/modules/4.13.1-1-custom/build'
make: *** [Makefile:120: vmci.ko] Error 2
make: Leaving directory '/tmp/modconfig-Zzj7AI/vmci-only'
make: Entering directory '/tmp/modconfig-Zzj7AI/vmci-only'
Using kernel build system.
/sbin/make -C /lib/modules/4.13.1-1-custom/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/lib/modules/4.13.1-1-custom/build'
CC [M] /tmp/modconfig-Zzj7AI/vmci-only/linux/driver.o
CC [M] /tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.o
CC [M] /tmp/modconfig-Zzj7AI/vmci-only/common/vmciDoorbell.o
CC [M] /tmp/modconfig-Zzj7AI/vmci-only/driverLog.o
In file included from /tmp/modconfig-Zzj7AI/vmci-only/linux/driver.c:60:0:
/tmp/modconfig-Zzj7AI/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:36:0,
from /tmp/modconfig-Zzj7AI/vmci-only/./shared/compat_pci.h:27,
from /tmp/modconfig-Zzj7AI/vmci-only/linux/driver.c:49:
./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-Zzj7AI/vmci-only/linux/driver.c:60:0:
/tmp/modconfig-Zzj7AI/vmci-only/./shared/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-Zzj7AI/vmci-only/./shared/compat_pci.h:27,
from /tmp/modconfig-Zzj7AI/vmci-only/linux/driver.c:49:
./include/linux/pci_ids.h:2261:0: note: this is the location of the previous definition
#define PCI_DEVICE_ID_VMWARE_VMXNET3 0x07b0
/tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c: In function ‘VMCIHost_WaitForCallLocked’:
/tmp/modconfig-Zzj7AI/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-Zzj7AI/vmci-only/linux/driver.c: In function ‘VMCIUserVALockPage’:
/tmp/modconfig-Zzj7AI/vmci-only/linux/driver.c:1470: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:7:0,
from /tmp/modconfig-Zzj7AI/vmci-only/./shared/compat_highmem.h:22,
from /tmp/modconfig-Zzj7AI/vmci-only/linux/driver.c:41:
./include/linux/mm.h:1321: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-Zzj7AI/vmci-only/linux/driver.c:1470: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:7:0,
from /tmp/modconfig-Zzj7AI/vmci-only/./shared/compat_highmem.h:22,
from /tmp/modconfig-Zzj7AI/vmci-only/linux/driver.c:41:
./include/linux/mm.h:1321:6: note: declared here
long get_user_pages(unsigned long start, unsigned long nr_pages,
^~~~~~~~~~~~~~
/tmp/modconfig-Zzj7AI/vmci-only/linux/driver.c: In function ‘vmci_enable_msix’:
/tmp/modconfig-Zzj7AI/vmci-only/linux/driver.c:1725: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-Zzj7AI/vmci-only/linux/driver.c: In function ‘vmci_exit’:
/tmp/modconfig-Zzj7AI/vmci-only/linux/driver.c:2485:14: error: void value not ignored as it ought to be
retval = misc_deregister(&linuxState.misc);
^
/tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c: In function ‘__VMCIMemcpyToQueue’:
/tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c:1205: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-Zzj7AI/vmci-only/linux/vmciKernelIf.c: In function ‘__VMCIMemcpyFromQueue’:
/tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c:1280: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
make[2]: *** [scripts/Makefile.build:303: /tmp/modconfig-Zzj7AI/vmci-only/linux/driver.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c: In function ‘VMCIReleasePages’:
/tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c:1837: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-Zzj7AI/vmci-only/linux/vmciKernelIf.c: In function ‘VMCIHost_GetUserMemory’:
/tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c:2055: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-Zzj7AI/vmci-only/linux/vmciKernelIf.c:38:0:
./include/linux/mm.h:1321: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-Zzj7AI/vmci-only/linux/vmciKernelIf.c:2052:13: error: too many arguments to function ‘get_user_pages’
retval = get_user_pages((VA)produceUVA,
^~~~~~~~~~~~~~
In file included from /tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c:38:0:
./include/linux/mm.h:1321:6: note: declared here
long get_user_pages(unsigned long start, unsigned long nr_pages,
^~~~~~~~~~~~~~
In file included from ./include/linux/thread_info.h:20:0,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:80,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c:38:
./arch/x86/include/asm/current.h:17:17: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion]
#define current get_current()
^
/tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c:2073:28: note: in expansion of macro ‘current’
retval = get_user_pages(current,
^~~~~~~
In file included from /tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c:38:0:
./include/linux/mm.h:1321: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:20:0,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:80,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c:38:
./arch/x86/include/asm/current.h:17:17: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion]
#define current get_current()
^
/tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c:2074:28: note: in expansion of macro ‘current’
current->mm,
^~~~~~~
In file included from /tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c:38:0:
./include/linux/mm.h:1321: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-Zzj7AI/vmci-only/linux/vmciKernelIf.c:2076: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-Zzj7AI/vmci-only/linux/vmciKernelIf.c:38:0:
./include/linux/mm.h:1321: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-Zzj7AI/vmci-only/linux/vmciKernelIf.c:2077: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-Zzj7AI/vmci-only/linux/vmciKernelIf.c:38:0:
./include/linux/mm.h:1321: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-Zzj7AI/vmci-only/linux/vmciKernelIf.c:2073:13: error: too many arguments to function ‘get_user_pages’
retval = get_user_pages(current,
^~~~~~~~~~~~~~
In file included from /tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.c:38:0:
./include/linux/mm.h:1321:6: note: declared here
long get_user_pages(unsigned long start, unsigned long nr_pages,
^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:303: /tmp/modconfig-Zzj7AI/vmci-only/linux/vmciKernelIf.o] Error 1
make[1]: *** [Makefile:1512: _module_/tmp/modconfig-Zzj7AI/vmci-only] Error 2
make[1]: Leaving directory '/usr/lib/modules/4.13.1-1-custom/build'
make: *** [Makefile:120: vmci.ko] Error 2
make: Leaving directory '/tmp/modconfig-Zzj7AI/vmci-only'
Starting VMware services:
Virtual machine monitor done
Virtual machine communication interface failed
VM communication interface socket family failed
Blocking file system done
Virtual ethernet failed
VMware Authentication Daemon doneLast edited by gen2arch (2017-09-16 12:57:51)
Offline
I found the solution.
vmnet doesn't compile due to an error that ist related exactly to changes in the linux 4.13 kernel! --- the version I tried to compile it against.
Here is the solution, a one line patch:
https://communities.vmware.com/thread/568089
Also vmware related blog entries here:
I did the following:
pacman -S binwalk
binwalk -e VMware-Player-12.5.7-5813279.x86_64.bundle
tar xf vmnet.tar
cd vmnet-only
patch -p1 < VMware-Workstation-12.5.7-kernel4.13-atomic-inc.patch
"patching file bridge.c"
makeand with this patch the code actually compiles!
Offline
Unfortunately this was not the only problem:
"Virtual machine communication interface" and "VM communication interface socket family" won't compile either, and here the proposed solution in:
https://bbs.archlinux.org/viewtopic.php … 9#p1687809
didn't work!
Thanks
Last edited by gen2arch (2017-09-16 13:01:42)
Offline