mkubecek/vmware-host-modules

Ipossible to make

Opened this issue · 11 comments

❯ make
make -C vmmon-only
make[1]: Entering directory '/home/alex/Programs/vmware host modules git/vmware-host-modules-workstation-17.5.0/vmmon-only'
Using kernel build system.
make -C /lib/modules/6.7.2-zen1-1-zen/build/include/.. M=$PWD SRCROOT=$PWD/.
MODULEBUILDDIR= modules
make[2]: Entering directory '/usr/lib/modules/6.7.2-zen1-1-zen/build'
Makefile:229: target 'host' given more than once in the same rule
Makefile:229: target 'modules' given more than once in the same rule
Makefile:229: target 'modules' given more than once in the same rule
make[3]: *** No rule to make target 'host'. Stop.
make[2]: *** [Makefile:234: __sub-make] Error 2
make[2]: Leaving directory '/usr/lib/modules/6.7.2-zen1-1-zen/build'
make[1]: *** [Makefile:117: vmmon.ko] Error 2
make[1]: Leaving directory '/home/alex/Programs/vmware host modules git/vmware-host-modules-workstation-17.5.0/vmmon-only'
make: *** [Makefile:21: vmmon-only] Error 2

i have workstation 17.5.0
System - arch linux 6.7.2-zen1-1-zen

The error message complains about a makefile which does not come from this repository (it's part of your kernel devel headers) so it rather looks like an issue with your build environment or kernel devel package. Other out of tree modules build correctly?

I'm also on Arch, I installed the Zen kernel, 6.7.2.zen1-2, and it built fine with the current workstation-17.5.0 branch. I'm using vmware-host-modules-dkms-git from AUR: https://aur.archlinux.org/packages/vmware-host-modules-dkms-git

Manual build works too:

$ make
make -C vmmon-only 
make[1]: Entering directory '/home/alex/src/vmware-host-modules/vmmon-only'
Using kernel build system.
make -C /lib/modules/6.7.2-zen1-2-zen/build/include/.. M=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[2]: Entering directory '/usr/lib/modules/6.7.2-zen1-2-zen/build'
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/linux/driver.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/linux/driverLog.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/linux/hostif.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/common/apic.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/common/comport.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/common/cpuid.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/common/crosspage.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/common/memtrack.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/common/moduleloop.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/common/phystrack.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/common/sharedAreaVmmon.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/common/statVarsVmmon.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/common/task.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/common/vmx86.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/bootstrap/bootstrap.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/bootstrap/monLoader.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/bootstrap/monLoaderVmmon.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/bootstrap/vmmblob.o
  LD [M]  /home/alex/src/vmware-host-modules/vmmon-only/vmmon.o
  MODPOST /home/alex/src/vmware-host-modules/vmmon-only/Module.symvers
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/vmmon.mod.o
  LD [M]  /home/alex/src/vmware-host-modules/vmmon-only/vmmon.ko
  BTF [M] /home/alex/src/vmware-host-modules/vmmon-only/vmmon.ko
make[2]: Leaving directory '/usr/lib/modules/6.7.2-zen1-2-zen/build'
make -C $PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= postbuild
make[2]: Entering directory '/home/alex/src/vmware-host-modules/vmmon-only'
make[2]: 'postbuild' is up to date.
make[2]: Leaving directory '/home/alex/src/vmware-host-modules/vmmon-only'
cp -f vmmon.ko ./../vmmon.o
make[1]: Leaving directory '/home/alex/src/vmware-host-modules/vmmon-only'
make -C vmnet-only 
make[1]: Entering directory '/home/alex/src/vmware-host-modules/vmnet-only'
Using kernel build system.
make -C /lib/modules/6.7.2-zen1-2-zen/build/include/.. M=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[2]: Entering directory '/usr/lib/modules/6.7.2-zen1-2-zen/build'
  CC [M]  /home/alex/src/vmware-host-modules/vmnet-only/driver.o
  CC [M]  /home/alex/src/vmware-host-modules/vmnet-only/hub.o
  CC [M]  /home/alex/src/vmware-host-modules/vmnet-only/userif.o
  CC [M]  /home/alex/src/vmware-host-modules/vmnet-only/netif.o
  CC [M]  /home/alex/src/vmware-host-modules/vmnet-only/bridge.o
  CC [M]  /home/alex/src/vmware-host-modules/vmnet-only/procfs.o
  CC [M]  /home/alex/src/vmware-host-modules/vmnet-only/smac_compat.o
  CC [M]  /home/alex/src/vmware-host-modules/vmnet-only/smac.o
  CC [M]  /home/alex/src/vmware-host-modules/vmnet-only/vnetEvent.o
  CC [M]  /home/alex/src/vmware-host-modules/vmnet-only/vnetUserListener.o
  LD [M]  /home/alex/src/vmware-host-modules/vmnet-only/vmnet.o
  MODPOST /home/alex/src/vmware-host-modules/vmnet-only/Module.symvers
  CC [M]  /home/alex/src/vmware-host-modules/vmnet-only/vmnet.mod.o
  LD [M]  /home/alex/src/vmware-host-modules/vmnet-only/vmnet.ko
  BTF [M] /home/alex/src/vmware-host-modules/vmnet-only/vmnet.ko
make[2]: Leaving directory '/usr/lib/modules/6.7.2-zen1-2-zen/build'
make -C $PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= postbuild
make[2]: Entering directory '/home/alex/src/vmware-host-modules/vmnet-only'
make[2]: 'postbuild' is up to date.
make[2]: Leaving directory '/home/alex/src/vmware-host-modules/vmnet-only'
cp -f vmnet.ko ./../vmnet.o
make[1]: Leaving directory '/home/alex/src/vmware-host-modules/vmnet-only'

I'm also on Arch, I installed the Zen kernel, 6.7.2.zen1-2, and it built fine with the current workstation-17.5.0 branch. I'm using vmware-host-modules-dkms-git from AUR: https://aur.archlinux.org/packages/vmware-host-modules-dkms-git

Manual build works too:

$ make
make -C vmmon-only 
make[1]: Entering directory '/home/alex/src/vmware-host-modules/vmmon-only'
Using kernel build system.
make -C /lib/modules/6.7.2-zen1-2-zen/build/include/.. M=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[2]: Entering directory '/usr/lib/modules/6.7.2-zen1-2-zen/build'
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/linux/driver.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/linux/driverLog.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/linux/hostif.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/common/apic.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/common/comport.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/common/cpuid.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/common/crosspage.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/common/memtrack.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/common/moduleloop.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/common/phystrack.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/common/sharedAreaVmmon.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/common/statVarsVmmon.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/common/task.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/common/vmx86.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/bootstrap/bootstrap.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/bootstrap/monLoader.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/bootstrap/monLoaderVmmon.o
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/bootstrap/vmmblob.o
  LD [M]  /home/alex/src/vmware-host-modules/vmmon-only/vmmon.o
  MODPOST /home/alex/src/vmware-host-modules/vmmon-only/Module.symvers
  CC [M]  /home/alex/src/vmware-host-modules/vmmon-only/vmmon.mod.o
  LD [M]  /home/alex/src/vmware-host-modules/vmmon-only/vmmon.ko
  BTF [M] /home/alex/src/vmware-host-modules/vmmon-only/vmmon.ko
make[2]: Leaving directory '/usr/lib/modules/6.7.2-zen1-2-zen/build'
make -C $PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= postbuild
make[2]: Entering directory '/home/alex/src/vmware-host-modules/vmmon-only'
make[2]: 'postbuild' is up to date.
make[2]: Leaving directory '/home/alex/src/vmware-host-modules/vmmon-only'
cp -f vmmon.ko ./../vmmon.o
make[1]: Leaving directory '/home/alex/src/vmware-host-modules/vmmon-only'
make -C vmnet-only 
make[1]: Entering directory '/home/alex/src/vmware-host-modules/vmnet-only'
Using kernel build system.
make -C /lib/modules/6.7.2-zen1-2-zen/build/include/.. M=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[2]: Entering directory '/usr/lib/modules/6.7.2-zen1-2-zen/build'
  CC [M]  /home/alex/src/vmware-host-modules/vmnet-only/driver.o
  CC [M]  /home/alex/src/vmware-host-modules/vmnet-only/hub.o
  CC [M]  /home/alex/src/vmware-host-modules/vmnet-only/userif.o
  CC [M]  /home/alex/src/vmware-host-modules/vmnet-only/netif.o
  CC [M]  /home/alex/src/vmware-host-modules/vmnet-only/bridge.o
  CC [M]  /home/alex/src/vmware-host-modules/vmnet-only/procfs.o
  CC [M]  /home/alex/src/vmware-host-modules/vmnet-only/smac_compat.o
  CC [M]  /home/alex/src/vmware-host-modules/vmnet-only/smac.o
  CC [M]  /home/alex/src/vmware-host-modules/vmnet-only/vnetEvent.o
  CC [M]  /home/alex/src/vmware-host-modules/vmnet-only/vnetUserListener.o
  LD [M]  /home/alex/src/vmware-host-modules/vmnet-only/vmnet.o
  MODPOST /home/alex/src/vmware-host-modules/vmnet-only/Module.symvers
  CC [M]  /home/alex/src/vmware-host-modules/vmnet-only/vmnet.mod.o
  LD [M]  /home/alex/src/vmware-host-modules/vmnet-only/vmnet.ko
  BTF [M] /home/alex/src/vmware-host-modules/vmnet-only/vmnet.ko
make[2]: Leaving directory '/usr/lib/modules/6.7.2-zen1-2-zen/build'
make -C $PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= postbuild
make[2]: Entering directory '/home/alex/src/vmware-host-modules/vmnet-only'
make[2]: 'postbuild' is up to date.
make[2]: Leaving directory '/home/alex/src/vmware-host-modules/vmnet-only'
cp -f vmnet.ko ./../vmnet.o
make[1]: Leaving directory '/home/alex/src/vmware-host-modules/vmnet-only'

This is for player, not work station
Description: Patches needed to build VMware Player host modules against recent kernels

The error message complains about a makefile which does not come from this repository (it's part of your kernel devel headers) so it rather looks like an issue with your build environment or kernel devel package. Other out of tree modules build correctly?

I just did step by step this guide

First method (build and install):

wget https://github.com/mkubecek/vmware-host-modules/archive/workstation-17.0.0.tar.gz
tar -xzf workstation-17.0.0.tar.gz
cd vmware-host-modules-workstation-17.0.0
make
make install

And in the top is the error after make command. A month ago all was fine, but now i have a problem, with network.
❯ systemctl start vmware-networks
Job for vmware-networks.service failed because the control process exited with error code.
See "systemctl status vmware-networks.service" and "journalctl -xeu vmware-networks.service" for details.

So i got an idea, that your project can fix that.

wget https://github.com/mkubecek/vmware-host-modules/archive/workstation-17.0.0.tar.gz
tar -xzf workstation-17.0.0.tar.gz
cd vmware-host-modules-workstation-17.0.0
make
make install

17.0.0 branch is retired: see 6f09496
You should use 17.5.0 now.

This is for player, not work station
Description: Patches needed to build VMware Player host modules against recent kernels

The description is a bit misleading, according to the

versions before 17.0, there are also branches "player-${version}" but as
the module sources have been identical between Workstation and Player for
quite long, there seems to be no need to duplicate the work. Therefore the
"workstation-*" branches should be also used for Player >= 17.0 (and can be
in fact used for older as well). If the situation changes in the future,

the modules work for both Player and Workstation, and I actually have Workstation Pro installed. I probably should update the description.

wget https://github.com/mkubecek/vmware-host-modules/archive/workstation-17.0.0.tar.gz
tar -xzf workstation-17.0.0.tar.gz
cd vmware-host-modules-workstation-17.0.0
make
make install

17.0.0 branch is retired: see 6f09496 You should use 17.5.0 now.

This is for player, not work station
Description: Patches needed to build VMware Player host modules against recent kernels

The description is a bit misleading, according to the

versions before 17.0, there are also branches "player-${version}" but as
the module sources have been identical between Workstation and Player for
quite long, there seems to be no need to duplicate the work. Therefore the
"workstation-*" branches should be also used for Player >= 17.0 (and can be
in fact used for older as well). If the situation changes in the future,

the modules work for both Player and Workstation, and I actually have Workstation Pro installed. I probably should update the description.

Yes, yes, I just copied it now, and so yes, I replaced it in the version info with 17.5.0 myself(i also have VMware Workstation 17 Pro).

"I'm using vmware-host-modules-dkms-git from AUR: https://aur.archlinux.org/packages/vmware-host-modules-dkms-git"
The description may be misleading, but the thing is that when I install this via pamac, it just uninstalls workstation when I install the package you've thrown up.

❯ pamac build vmware-host-modules-dkms-git
Preparing...
Cloning vmware-host-modules-dkms-git build files...
Generating vmware-host-modules-dkms-git information...
Checking vmware-host-modules-dkms-git dependencies...
Resolving dependencies...
Checking inter-conflicts...

To build (1):
vmware-host-modules-dkms-git 2:17.5.0.d20240112.2c6d66f-1 AUR
To remove (1):
vmware-workstation 17.5.0-2 (Conflicts With: vmware-host-modules-dkms-git)

Total removed size: 900.5 MB

The description may be misleading, but the thing is that when I install this via pamac, it just uninstalls workstation when I install the package you've thrown up.

That's because AUR vmware-workstation installs dkms host modules too, hence the conflict. I installed vmware from an official binary distribution manually. If you're using vmware-workstation and having an issue, you should probably take it there, for starters, look for the error log with journalctl -xeu vmware-networks.service. Installing the host modules manually with having dkms modules already isn't a good option (though it doesn't describe the build error you're having). Either install vmware manually, or take it to the AUR package comments or Arch forums, I think you're more likely to get help there.

can we get in touch somewhere on Telegram or any other messenger?

The description may be misleading, but the thing is that when I install this via pamac, it just uninstalls workstation when I install the package you've thrown up.

That's because AUR vmware-workstation installs dkms host modules too, hence the conflict. I installed vmware from an official binary distribution manually. If you're using vmware-workstation and having an issue, you should probably take it there, for starters, look for the error log with journalctl -xeu vmware-networks.service. Installing the host modules manually with having dkms modules already isn't a good option (though it doesn't describe the build error you're having). Either install vmware manually, or take it to the AUR package comments or Arch forums, I think you're more likely to get help there.

Сan we get in touch somewhere on Telegram or any other messenger?

Same issue in Void Linux.

same problem on nobara:

vmware --version
VMware Workstation 17.5.1 build-23298084

uname -a
Linux nobara-pc 6.8.2-201.fsync.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC TKG Fri Apr  5 05:41:25 UTC 2024 x86_64 GNU/Linux

cd ~/Downloads
wget https://github.com/mkubecek/vmware-host-modules/archive/workstation-17.5.1.tar.gz
tar -xzf workstation*
cd vmware-host-modules*
make tarballs
tar -cf vmmon.tar vmmon-only
tar -cf vmnet.tar vmnet-only
sudo cp vmmon.tar /usr/lib/vmware/modules/source/vmmon.tar
sudo cp vmnet.tar /usr/lib/vmware/modules/source/vmnet.tar
vmware-modconfig --console --install-all

output:

--2024-04-09 17:08:09--  https://github.com/mkubecek/vmware-host-modules/archive/workstation-17.5.1.tar.gz
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/mkubecek/vmware-host-modules/tar.gz/refs/heads/workstation-17.5.1 [following]
--2024-04-09 17:08:09--  https://codeload.github.com/mkubecek/vmware-host-modules/tar.gz/refs/heads/workstation-17.5.1
Resolving codeload.github.com (codeload.github.com)... 140.82.121.10
Connecting to codeload.github.com (codeload.github.com)|140.82.121.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘workstation-17.5.1.tar.gz.1’

workstation-17.5.1.tar.gz.1                      [  <=>                                                                                       ] 476,75K  1,75MB/s    in 0,3s    

2024-04-09 17:08:10 (1,75 MB/s) - ‘workstation-17.5.1.tar.gz.1’ saved [488189]

tar: workstation-17.5.0.tar.gz.1: Not found in archive
tar: workstation-17.5.0.tar.gz.10: Not found in archive
tar: workstation-17.5.0.tar.gz.2: Not found in archive
tar: workstation-17.5.0.tar.gz.3: Not found in archive
tar: workstation-17.5.0.tar.gz.4: Not found in archive
tar: workstation-17.5.0.tar.gz.5: Not found in archive
tar: workstation-17.5.0.tar.gz.6: Not found in archive
tar: workstation-17.5.0.tar.gz.7: Not found in archive
tar: workstation-17.5.0.tar.gz.8: Not found in archive
tar: workstation-17.5.0.tar.gz.9: Not found in archive
tar: workstation-17.5.1.tar.gz: Not found in archive
tar: workstation-17.5.1.tar.gz.1: Not found in archive
tar: Exiting with failure status due to previous errors
This only works in a git repository.
make: *** [Makefile:24: gitcheck] Error 1
[AppLoader] GLib does not have GSettings support.
Stopping vmware (via systemctl):                           [  OK  ]
make: Entering directory '/tmp/modconfig-lpPaAG/vmmon-only'
Using kernel build system.
/usr/bin/make -C /lib/modules/6.8.2-201.fsync.fc39.x86_64/build/include/.. M=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/kernels/6.8.2-201.fsync.fc39.x86_64'
  CC [M]  /tmp/modconfig-lpPaAG/vmmon-only/linux/driver.o
  CC [M]  /tmp/modconfig-lpPaAG/vmmon-only/linux/driverLog.o
  CC [M]  /tmp/modconfig-lpPaAG/vmmon-only/linux/hostif.o
  CC [M]  /tmp/modconfig-lpPaAG/vmmon-only/common/apic.o
  CC [M]  /tmp/modconfig-lpPaAG/vmmon-only/common/comport.o
  CC [M]  /tmp/modconfig-lpPaAG/vmmon-only/common/cpuid.o
  CC [M]  /tmp/modconfig-lpPaAG/vmmon-only/common/crosspage.o
  CC [M]  /tmp/modconfig-lpPaAG/vmmon-only/common/memtrack.o
  CC [M]  /tmp/modconfig-lpPaAG/vmmon-only/common/moduleloop.o
  CC [M]  /tmp/modconfig-lpPaAG/vmmon-only/common/phystrack.o
  CC [M]  /tmp/modconfig-lpPaAG/vmmon-only/common/sharedAreaVmmon.o
  CC [M]  /tmp/modconfig-lpPaAG/vmmon-only/common/statVarsVmmon.o
  CC [M]  /tmp/modconfig-lpPaAG/vmmon-only/common/task.o
  CC [M]  /tmp/modconfig-lpPaAG/vmmon-only/common/vmx86.o
  CC [M]  /tmp/modconfig-lpPaAG/vmmon-only/bootstrap/bootstrap.o
  CC [M]  /tmp/modconfig-lpPaAG/vmmon-only/bootstrap/monLoader.o
  CC [M]  /tmp/modconfig-lpPaAG/vmmon-only/bootstrap/monLoaderVmmon.o
  CC [M]  /tmp/modconfig-lpPaAG/vmmon-only/bootstrap/vmmblob.o
/tmp/modconfig-lpPaAG/vmmon-only/common/task.c:548:1: warning: no previous prototype for ‘TaskGetFlatWriteableDataSegment’ [-Wmissing-prototypes]
  548 | TaskGetFlatWriteableDataSegment(void)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/modconfig-lpPaAG/vmmon-only/common/vmx86.c:52:
./arch/x86/include/asm/timex.h: In function ‘random_get_entropy’:
./arch/x86/include/asm/timex.h:12:24: error: implicit declaration of function ‘random_get_entropy_fallback’; did you mean ‘random_get_entropy’? [-Werror=implicit-function-declaration]
   12 |                 return random_get_entropy_fallback();
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                        random_get_entropy
/tmp/modconfig-lpPaAG/vmmon-only/common/vmx86.c: At top level:
/tmp/modconfig-lpPaAG/vmmon-only/common/vmx86.c:700:1: warning: no previous prototype for ‘Vmx86FreeVMDriver’ [-Wmissing-prototypes]
  700 | Vmx86FreeVMDriver(VMDriver *vm)
      | ^~~~~~~~~~~~~~~~~
/tmp/modconfig-lpPaAG/vmmon-only/common/vmx86.c:733:1: warning: no previous prototype for ‘Vmx86AllocVMDriver’ [-Wmissing-prototypes]
  733 | Vmx86AllocVMDriver(uint32 numVCPUs)
      | ^~~~~~~~~~~~~~~~~~
/tmp/modconfig-lpPaAG/vmmon-only/linux/driver.c:271:1: warning: no previous prototype for ‘LinuxDriverInit’ [-Wmissing-prototypes]
  271 | LinuxDriverInit(void)
      | ^~~~~~~~~~~~~~~
/tmp/modconfig-lpPaAG/vmmon-only/linux/driver.c:339:1: warning: no previous prototype for ‘LinuxDriverExit’ [-Wmissing-prototypes]
  339 | LinuxDriverExit(void)
      | ^~~~~~~~~~~~~~~
/tmp/modconfig-lpPaAG/vmmon-only/linux/hostif.c:2927:1: warning: no previous prototype for ‘HostIFCheckTrackedMPN’ [-Wmissing-prototypes]
 2927 | HostIFCheckTrackedMPN(VMDriver *vm, // IN: The VM instance
      | ^~~~~~~~~~~~~~~~~~~~~
/tmp/modconfig-lpPaAG/vmmon-only/linux/hostif.c:3047:1: warning: no previous prototype for ‘HostIFWritePhysicalWork’ [-Wmissing-prototypes]
 3047 | HostIFWritePhysicalWork(MA ma,             // MA to be written to
      | ^~~~~~~~~~~~~~~~~~~~~~~
/tmp/modconfig-lpPaAG/vmmon-only/linux/hostif.c:3206:1: warning: no previous prototype for ‘HostIFStartTimer’ [-Wmissing-prototypes]
 3206 | HostIFStartTimer(Bool rateChanged,  //IN: Did rate change?
      | ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /tmp/modconfig-lpPaAG/vmmon-only/common/vmx86.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/usr/src/kernels/6.8.2-201.fsync.fc39.x86_64/Makefile:1942: /tmp/modconfig-lpPaAG/vmmon-only] Error 2
make[1]: *** [Makefile:252: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/kernels/6.8.2-201.fsync.fc39.x86_64'
make: *** [Makefile:117: vmmon.ko] Error 2
make: Leaving directory '/tmp/modconfig-lpPaAG/vmmon-only'
make: Entering directory '/tmp/modconfig-lpPaAG/vmnet-only'
Using kernel build system.
/usr/bin/make -C /lib/modules/6.8.2-201.fsync.fc39.x86_64/build/include/.. M=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/kernels/6.8.2-201.fsync.fc39.x86_64'
  CC [M]  /tmp/modconfig-lpPaAG/vmnet-only/driver.o
  CC [M]  /tmp/modconfig-lpPaAG/vmnet-only/hub.o
  CC [M]  /tmp/modconfig-lpPaAG/vmnet-only/userif.o
  CC [M]  /tmp/modconfig-lpPaAG/vmnet-only/netif.o
  CC [M]  /tmp/modconfig-lpPaAG/vmnet-only/bridge.o
  CC [M]  /tmp/modconfig-lpPaAG/vmnet-only/procfs.o
  CC [M]  /tmp/modconfig-lpPaAG/vmnet-only/smac_compat.o
  CC [M]  /tmp/modconfig-lpPaAG/vmnet-only/smac.o
  CC [M]  /tmp/modconfig-lpPaAG/vmnet-only/vnetEvent.o
  CC [M]  /tmp/modconfig-lpPaAG/vmnet-only/vnetUserListener.o
/tmp/modconfig-lpPaAG/vmnet-only/userif.c:1087:1: warning: no previous prototype for ‘VNetUserIf_Create’ [-Wmissing-prototypes]
 1087 | VNetUserIf_Create(VNetPort **ret) // OUT
      | ^~~~~~~~~~~~~~~~~
/tmp/modconfig-lpPaAG/vmnet-only/netif.c:174:1: warning: no previous prototype for ‘VNetNetIf_Create’ [-Wmissing-prototypes]
  174 | VNetNetIf_Create(char *devName,  // IN:
      | ^~~~~~~~~~~~~~~~
/tmp/modconfig-lpPaAG/vmnet-only/driver.c:299:1: warning: no previous prototype for ‘vmnet_init_module’ [-Wmissing-prototypes]
  299 | vmnet_init_module(void)
      | ^~~~~~~~~~~~~~~~~
/tmp/modconfig-lpPaAG/vmnet-only/driver.c:378:1: warning: no previous prototype for ‘vmnet_cleanup_module’ [-Wmissing-prototypes]
  378 | vmnet_cleanup_module(void)
      | ^~~~~~~~~~~~~~~~~~~~
/tmp/modconfig-lpPaAG/vmnet-only/vnetUserListener.c:87:1: warning: no previous prototype for ‘VNetUserListener_Create’ [-Wmissing-prototypes]
   87 | VNetUserListener_Create(uint32 classMask,  // IN: the listener's class mask
      | ^~~~~~~~~~~~~~~~~~~~~~~
/tmp/modconfig-lpPaAG/vmnet-only/bridge.c:258:1: warning: no previous prototype for ‘VNetBridge_Create’ [-Wmissing-prototypes]
  258 | VNetBridge_Create(const char *devName, // IN:  name of device (e.g., "eth0")
      | ^~~~~~~~~~~~~~~~~
/tmp/modconfig-lpPaAG/vmnet-only/bridge.c:1413:1: warning: no previous prototype for ‘VNetBridgeSendLargePacket’ [-Wmissing-prototypes]
 1413 | VNetBridgeSendLargePacket(struct sk_buff *skb,        // IN: packet to split
      | ^~~~~~~~~~~~~~~~~~~~~~~~~
  LD [M]  /tmp/modconfig-lpPaAG/vmnet-only/vmnet.o
  MODPOST /tmp/modconfig-lpPaAG/vmnet-only/Module.symvers
  CC [M]  /tmp/modconfig-lpPaAG/vmnet-only/vmnet.mod.o
  LD [M]  /tmp/modconfig-lpPaAG/vmnet-only/vmnet.ko
  BTF [M] /tmp/modconfig-lpPaAG/vmnet-only/vmnet.ko
Skipping BTF generation for /tmp/modconfig-lpPaAG/vmnet-only/vmnet.ko due to unavailability of vmlinux
make[1]: Leaving directory '/usr/src/kernels/6.8.2-201.fsync.fc39.x86_64'
/usr/bin/make -C $PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= postbuild
make[1]: Entering directory '/tmp/modconfig-lpPaAG/vmnet-only'
make[1]: 'postbuild' is up to date.
make[1]: Leaving directory '/tmp/modconfig-lpPaAG/vmnet-only'
cp -f vmnet.ko ./../vmnet.o
make: Leaving directory '/tmp/modconfig-lpPaAG/vmnet-only'
Unable to install all modules.  See log for details.

*nvm fixed it, it was using an old folder of 17.5.0, edited my script with line2:

cd ~/Downloads
rm -rf workstation* vmware-host-modules-workstation*
wget https://github.com/mkubecek/vmware-host-modules/archive/workstation-17.5.1.tar.gz
tar -xzf workstation*
cd vmware-host-modules*
make tarballs
tar -cf vmmon.tar vmmon-only
tar -cf vmnet.tar vmnet-only
sudo cp vmmon.tar /usr/lib/vmware/modules/source/vmmon.tar
sudo cp vmnet.tar /usr/lib/vmware/modules/source/vmnet.tar
vmware-modconfig --console --install-all