Trouble compiling latest modules/patches (fedora 40)
Getting the following errors, any ideas?
make -C vmmon-only
make[1]: Entering directory '/home/spaceboy/Downloads/vmware-host-modules-w17.5.1/vmmon-only'
Using kernel build system.
make -C /lib/modules/6.8.11-300.fc40.x86_64/build/include/.. M=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[2]: Entering directory '/usr/src/kernels/6.8.11-300.fc40.x86_64'
CC [M] /home/spaceboy/Downloads/vmware-host-modules-w17.5.1/vmmon-only/linux/driver.o
/home/spaceboy/Downloads/vmware-host-modules-w17.5.1/vmmon-only/linux/driver.c:271:1: warning: no previous prototype for ‘LinuxDriverInit’ [-Wmissing-prototypes]
271 | LinuxDriverInit(void)
| ^~~~~~~~~~~~~~~
/home/spaceboy/Downloads/vmware-host-modules-w17.5.1/vmmon-only/linux/driver.c:339:1: warning: no previous prototype for ‘LinuxDriverExit’ [-Wmissing-prototypes]
339 | LinuxDriverExit(void)
| ^~~~~~~~~~~~~~~
CC [M] /home/spaceboy/Downloads/vmware-host-modules-w17.5.1/vmmon-only/linux/driverLog.o
CC [M] /home/spaceboy/Downloads/vmware-host-modules-w17.5.1/vmmon-only/linux/hostif.o
/home/spaceboy/Downloads/vmware-host-modules-w17.5.1/vmmon-only/linux/hostif.c:2926:1: warning: no previous prototype for ‘HostIFCheckTrackedMPN’ [-Wmissing-prototypes]
2926 | HostIFCheckTrackedMPN(VMDriver *vm, // IN: The VM instance
| ^~~~~~~~~~~~~~~~~~~~~
/home/spaceboy/Downloads/vmware-host-modules-w17.5.1/vmmon-only/linux/hostif.c:3046:1: warning: no previous prototype for ‘HostIFWritePhysicalWork’ [-Wmissing-prototypes]
3046 | HostIFWritePhysicalWork(MA ma, // MA to be written to
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/spaceboy/Downloads/vmware-host-modules-w17.5.1/vmmon-only/linux/hostif.c:3205:1: warning: no previous prototype for ‘HostIFStartTimer’ [-Wmissing-prototypes]
3205 | HostIFStartTimer(Bool rateChanged, //IN: Did rate change?
| ^~~~~~~~~~~~~~~~
CC [M] /home/spaceboy/Downloads/vmware-host-modules-w17.5.1/vmmon-only/common/apic.o
CC [M] /home/spaceboy/Downloads/vmware-host-modules-w17.5.1/vmmon-only/common/comport.o
CC [M] /home/spaceboy/Downloads/vmware-host-modules-w17.5.1/vmmon-only/common/cpuid.o
CC [M] /home/spaceboy/Downloads/vmware-host-modules-w17.5.1/vmmon-only/common/crosspage.o
CC [M] /home/spaceboy/Downloads/vmware-host-modules-w17.5.1/vmmon-only/common/memtrack.o
CC [M] /home/spaceboy/Downloads/vmware-host-modules-w17.5.1/vmmon-only/common/moduleloop.o
CC [M] /home/spaceboy/Downloads/vmware-host-modules-w17.5.1/vmmon-only/common/phystrack.o
CC [M] /home/spaceboy/Downloads/vmware-host-modules-w17.5.1/vmmon-only/common/sharedAreaVmmon.o
CC [M] /home/spaceboy/Downloads/vmware-host-modules-w17.5.1/vmmon-only/common/statVarsVmmon.o
CC [M] /home/spaceboy/Downloads/vmware-host-modules-w17.5.1/vmmon-only/common/task.o
/home/spaceboy/Downloads/vmware-host-modules-w17.5.1/vmmon-only/common/task.c:548:1: warning: no previous prototype for ‘TaskGetFlatWriteableDataSegment’ [-Wmissing-prototypes]
548 | TaskGetFlatWriteableDataSegment(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CC [M] /home/spaceboy/Downloads/vmware-host-modules-w17.5.1/vmmon-only/common/vmx86.o
In file included from /home/spaceboy/Downloads/vmware-host-modules-w17.5.1/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’? [-Wimplicit-function-declaration]
12 | return random_get_entropy_fallback();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| random_get_entropy
/home/spaceboy/Downloads/vmware-host-modules-w17.5.1/vmmon-only/common/vmx86.c: At top level:
/home/spaceboy/Downloads/vmware-host-modules-w17.5.1/vmmon-only/common/vmx86.c:700:1: warning: no previous prototype for ‘Vmx86FreeVMDriver’ [-Wmissing-prototypes]
700 | Vmx86FreeVMDriver(VMDriver *vm)
| ^~~~~~~~~~~~~~~~~
/home/spaceboy/Downloads/vmware-host-modules-w17.5.1/vmmon-only/common/vmx86.c:733:1: warning: no previous prototype for ‘Vmx86AllocVMDriver’ [-Wmissing-prototypes]
733 | Vmx86AllocVMDriver(uint32 numVCPUs)
| ^~~~~~~~~~~~~~~~~~
make[4]: *** [scripts/Makefile.build:243: /home/spaceboy/Downloads/vmware-host-modules-w17.5.1/vmmon-only/common/vmx86.o] Error 1
make[3]: *** [/usr/src/kernels/6.8.11-300.fc40.x86_64/Makefile:1939: /home/spaceboy/Downloads/vmware-host-modules-w17.5.1/vmmon-only] Error 2
make[2]: *** [Makefile:252: __sub-make] Error 2
make[2]: Leaving directory '/usr/src/kernels/6.8.11-300.fc40.x86_64'
make[1]: *** [Makefile:117: vmmon.ko] Error 2
make[1]: Leaving directory '/home/spaceboy/Downloads/vmware-host-modules-w17.5.1/vmmon-only'
make: *** [Makefile:21: vmmon-only] Error 2
https://github.com/mkubecek/vmware-host-modules/issues/250#issuecomment-2174289862
Like per comment above, if you are running plain Fedora 40 as following 6.9.4-200.fc40.x86_64 and VMware Workstation pro 17.5.2 build-23775571 here the step i did.
$ git clone -b tmp/workstation-17.5.2-k6.9.1 https://github.com/nan0desu/vmware-host-modules.git $ cd vmware-host-modules/ $ tar -cf vmmon.tar vmmon-only $ tar -cf vmnet.tar vmnet-only $ sudo cp -v vmmon.tar vmnet.tar /usr/lib/vmware/modules/source/ $ sudo vmware-modconfig --console --install-all
Thanks a lot worked perfectly for me, Fedora 40 as following 6.9.4-200.fc40.x86_64 and VMware Workstation pro 17.5.2 build-23775571.
Regards
On Wed, Jun 19, 2024 at 11:20 PM Claudio Santucci @.***> wrote:
Like per comment above, if you are running plain Fedora 40 as following 6.9.4-200.fc40.x86_64 and VMware Workstation pro 17.5.2 build-23775571 here the step i did.
$ git clone -b tmp/workstation-17.5.2-k6.9.1 https://github.com/nan0desu/vmware-host-modules.git $ cd vmware-host-modules/ $ tar -cf vmmon.tar vmmon-only $ tar -cf vmnet.tar vmnet-only $ sudo cp -v vmmon.tar vmnet.tar /usr/lib/vmware/modules/source/ $ sudo vmware-modconfig --console --install-all
— Reply to this email directly, view it on GitHub https://github.com/mkubecek/vmware-host-modules/issues/257#issuecomment-2179733925, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIWZQS46IUYPNCXFG3A5SVLZIJC7FAVCNFSM6AAAAABIXNJJKCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZZG4ZTGOJSGU . You are receiving this because you are subscribed to this thread.Message ID: @.***>
-- Ing. Carlos Moyses Holguin
Works like a charm! Fedora 40 6.9.5-200.fc40.x86_64 both with VMWare Workstation 17.5.1 and 17.5.2 bundles.
@Santuccic
Like per comment above, if you are running plain Fedora 40 as following 6.9.4-200.fc40.x86_64 and VMware Workstation pro 17.5.2 build-23775571 here the step i did.
$ git clone -b tmp/workstation-17.5.2-k6.9.1 https://github.com/nan0desu/vmware-host-modules.git $ cd vmware-host-modules/ $ tar -cf vmmon.tar vmmon-only $ tar -cf vmnet.tar vmnet-only $ sudo cp -v vmmon.tar vmnet.tar /usr/lib/vmware/modules/source/ $ sudo vmware-modconfig --console --install-all
exactly - nothing more nothing less
@Santuccic
Like per comment above, if you are running plain Fedora 40 as following 6.9.4-200.fc40.x86_64 and VMware Workstation pro 17.5.2 build-23775571 here the step i did. $ git clone -b tmp/workstation-17.5.2-k6.9.1 https://github.com/nan0desu/vmware-host-modules.git $ cd vmware-host-modules/ $ tar -cf vmmon.tar vmmon-only $ tar -cf vmnet.tar vmnet-only $ sudo cp -v vmmon.tar vmnet.tar /usr/lib/vmware/modules/source/ $ sudo vmware-modconfig --console --install-all
exactly - nothing more nothing less
I'd like to simplify sequence, FYI:
git clone -b tmp/workstation-17.5.2-k6.9.1 https://github.com/nan0desu/vmware-host-modules.git
cd vmware-host-modules/
sudo make tarballs && sudo cp -v vmmon.tar vmnet.tar /usr/lib/vmware/modules/source/
sudo vmware-modconfig --console --install-all
Works like a charm on:
VMware Workstation 17.5.2 build-23775571
Distro: Fedora Linux 40 (KDE Plasma)
Kernel: 6.9.6-200.fc40.x86_64
Like per comment above, if you are running plain Fedora 40 as following 6.9.4-200.fc40.x86_64 and VMware Workstation pro 17.5.2 build-23775571 here the step i did.
$ git clone -b tmp/workstation-17.5.2-k6.9.1 https://github.com/nan0desu/vmware-host-modules.git $ cd vmware-host-modules/ $ tar -cf vmmon.tar vmmon-only $ tar -cf vmnet.tar vmnet-only $ sudo cp -v vmmon.tar vmnet.tar /usr/lib/vmware/modules/source/ $ sudo vmware-modconfig --console --install-all
This helped me, kudos
Thanks a lot for the help, works perfectly on my system:
VMware Workstation 17.5.2
Distro: Fedora 40 KDE Spin
Kernel: 6.9.7-200.fc40.x86_64
There is one more important aspect of using modified code ( https://github.com/nan0desu/vmware-host-modules ), which seems to have escaped the previous speakers and is worth mentioning:
this time, after installing modified drivers compared to the original project ( https://github.com/mkubecek/vmware-host-modules ), the vmware-netcfg command works without any problems.
To sum up - now everything works (at this moment) in any iteration and subversion of the 6.9 kernel.
I literally tried everything to run VMware on my Fedora 40 6.9.7 GNOME. After running the script it says it couldnt start vmware.service, but i can start vmware, once i want to start a VM it still says few modules are missing. Btw im using 17.5.2 Workstation Pro
Thank you
Thank you so much for this working on Vmware 17.6 on Debian Testing with kernel 6.10.9-amd64