Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble compiling latest modules/patches (fedora 40) #257

Open
Spaceboy60 opened this issue Jun 3, 2024 · 12 comments
Open

Trouble compiling latest modules/patches (fedora 40) #257

Spaceboy60 opened this issue Jun 3, 2024 · 12 comments

Comments

@Spaceboy60
Copy link

Spaceboy60 commented Jun 3, 2024

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
@build000
Copy link

#250 (comment)

@Santuccic
Copy link

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

@Chakenios
Copy link

Chakenios commented Jun 21, 2024 via email

@kolucci
Copy link

kolucci commented Jun 26, 2024

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.

@build000
Copy link

build000 commented Jun 26, 2024

@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

@kolucci
Copy link

kolucci commented Jun 29, 2024

@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

@tankersss
Copy link

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

@Devaansh-Kumar
Copy link

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

@build000
Copy link

build000 commented Jul 7, 2024

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.

@fsec1337
Copy link

fsec1337 commented Jul 7, 2024

Bildschirmfoto vom 2024-07-07 17-59-51
Bildschirmfoto vom 2024-07-07 18-33-56
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

@Miyamoto-Dev
Copy link

Thank you

@dismal002
Copy link

Thank you so much for this working on Vmware 17.6 on Debian Testing with kernel 6.10.9-amd64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants