VMware Communities
ehlebracht
Contributor
Contributor

[solved] vmware-modconfig is unable to install modules on Linux kernel 5.15.0-33 for Workstation 16

Hi,

I've updated to kernel 5.15.0-33 yesterday. Now Workstation 16.2.3 is unable to install modules for the running kernel:

vmware-modconfig --console --install-all

[AppLoader] GLib does not have GSettings support.
Stopping VMware services:
VMware Authentication Daemon done

...

Spoiler
[AppLoader] GLib does not have GSettings support.
Stopping VMware services:
VMware Authentication Daemon done
Virtual machine monitor done
make: Entering directory '/tmp/modconfig-93vViq/vmmon-only'
Using kernel build system.
/usr/bin/make -C /lib/modules/5.15.0-33-generic/build/include/.. M=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-33-generic'
CC [M] /tmp/modconfig-93vViq/vmmon-only/linux/driver.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/linux/hostif.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/linux/driverLog.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/common/memtrack.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/common/apic.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/common/statVarsVmmon.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/common/vmx86.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/common/sharedAreaVmmon.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/common/cpuid.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/common/task.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/common/moduleloop.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/common/crosspage.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/common/comport.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/common/phystrack.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/bootstrap/monLoaderVmmon.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/bootstrap/monLoader.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/bootstrap/vmmblob.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/bootstrap/bootstrap.o
In file included from /tmp/modconfig-93vViq/vmmon-only/./include/x86desc.h:33,
from /tmp/modconfig-93vViq/vmmon-only/./include/modulecall.h:34,
from /tmp/modconfig-93vViq/vmmon-only/common/task.c:60:
/tmp/modconfig-93vViq/vmmon-only/common/task.c: In function 'TaskRestoreHostGDTTRLDT':
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant
67 | ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | sizeof(expr) <= 2))
| ~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro 'ASSERT_ON_COMPILE'
372 | _Static_assert(e, #e); \
| ^
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:263:7: note: in expansion of macro 'ASSERT_ON_COMPILE_SELECTOR_SIZE'
263 | ASSERT_ON_COMPILE_SELECTOR_SIZE(expr); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/common/task.c:726:7: note: in expansion of macro 'SET_TR'
726 | SET_TR(tr);
| ^~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant
67 | ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | sizeof(expr) <= 2))
| ~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro 'ASSERT_ON_COMPILE'
372 | _Static_assert(e, #e); \
| ^
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:129:7: note: in expansion of macro 'ASSERT_ON_COMPILE_SELECTOR_SIZE'
129 | ASSERT_ON_COMPILE_SELECTOR_SIZE(expr); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/common/task.c:728:7: note: in expansion of macro 'SET_LDT'
728 | SET_LDT(ldt);
| ^~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant
67 | ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | sizeof(expr) <= 2))
| ~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro 'ASSERT_ON_COMPILE'
372 | _Static_assert(e, #e); \
| ^
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:263:7: note: in expansion of macro 'ASSERT_ON_COMPILE_SELECTOR_SIZE'
263 | ASSERT_ON_COMPILE_SELECTOR_SIZE(expr); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/common/task.c:751:10: note: in expansion of macro 'SET_TR'
751 | SET_TR(tr);
| ^~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant
67 | ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | sizeof(expr) <= 2))
| ~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro 'ASSERT_ON_COMPILE'
372 | _Static_assert(e, #e); \
| ^
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:129:7: note: in expansion of macro 'ASSERT_ON_COMPILE_SELECTOR_SIZE'
129 | ASSERT_ON_COMPILE_SELECTOR_SIZE(expr); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/common/task.c:761:7: note: in expansion of macro 'SET_LDT'
761 | SET_LDT(ldt);
| ^~~~~~~
/tmp/modconfig-93vViq/vmmon-only/common/task.c: In function 'Task_Switch':
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant
67 | ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | sizeof(expr) <= 2))
| ~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro 'ASSERT_ON_COMPILE'
372 | _Static_assert(e, #e); \
| ^
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:215:7: note: in expansion of macro 'ASSERT_ON_COMPILE_SELECTOR_SIZE'
215 | ASSERT_ON_COMPILE_SELECTOR_SIZE(expr); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:228:22: note: in expansion of macro 'SET_SEGREG'
228 | #define SET_SS(expr) SET_SEGREG(ss, expr)
| ^~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/common/task.c:2620:13: note: in expansion of macro 'SET_SS'
2620 | SET_SS(kernelStackSegment);
| ^~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant
67 | ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | sizeof(expr) <= 2))
| ~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro 'ASSERT_ON_COMPILE'
372 | _Static_assert(e, #e); \
| ^
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:215:7: note: in expansion of macro 'ASSERT_ON_COMPILE_SELECTOR_SIZE'
215 | ASSERT_ON_COMPILE_SELECTOR_SIZE(expr); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:224:22: note: in expansion of macro 'SET_SEGREG'
224 | #define SET_DS(expr) SET_SEGREG(ds, expr)
| ^~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/common/task.c:2716:10: note: in expansion of macro 'SET_DS'
2716 | SET_DS(ds);
| ^~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant
67 | ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | sizeof(expr) <= 2))
| ~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro 'ASSERT_ON_COMPILE'
372 | _Static_assert(e, #e); \
| ^
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:215:7: note: in expansion of macro 'ASSERT_ON_COMPILE_SELECTOR_SIZE'
215 | ASSERT_ON_COMPILE_SELECTOR_SIZE(expr); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:225:22: note: in expansion of macro 'SET_SEGREG'
225 | #define SET_ES(expr) SET_SEGREG(es, expr)
| ^~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/common/task.c:2717:10: note: in expansion of macro 'SET_ES'
2717 | SET_ES(es);
| ^~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant
67 | ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | sizeof(expr) <= 2))
| ~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro 'ASSERT_ON_COMPILE'
372 | _Static_assert(e, #e); \
| ^
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:215:7: note: in expansion of macro 'ASSERT_ON_COMPILE_SELECTOR_SIZE'
215 | ASSERT_ON_COMPILE_SELECTOR_SIZE(expr); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:226:22: note: in expansion of macro 'SET_SEGREG'
226 | #define SET_FS(expr) SET_SEGREG(fs, expr)
| ^~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/common/task.c:2725:10: note: in expansion of macro 'SET_FS'
2725 | SET_FS(fs);
| ^~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant
67 | ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | sizeof(expr) <= 2))
| ~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro 'ASSERT_ON_COMPILE'
372 | _Static_assert(e, #e); \
| ^
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:215:7: note: in expansion of macro 'ASSERT_ON_COMPILE_SELECTOR_SIZE'
215 | ASSERT_ON_COMPILE_SELECTOR_SIZE(expr); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:227:22: note: in expansion of macro 'SET_SEGREG'
227 | #define SET_GS(expr) SET_SEGREG(gs, expr)
| ^~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/common/task.c:2726:10: note: in expansion of macro 'SET_GS'
2726 | SET_GS(gs);
| ^~~~~~
make[2]: *** [scripts/Makefile.build:285: /tmp/modconfig-93vViq/vmmon-only/common/task.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/tmp/modconfig-93vViq/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Free() falls through to next function PhysTrack_Add()
/tmp/modconfig-93vViq/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Add() falls through to next function PhysTrack_Remove()
/tmp/modconfig-93vViq/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Remove() falls through to next function PhysTrack_Test()
make[1]: *** [Makefile:1875: /tmp/modconfig-93vViq/vmmon-only] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-33-generic'
make: *** [Makefile:117: vmmon.ko] Error 2
make: Leaving directory '/tmp/modconfig-93vViq/vmmon-only'
make: Entering directory '/tmp/modconfig-93vViq/vmnet-only'
Using kernel build system.
/usr/bin/make -C /lib/modules/5.15.0-33-generic/build/include/.. M=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-33-generic'
CC [M] /tmp/modconfig-93vViq/vmnet-only/driver.o
CC [M] /tmp/modconfig-93vViq/vmnet-only/hub.o
CC [M] /tmp/modconfig-93vViq/vmnet-only/userif.o
CC [M] /tmp/modconfig-93vViq/vmnet-only/netif.o
CC [M] /tmp/modconfig-93vViq/vmnet-only/bridge.o
CC [M] /tmp/modconfig-93vViq/vmnet-only/procfs.o
CC [M] /tmp/modconfig-93vViq/vmnet-only/smac_compat.o
CC [M] /tmp/modconfig-93vViq/vmnet-only/smac.o
CC [M] /tmp/modconfig-93vViq/vmnet-only/vnetEvent.o
CC [M] /tmp/modconfig-93vViq/vmnet-only/vnetUserListener.o
/tmp/modconfig-93vViq/vmnet-only/driver.c: In function 'VNetFileOpUnlockedIoctl':
/tmp/modconfig-93vViq/vmnet-only/driver.c:966:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
966 | {
| ^
/tmp/modconfig-93vViq/vmnet-only/driver.c:976:4: note: here
976 | case SIOCGETAPIVERSION:
| ^~~~
LD [M] /tmp/modconfig-93vViq/vmnet-only/vmnet.o
MODPOST /tmp/modconfig-93vViq/vmnet-only/Module.symvers
CC [M] /tmp/modconfig-93vViq/vmnet-only/vmnet.mod.o
LD [M] /tmp/modconfig-93vViq/vmnet-only/vmnet.ko
BTF [M] /tmp/modconfig-93vViq/vmnet-only/vmnet.ko
Skipping BTF generation for /tmp/modconfig-93vViq/vmnet-only/vmnet.ko due to unavailability of vmlinux
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-33-generic'
/usr/bin/make -C $PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= postbuild
make[1]: Entering directory '/tmp/modconfig-93vViq/vmnet-only'
make[1]: 'postbuild' is up to date.
make[1]: Leaving directory '/tmp/modconfig-93vViq/vmnet-only'
cp -f vmnet.ko ./../vmnet.o
make: Leaving directory '/tmp/modconfig-93vViq/vmnet-only'
Unable to install all modules. See log for details.

On my previous kernel 5.13 everthing is fine. I'm running Workstation on Linux Mint 20.3 (based on Ubuntu 20.04 LTS). Do you have any idea what went wrong?

Best Regards - Olli

9 Replies
ozzorag
Contributor
Contributor

I'm running into the same problem on Ubuntu 20.04.

Today a kernel update was made available to my system so I installed it, version 5.15.0-41. After doing this, the VMware Kernel Module Updater now fails, same error message as what ehlebracht reported above.

While I'm still investigating a fix, I thought reporting it here would add some traction in getting to a fix sooner.

continuum
Immortal
Immortal

This problem has been already fixed by Michael Mkubecek
https://github.com/mkubecek/vmware-host-modules

Please search the forum before posting the top 1 question again and again.

Ulli


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

sergio_valle
Enthusiast
Enthusiast

excuse me ... do you think that post of https://github.com/mkubecek  is so clear ? I'm working on linux from 20 years but I don't think it is.

How could we apply this patch ?

Thanks

scott28tt
VMware Employee
VMware Employee

Please consider using a "spoiler" for posting large amounts of text, so the thread is easier to read/scroll.

Here is the effect:

 

Spoiler
[AppLoader] GLib does not have GSettings support.
Stopping VMware services:
VMware Authentication Daemon done
Virtual machine monitor done
make: Entering directory '/tmp/modconfig-93vViq/vmmon-only'
Using kernel build system.
/usr/bin/make -C /lib/modules/5.15.0-33-generic/build/include/.. M=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-33-generic'
CC [M] /tmp/modconfig-93vViq/vmmon-only/linux/driver.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/linux/hostif.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/linux/driverLog.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/common/memtrack.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/common/apic.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/common/statVarsVmmon.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/common/vmx86.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/common/sharedAreaVmmon.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/common/cpuid.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/common/task.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/common/moduleloop.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/common/crosspage.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/common/comport.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/common/phystrack.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/bootstrap/monLoaderVmmon.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/bootstrap/monLoader.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/bootstrap/vmmblob.o
CC [M] /tmp/modconfig-93vViq/vmmon-only/bootstrap/bootstrap.o
In file included from /tmp/modconfig-93vViq/vmmon-only/./include/x86desc.h:33,
from /tmp/modconfig-93vViq/vmmon-only/./include/modulecall.h:34,
from /tmp/modconfig-93vViq/vmmon-only/common/task.c:60:
/tmp/modconfig-93vViq/vmmon-only/common/task.c: In function 'TaskRestoreHostGDTTRLDT':
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant
67 | ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | sizeof(expr) <= 2))
| ~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro 'ASSERT_ON_COMPILE'
372 | _Static_assert(e, #e); \
| ^
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:263:7: note: in expansion of macro 'ASSERT_ON_COMPILE_SELECTOR_SIZE'
263 | ASSERT_ON_COMPILE_SELECTOR_SIZE(expr); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/common/task.c:726:7: note: in expansion of macro 'SET_TR'
726 | SET_TR(tr);
| ^~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant
67 | ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | sizeof(expr) <= 2))
| ~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro 'ASSERT_ON_COMPILE'
372 | _Static_assert(e, #e); \
| ^
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:129:7: note: in expansion of macro 'ASSERT_ON_COMPILE_SELECTOR_SIZE'
129 | ASSERT_ON_COMPILE_SELECTOR_SIZE(expr); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/common/task.c:728:7: note: in expansion of macro 'SET_LDT'
728 | SET_LDT(ldt);
| ^~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant
67 | ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | sizeof(expr) <= 2))
| ~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro 'ASSERT_ON_COMPILE'
372 | _Static_assert(e, #e); \
| ^
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:263:7: note: in expansion of macro 'ASSERT_ON_COMPILE_SELECTOR_SIZE'
263 | ASSERT_ON_COMPILE_SELECTOR_SIZE(expr); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/common/task.c:751:10: note: in expansion of macro 'SET_TR'
751 | SET_TR(tr);
| ^~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant
67 | ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | sizeof(expr) <= 2))
| ~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro 'ASSERT_ON_COMPILE'
372 | _Static_assert(e, #e); \
| ^
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:129:7: note: in expansion of macro 'ASSERT_ON_COMPILE_SELECTOR_SIZE'
129 | ASSERT_ON_COMPILE_SELECTOR_SIZE(expr); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/common/task.c:761:7: note: in expansion of macro 'SET_LDT'
761 | SET_LDT(ldt);
| ^~~~~~~
/tmp/modconfig-93vViq/vmmon-only/common/task.c: In function 'Task_Switch':
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant
67 | ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | sizeof(expr) <= 2))
| ~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro 'ASSERT_ON_COMPILE'
372 | _Static_assert(e, #e); \
| ^
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:215:7: note: in expansion of macro 'ASSERT_ON_COMPILE_SELECTOR_SIZE'
215 | ASSERT_ON_COMPILE_SELECTOR_SIZE(expr); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:228:22: note: in expansion of macro 'SET_SEGREG'
228 | #define SET_SS(expr) SET_SEGREG(ss, expr)
| ^~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/common/task.c:2620:13: note: in expansion of macro 'SET_SS'
2620 | SET_SS(kernelStackSegment);
| ^~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant
67 | ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | sizeof(expr) <= 2))
| ~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro 'ASSERT_ON_COMPILE'
372 | _Static_assert(e, #e); \
| ^
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:215:7: note: in expansion of macro 'ASSERT_ON_COMPILE_SELECTOR_SIZE'
215 | ASSERT_ON_COMPILE_SELECTOR_SIZE(expr); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:224:22: note: in expansion of macro 'SET_SEGREG'
224 | #define SET_DS(expr) SET_SEGREG(ds, expr)
| ^~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/common/task.c:2716:10: note: in expansion of macro 'SET_DS'
2716 | SET_DS(ds);
| ^~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant
67 | ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | sizeof(expr) <= 2))
| ~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro 'ASSERT_ON_COMPILE'
372 | _Static_assert(e, #e); \
| ^
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:215:7: note: in expansion of macro 'ASSERT_ON_COMPILE_SELECTOR_SIZE'
215 | ASSERT_ON_COMPILE_SELECTOR_SIZE(expr); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:225:22: note: in expansion of macro 'SET_SEGREG'
225 | #define SET_ES(expr) SET_SEGREG(es, expr)
| ^~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/common/task.c:2717:10: note: in expansion of macro 'SET_ES'
2717 | SET_ES(es);
| ^~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant
67 | ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | sizeof(expr) <= 2))
| ~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro 'ASSERT_ON_COMPILE'
372 | _Static_assert(e, #e); \
| ^
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:215:7: note: in expansion of macro 'ASSERT_ON_COMPILE_SELECTOR_SIZE'
215 | ASSERT_ON_COMPILE_SELECTOR_SIZE(expr); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:226:22: note: in expansion of macro 'SET_SEGREG'
226 | #define SET_FS(expr) SET_SEGREG(fs, expr)
| ^~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/common/task.c:2725:10: note: in expansion of macro 'SET_FS'
2725 | SET_FS(fs);
| ^~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant
67 | ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | sizeof(expr) <= 2))
| ~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro 'ASSERT_ON_COMPILE'
372 | _Static_assert(e, #e); \
| ^
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:215:7: note: in expansion of macro 'ASSERT_ON_COMPILE_SELECTOR_SIZE'
215 | ASSERT_ON_COMPILE_SELECTOR_SIZE(expr); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/./include/vm_asm_x86.h:227:22: note: in expansion of macro 'SET_SEGREG'
227 | #define SET_GS(expr) SET_SEGREG(gs, expr)
| ^~~~~~~~~~
/tmp/modconfig-93vViq/vmmon-only/common/task.c:2726:10: note: in expansion of macro 'SET_GS'
2726 | SET_GS(gs);
| ^~~~~~
make[2]: *** [scripts/Makefile.build:285: /tmp/modconfig-93vViq/vmmon-only/common/task.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/tmp/modconfig-93vViq/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Free() falls through to next function PhysTrack_Add()
/tmp/modconfig-93vViq/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Add() falls through to next function PhysTrack_Remove()
/tmp/modconfig-93vViq/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Remove() falls through to next function PhysTrack_Test()
make[1]: *** [Makefile:1875: /tmp/modconfig-93vViq/vmmon-only] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-33-generic'
make: *** [Makefile:117: vmmon.ko] Error 2
make: Leaving directory '/tmp/modconfig-93vViq/vmmon-only'
make: Entering directory '/tmp/modconfig-93vViq/vmnet-only'
Using kernel build system.
/usr/bin/make -C /lib/modules/5.15.0-33-generic/build/include/.. M=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-33-generic'
CC [M] /tmp/modconfig-93vViq/vmnet-only/driver.o
CC [M] /tmp/modconfig-93vViq/vmnet-only/hub.o
CC [M] /tmp/modconfig-93vViq/vmnet-only/userif.o
CC [M] /tmp/modconfig-93vViq/vmnet-only/netif.o
CC [M] /tmp/modconfig-93vViq/vmnet-only/bridge.o
CC [M] /tmp/modconfig-93vViq/vmnet-only/procfs.o
CC [M] /tmp/modconfig-93vViq/vmnet-only/smac_compat.o
CC [M] /tmp/modconfig-93vViq/vmnet-only/smac.o
CC [M] /tmp/modconfig-93vViq/vmnet-only/vnetEvent.o
CC [M] /tmp/modconfig-93vViq/vmnet-only/vnetUserListener.o
/tmp/modconfig-93vViq/vmnet-only/driver.c: In function 'VNetFileOpUnlockedIoctl':
/tmp/modconfig-93vViq/vmnet-only/driver.c:966:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
966 | {
| ^
/tmp/modconfig-93vViq/vmnet-only/driver.c:976:4: note: here
976 | case SIOCGETAPIVERSION:
| ^~~~
LD [M] /tmp/modconfig-93vViq/vmnet-only/vmnet.o
MODPOST /tmp/modconfig-93vViq/vmnet-only/Module.symvers
CC [M] /tmp/modconfig-93vViq/vmnet-only/vmnet.mod.o
LD [M] /tmp/modconfig-93vViq/vmnet-only/vmnet.ko
BTF [M] /tmp/modconfig-93vViq/vmnet-only/vmnet.ko
Skipping BTF generation for /tmp/modconfig-93vViq/vmnet-only/vmnet.ko due to unavailability of vmlinux
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-33-generic'
/usr/bin/make -C $PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= postbuild
make[1]: Entering directory '/tmp/modconfig-93vViq/vmnet-only'
make[1]: 'postbuild' is up to date.
make[1]: Leaving directory '/tmp/modconfig-93vViq/vmnet-only'
cp -f vmnet.ko ./../vmnet.o
make: Leaving directory '/tmp/modconfig-93vViq/vmnet-only'
Unable to install all modules. See log for details.

The icon on the toolbar to add one is a triangle with a !

 

 


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
continuum
Immortal
Immortal

I agree - at first sight it looks pretty complicated if you are new to using github.
But according to lots of posts in this forum the supplied solution does the job.
And if you expect that VMware will solve this problem you probably have to wait for WS 17 or 18.
Then you will run into the same problem again as at that time you probably use Ubuntu 24 or 26.
Just accept the fact that VMware develops Workstation for RHEL, Suse and older Debians.

Also keep in mind that VMware has 20 years of practice with ignoring these complaints - and nowadays they are pretty good at it.
The other valid complaint: why does the free VirtualBox handles installations on Linux so much better ? - also will be falling on deaf ears.
VMware gets away with that approach since 10 years or so - so why change anything that works ???

Ulli


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

adrianrt
Enthusiast
Enthusiast

@continuum

how should that Makefile from github be used? I dont understand where should one copy it and run make

Reply
0 Kudos
continuum
Immortal
Immortal

Read https://communities.vmware.com/t5/VMware-Workstation-Pro/VMware-16-2-3-not-working-on-Ubuntu-22-04-L...

one of the first posts describes it in more details.

Ulli


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

sergio_valle
Enthusiast
Enthusiast

Thinking ... working ... thinking

IT WORKED

Many thanks to mkubecek

 

p.s. my 20 years of linux worked too   🙂

ehlebracht
Contributor
Contributor

Hi all,

today I've tested the solution of Michael Mkubecek as well. And it worked for me, too. Problem solved. 😉

Thank you for helping me out!

Regards - Olli