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 381 forks source link

.././include/compat_autoconf.h:38:13: fatal error: generated/autoconf.h #189

Closed gituser823 closed 1 year ago

gituser823 commented 1 year ago

Hi,

I upgraded my Kernel to 6.1.11, but I cant get VMWare Workstation working, please help. thanks!

me-PC:~/Downloads/workstation$ wget https://github.com/mkubecek/vmware-host-modules/archive/workstation-17.0.1.tar.gz
--2023-02-17 05:30:40--  https://github.com/mkubecek/vmware-host-modules/archive/workstation-17.0.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.0.1 [following]
--2023-02-17 05:30:40--  https://codeload.github.com/mkubecek/vmware-host-modules/tar.gz/refs/heads/workstation-17.0.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.0.1.tar.gz’

workstation-17.0.1.tar.gz                                       [ <=>                                                                                                                                       ] 470,60K  --.-KB/s    in 0,07s   

2023-02-17 05:30:40 (6,35 MB/s) - ‘workstation-17.0.1.tar.gz’ saved [481899]

me-PC:~/Downloads/workstation$ tar -xzf workstation-17.0.1.tar.gz 
me-PC:~/Downloads/workstation/vmware-host-modules-workstation-17.0.1$ tar -cf vmmon.tar vmmon-only
me-PC:~/Downloads/workstation/vmware-host-modules-workstation-17.0.1$ tar -cf vmnet.tar vmnet-only
me-PC:~/Downloads/workstation/vmware-host-modules-workstation-17.0.1$ sudo cp -v vmmon.tar vmnet.tar /usr/lib/vmware/modules/source/
[sudo] password for me:              
'vmmon.tar' -> '/usr/lib/vmware/modules/source/vmmon.tar'
'vmnet.tar' -> '/usr/lib/vmware/modules/source/vmnet.tar'
me-PC:~/Downloads/workstation/vmware-host-modules-workstation-17.0.1$ sudo vmware-modconfig --console --install-all
[AppLoader] GLib does not have GSettings support.
Failed to get gcc information.
me-PC:~/Downloads/workstation/vmware-host-modules-workstation-17.0.1$ make
make -C vmmon-only 
make[1]: Entering directory '/home/me/Downloads/workstation/vmware-host-modules-workstation-17.0.1/vmmon-only'
Using standalone build system.
In file included from ./autoconf/geninclude.c:20:
./include/compat_autoconf.h:38:13: fatal error: generated/autoconf.h: Datei oder Verzeichnis nicht gefunden
   38 | #   include <generated/autoconf.h>
      |             ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: Entering directory '/home/me/Downloads/workstation/vmware-host-modules-workstation-17.0.1/vmmon-only/driver-6.1.11-060111-generic'
In file included from .././autoconf/geninclude.c:20:
.././include/compat_autoconf.h:38:13: fatal error: generated/autoconf.h: Datei oder Verzeichnis nicht gefunden
   38 | #   include <generated/autoconf.h>
      |             ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Dependencies for driver.c
cc1: error: code model kernel does not support PIC mode
make[2]: *** [.././Makefile.normal:125: driver.d] Error 1
make[2]: Leaving directory '/home/me/Downloads/workstation/vmware-host-modules-workstation-17.0.1/vmmon-only/driver-6.1.11-060111-generic'
make[1]: *** [Makefile.normal:132: deps] Error 2
make[1]: Leaving directory '/home/me/Downloads/workstation/vmware-host-modules-workstation-17.0.1/vmmon-only'
make: *** [Makefile:21: vmmon-only] Error 2
mkubecek commented 1 year ago
In file included from ./autoconf/geninclude.c:20:
./include/compat_autoconf.h:38:13: fatal error: generated/autoconf.h: Datei oder Verzeichnis nicht gefunden
   38 | #   include <generated/autoconf.h>
      |             ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

These errors almost always mean you don't have necessary kernel development packages installed in your system. Please follow the documentation of your distribution for instructions which packages you need to build kernel modules.