mkubecek / vmware-host-modules

Patches needed to build VMware (Player and Workstation) host modules against recent kernels
GNU General Public License v2.0
2.31k stars 382 forks source link

Compilation error #234

Closed Dmitry-Chernikov closed 11 months ago

Dmitry-Chernikov commented 11 months ago

_System: Kernel: 6.5.0-14-generic x8664 bits: 64 compiler: N/A Desktop: Cinnamon 5.8.4 tk: GTK 3.24.33 wm: muffin dm: LightDM Distro: Linux Mint 21.2 Victoria base: Ubuntu 22.04 jammy

sudo apt install gcc build-essential linux-headers-generic linux-headers-$(uname -r) Чтение списков пакетов… Готово Построение дерева зависимостей… Готово Чтение информации о состоянии… Готово
Уже установлен пакет build-essential самой новой версии (12.9ubuntu3). Уже установлен пакет gcc самой новой версии (4:11.2.0-1ubuntu1). Уже установлен пакет linux-headers-6.5.0-14-generic самой новой версии (6.5.0-14.14~22.04.1). linux-headers-6.5.0-14-generic помечен как установленный вручную. Уже установлен пакет linux-headers-generic самой новой версии (5.15.0.91.88). Следующие пакеты устанавливались автоматически и больше не требуются: libdrm-amdgpu-radeon1 libllvm15.0.50401-amdgpu libstd-rust-1.66 linux-headers-5.15.0-87 linux-headers-5.15.0-87-generic linux-headers-5.15.0-88 linux-headers-5.15.0-88-generic linux-headers-5.15.0-89 linux-headers-5.15.0-89-generic linux-headers-6.2.0-34-generic linux-headers-6.2.0-35-generic linux-headers-6.2.0-36-generic linux-hwe-6.2-headers-6.2.0-34 linux-hwe-6.2-headers-6.2.0-35 linux-hwe-6.2-headers-6.2.0-36 linux-image-5.15.0-87-generic linux-image-5.15.0-88-generic linux-image-5.15.0-89-generic linux-image-6.2.0-34-generic linux-image-6.2.0-35-generic linux-image-6.2.0-36-generic linux-modules-5.15.0-87-generic linux-modules-5.15.0-88-generic linux-modules-5.15.0-89-generic linux-modules-6.2.0-34-generic linux-modules-6.2.0-35-generic linux-modules-6.2.0-36-generic linux-modules-extra-5.15.0-87-generic linux-modules-extra-5.15.0-88-generic linux-modules-extra-5.15.0-89-generic linux-modules-extra-6.2.0-34-generic linux-modules-extra-6.2.0-35-generic linux-modules-extra-6.2.0-36-generic python3-pycryptodome python3-pyxattr rtmpdump Для их удаления используйте «sudo apt autoremove». Обновлено 0 пакетов, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 7 пакетов не обновлено.

[sudo make
*-----------------------------------------------------------------------------
* Branch workstation-16.2.3 has been retired on 2022-08-11 and has not been
* receiving any updates since. Please switch to latest 16.x version
* available.
*
* Latest kernel version this branch is intended to work with is 5.19.
*-----------------------------------------------------------------------------
make -C vmmon-only 
make[1]: вход в каталог «/usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only»
Using kernel build system.
make -C /lib/modules/6.5.0-14-generic/build/include/.. M=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[2]: вход в каталог «/usr/src/linux-headers-6.5.0-14-generic»
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
  You are using:           gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
  CC [M]  /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/linux/driver.o
In file included from /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/./include/cpu_types.h:29,
                 from /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/./include/modulecall.h:33,
                 from /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/./common/vmx86.h:33,
                 from /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/linux/driver.h:32,
                 from /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/linux/driver.c:47:
/usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/./include/vm_basic_defs.h:753: warning: "DO_ONCE" redefined
  753 | #define DO_ONCE(code)                                                   \
      | 
In file included from ./include/linux/prandom.h:12,
                 from ./include/linux/random.h:153,
                 from ./include/linux/nodemask.h:97,
                 from ./include/linux/list_lru.h:12,
                 from ./include/linux/fs.h:13,
                 from ./include/linux/highmem.h:5,
                 from /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/linux/driver.c:25:
./include/linux/once.h:46: note: this is the location of the previous definition
   46 | #define DO_ONCE(func, ...)                                                   \
      | 
  CC [M]  /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/linux/driverLog.o
  CC [M]  /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/linux/hostif.o
In file included from /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/./include/cpu_types.h:29,
                 from /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/./include/modulecall.h:33,
                 from /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/linux/hostif.c:59:
/usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/./include/vm_basic_defs.h:753: warning: "DO_ONCE" redefined
  753 | #define DO_ONCE(code)                                                   \
      | 
In file included from ./include/linux/prandom.h:12,
                 from ./include/linux/random.h:153,
                 from ./include/linux/nodemask.h:97,
                 from ./include/linux/sched.h:23,
                 from ./include/linux/binfmts.h:5,
                 from /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/linux/hostif.c:31:
./include/linux/once.h:46: note: this is the location of the previous definition
   46 | #define DO_ONCE(func, ...)                                                   \
      | 
  CC [M]  /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/common/apic.o
  CC [M]  /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/common/comport.o
  CC [M]  /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/common/cpuid.o
  CC [M]  /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/common/crosspage.o
/usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/common/crosspage.o: warning: objtool: CrossPage_CodePage+0x1f7: 'naked' return found in RETHUNK build
  CC [M]  /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/common/memtrack.o
  CC [M]  /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/common/moduleloop.o
In file included from /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/./include/cpu_types.h:29,
                 from /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/./include/modulecall.h:33,
                 from /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/common/moduleloop.c:33:
/usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/./include/vm_basic_defs.h:753: warning: "DO_ONCE" redefined
  753 | #define DO_ONCE(code)                                                   \
      | 
In file included from ./include/linux/prandom.h:12,
                 from ./include/linux/random.h:153,
                 from ./include/linux/nodemask.h:97,
                 from ./include/linux/sched.h:23,
                 from /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/common/moduleloop.c:31:
./include/linux/once.h:46: note: this is the location of the previous definition
   46 | #define DO_ONCE(func, ...)                                                   \
      | 
  CC [M]  /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/common/phystrack.o
  CC [M]  /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/common/sharedAreaVmmon.o
  CC [M]  /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/common/statVarsVmmon.o
  CC [M]  /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/common/task.o
  CC [M]  /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/common/vmx86.o
In file included from /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/./include/cpu_types.h:29,
                 from /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/./include/modulecall.h:33,
                 from /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/common/vmx86.h:33,
                 from /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/common/vmx86.c:42:
/usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/./include/vm_basic_defs.h:753: warning: "DO_ONCE" redefined
  753 | #define DO_ONCE(code)                                                   \
      | 
In file included from ./include/linux/prandom.h:12,
                 from ./include/linux/random.h:153,
                 from ./include/linux/nodemask.h:97,
                 from ./include/linux/sched.h:23,
                 from /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/common/vmx86.c:31:
./include/linux/once.h:46: note: this is the location of the previous definition
   46 | #define DO_ONCE(func, ...)                                                   \
      | 
  CC [M]  /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/bootstrap/bootstrap.o
  CC [M]  /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/bootstrap/monLoader.o
  CC [M]  /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/bootstrap/monLoaderVmmon.o
  CC [M]  /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/bootstrap/vmmblob.o
  LD [M]  /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/vmmon.o
  MODPOST /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/Module.symvers
ERROR: modpost: "__pte_offset_map" [/usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/vmmon.ko] undefined!
make[4]: *** [scripts/Makefile.modpost:144: /usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only/Module.symvers] Ошибка 1
make[3]: *** [/usr/src/linux-headers-6.5.0-14-generic/Makefile:1989: modpost] Ошибка 2
make[2]: *** [Makefile:234: __sub-make] Ошибка 2
make[2]: выход из каталога «/usr/src/linux-headers-6.5.0-14-generic»
make[1]: *** [Makefile:117: vmmon.ko] Ошибка 2
make[1]: выход из каталога «/usr/lib/vmware/modules/source/vmware-host-modules/vmmon-only»
make: *** [Makefile:21: vmmon-only] Ошибка 2](`url`)
mkubecek commented 11 months ago

You have the answer right at the beginning:

*-----------------------------------------------------------------------------
* Branch workstation-16.2.3 has been retired on 2022-08-11 and has not been
* receiving any updates since. Please switch to latest 16.x version
* available.
*
* Latest kernel version this branch is intended to work with is 5.19.
*-----------------------------------------------------------------------------

In this case, upgrade to 16.2.5 and use branch workstation-16.2.5 which is supposed to work with kernels up to 6.7-rc5 (at the moment).