Hello to all here,
Today, CentOS 7.4 has updated the kernel.
When I try to start vmware, VMware Kernel Module Updater tells me,
that several modules must be compiled and loaded into the running kernel.
After that, I get a error and a hint to the log file, which I appended to this message.
Also the patch of Darius don't work any more.
(See the logs below)
Does anyone know, whats the matter?
Greetings from North Germany,
Holger
This is the log of the try to load the modules regularly:
2018-03-09T22:49:20.997+01:00| vthread-1| I125: Log for VMware Workstation pid=21793 version=14.1.1 build=build-7528167 option=Release
2018-03-09T22:49:20.997+01:00| vthread-1| I125: The process is 64-bit.
2018-03-09T22:49:20.997+01:00| vthread-1| I125: Host codepage=UTF-8 encoding=UTF-8
2018-03-09T22:49:20.997+01:00| vthread-1| I125: Host is Linux 3.10.0-693.21.1.el7.x86_64 CentOS Linux release 7.4.1708 (Core)
2018-03-09T22:49:20.997+01:00| vthread-1| I125: DictionaryLoad: Cannot open file "/usr/lib/vmware/settings": No such file or directory.
2018-03-09T22:49:20.997+01:00| vthread-1| I125: [msg.dictionary.load.openFailed] Cannot open file "/usr/lib/vmware/settings": No such file or directory.
2018-03-09T22:49:20.997+01:00| vthread-1| I125: PREF Optional preferences file not found at /usr/lib/vmware/settings. Using default values.
2018-03-09T22:49:20.997+01:00| vthread-1| I125: DictionaryLoad: Cannot open file "/home/kaengo/.vmware/config": No such file or directory.
2018-03-09T22:49:20.997+01:00| vthread-1| I125: [msg.dictionary.load.openFailed] Cannot open file "/home/kaengo/.vmware/config": No such file or directory.
2018-03-09T22:49:20.997+01:00| vthread-1| I125: PREF Optional preferences file not found at /home/kaengo/.vmware/config. Using default values.
2018-03-09T22:49:21.044+01:00| vthread-1| W115: Logging to /tmp/vmware-root/vmware-21793.log
2018-03-09T22:49:21.093+01:00| vthread-1| I125: Obtaining info using the running kernel.
2018-03-09T22:49:21.093+01:00| vthread-1| I125: Created new pathsHash.
2018-03-09T22:49:21.093+01:00| vthread-1| I125: Setting header path for 3.10.0-693.21.1.el7.x86_64 to "/lib/modules/3.10.0-693.21.1.el7.x86_64/build/include".
2018-03-09T22:49:21.093+01:00| vthread-1| I125: Validating path "/lib/modules/3.10.0-693.21.1.el7.x86_64/build/include" for kernel release "3.10.0-693.21.1.el7.x86_64".
2018-03-09T22:49:21.093+01:00| vthread-1| I125: Failed to find /lib/modules/3.10.0-693.21.1.el7.x86_64/build/include/linux/version.h
2018-03-09T22:49:21.093+01:00| vthread-1| I125: /lib/modules/3.10.0-693.21.1.el7.x86_64/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2018-03-09T22:49:21.093+01:00| vthread-1| I125: using /usr/local/bin/gcc for preprocess check
2018-03-09T22:49:21.109+01:00| vthread-1| I125: Preprocessed UTS_RELEASE, got value "3.10.0-693.21.1.el7.x86_64".
2018-03-09T22:49:21.109+01:00| vthread-1| I125: The header path "/lib/modules/3.10.0-693.21.1.el7.x86_64/build/include" for the kernel "3.10.0-693.21.1.el7.x86_64" is valid. Whoohoo!
2018-03-09T22:49:21.387+01:00| vthread-1| I125: found symbol version file /lib/modules/3.10.0-693.21.1.el7.x86_64/build/Module.symvers
2018-03-09T22:49:21.387+01:00| vthread-1| I125: Reading symbol versions from /lib/modules/3.10.0-693.21.1.el7.x86_64/build/Module.symvers.
2018-03-09T22:49:21.404+01:00| vthread-1| I125: Read 16075 symbol versions
2018-03-09T22:49:21.405+01:00| vthread-1| I125: Reading in info for the vmmon module.
2018-03-09T22:49:21.405+01:00| vthread-1| I125: Reading in info for the vmnet module.
2018-03-09T22:49:21.405+01:00| vthread-1| I125: Reading in info for the vmblock module.
2018-03-09T22:49:21.405+01:00| vthread-1| I125: Reading in info for the vmci module.
2018-03-09T22:49:21.405+01:00| vthread-1| I125: Reading in info for the vsock module.
2018-03-09T22:49:21.405+01:00| vthread-1| I125: Setting vsock to depend on vmci.
2018-03-09T22:49:21.405+01:00| vthread-1| I125: Invoking modinfo on "vmmon".
2018-03-09T22:49:21.412+01:00| vthread-1| I125: "/sbin/modinfo" exited with status 256.
2018-03-09T22:49:21.412+01:00| vthread-1| I125: Invoking modinfo on "vmnet".
2018-03-09T22:49:21.418+01:00| vthread-1| I125: "/sbin/modinfo" exited with status 256.
2018-03-09T22:49:21.418+01:00| vthread-1| I125: Invoking modinfo on "vmblock".
2018-03-09T22:49:21.425+01:00| vthread-1| I125: "/sbin/modinfo" exited with status 256.
2018-03-09T22:49:21.425+01:00| vthread-1| I125: Invoking modinfo on "vmci".
2018-03-09T22:49:21.432+01:00| vthread-1| I125: "/sbin/modinfo" exited with status 256.
2018-03-09T22:49:21.432+01:00| vthread-1| I125: Invoking modinfo on "vsock".
2018-03-09T22:49:21.441+01:00| vthread-1| I125: "/sbin/modinfo" exited with status 0.
2018-03-09T22:49:21.450+01:00| vthread-1| I125: to be installed: vmmon status: 0
2018-03-09T22:49:21.450+01:00| vthread-1| I125: to be installed: vmnet status: 0
2018-03-09T22:49:21.462+01:00| vthread-1| I125: Obtaining info using the running kernel.
2018-03-09T22:49:21.462+01:00| vthread-1| I125: Setting header path for 3.10.0-693.21.1.el7.x86_64 to "/lib/modules/3.10.0-693.21.1.el7.x86_64/build/include".
2018-03-09T22:49:21.462+01:00| vthread-1| I125: Validating path "/lib/modules/3.10.0-693.21.1.el7.x86_64/build/include" for kernel release "3.10.0-693.21.1.el7.x86_64".
2018-03-09T22:49:21.462+01:00| vthread-1| I125: Failed to find /lib/modules/3.10.0-693.21.1.el7.x86_64/build/include/linux/version.h
2018-03-09T22:49:21.462+01:00| vthread-1| I125: /lib/modules/3.10.0-693.21.1.el7.x86_64/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2018-03-09T22:49:21.462+01:00| vthread-1| I125: using /usr/local/bin/gcc for preprocess check
2018-03-09T22:49:21.480+01:00| vthread-1| I125: Preprocessed UTS_RELEASE, got value "3.10.0-693.21.1.el7.x86_64".
2018-03-09T22:49:21.480+01:00| vthread-1| I125: The header path "/lib/modules/3.10.0-693.21.1.el7.x86_64/build/include" for the kernel "3.10.0-693.21.1.el7.x86_64" is valid. Whoohoo!
2018-03-09T22:49:21.743+01:00| vthread-1| I125: found symbol version file /lib/modules/3.10.0-693.21.1.el7.x86_64/build/Module.symvers
2018-03-09T22:49:21.743+01:00| vthread-1| I125: Reading symbol versions from /lib/modules/3.10.0-693.21.1.el7.x86_64/build/Module.symvers.
2018-03-09T22:49:21.761+01:00| vthread-1| I125: Read 16075 symbol versions
2018-03-09T22:49:21.761+01:00| vthread-1| I125: Kernel header path retrieved from FileEntry: /lib/modules/3.10.0-693.21.1.el7.x86_64/build/include
2018-03-09T22:49:21.761+01:00| vthread-1| I125: Update kernel header path to /lib/modules/3.10.0-693.21.1.el7.x86_64/build/include
2018-03-09T22:49:21.761+01:00| vthread-1| I125: Validating path "/lib/modules/3.10.0-693.21.1.el7.x86_64/build/include" for kernel release "3.10.0-693.21.1.el7.x86_64".
2018-03-09T22:49:21.761+01:00| vthread-1| I125: Failed to find /lib/modules/3.10.0-693.21.1.el7.x86_64/build/include/linux/version.h
2018-03-09T22:49:21.761+01:00| vthread-1| I125: /lib/modules/3.10.0-693.21.1.el7.x86_64/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2018-03-09T22:49:21.761+01:00| vthread-1| I125: using /usr/local/bin/gcc for preprocess check
2018-03-09T22:49:21.782+01:00| vthread-1| I125: Preprocessed UTS_RELEASE, got value "3.10.0-693.21.1.el7.x86_64".
2018-03-09T22:49:21.782+01:00| vthread-1| I125: The header path "/lib/modules/3.10.0-693.21.1.el7.x86_64/build/include" for the kernel "3.10.0-693.21.1.el7.x86_64" is valid. Whoohoo!
2018-03-09T22:49:21.783+01:00| vthread-1| I125: Found compiler at "/usr/local/bin/gcc"
2018-03-09T22:49:21.793+01:00| vthread-1| I125: Got gcc version "4.9.2".
2018-03-09T22:49:21.793+01:00| vthread-1| I125: GCC minor version 4 does not match Kernel GCC minor version 4. But that is ok.
2018-03-09T22:49:21.805+01:00| vthread-1| I125: Got gcc version "4.9.2".
2018-03-09T22:49:21.805+01:00| vthread-1| I125: GCC minor version 4 does not match Kernel GCC minor version 4. But that is ok.
2018-03-09T22:49:21.808+01:00| vthread-1| I125: Trying to find a suitable PBM set for kernel "3.10.0-693.21.1.el7.x86_64".
2018-03-09T22:49:21.808+01:00| vthread-1| I125: No matching PBM set was found for kernel "3.10.0-693.21.1.el7.x86_64".
2018-03-09T22:49:21.809+01:00| vthread-1| I125: GCC minor version 4 does not match Kernel GCC minor version 4. But that is ok.
2018-03-09T22:49:21.809+01:00| vthread-1| I125: Validating path "/lib/modules/3.10.0-693.21.1.el7.x86_64/build/include" for kernel release "3.10.0-693.21.1.el7.x86_64".
2018-03-09T22:49:21.809+01:00| vthread-1| I125: Failed to find /lib/modules/3.10.0-693.21.1.el7.x86_64/build/include/linux/version.h
2018-03-09T22:49:21.809+01:00| vthread-1| I125: /lib/modules/3.10.0-693.21.1.el7.x86_64/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2018-03-09T22:49:21.809+01:00| vthread-1| I125: using /usr/local/bin/gcc for preprocess check
2018-03-09T22:49:21.826+01:00| vthread-1| I125: Preprocessed UTS_RELEASE, got value "3.10.0-693.21.1.el7.x86_64".
2018-03-09T22:49:21.826+01:00| vthread-1| I125: The header path "/lib/modules/3.10.0-693.21.1.el7.x86_64/build/include" for the kernel "3.10.0-693.21.1.el7.x86_64" is valid. Whoohoo!
2018-03-09T22:49:21.835+01:00| vthread-1| I125: GCC minor version 4 does not match Kernel GCC minor version 4. But that is ok.
2018-03-09T22:49:21.835+01:00| vthread-1| I125: Validating path "/lib/modules/3.10.0-693.21.1.el7.x86_64/build/include" for kernel release "3.10.0-693.21.1.el7.x86_64".
2018-03-09T22:49:21.835+01:00| vthread-1| I125: Failed to find /lib/modules/3.10.0-693.21.1.el7.x86_64/build/include/linux/version.h
2018-03-09T22:49:21.835+01:00| vthread-1| I125: /lib/modules/3.10.0-693.21.1.el7.x86_64/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2018-03-09T22:49:21.835+01:00| vthread-1| I125: using /usr/local/bin/gcc for preprocess check
2018-03-09T22:49:21.853+01:00| vthread-1| I125: Preprocessed UTS_RELEASE, got value "3.10.0-693.21.1.el7.x86_64".
2018-03-09T22:49:21.853+01:00| vthread-1| I125: The header path "/lib/modules/3.10.0-693.21.1.el7.x86_64/build/include" for the kernel "3.10.0-693.21.1.el7.x86_64" is valid. Whoohoo!
2018-03-09T22:49:21.853+01:00| vthread-1| I125: Using temp dir "/tmp".
2018-03-09T22:49:21.857+01:00| vthread-1| I125: Obtaining info using the running kernel.
2018-03-09T22:49:21.857+01:00| vthread-1| I125: Setting header path for 3.10.0-693.21.1.el7.x86_64 to "/lib/modules/3.10.0-693.21.1.el7.x86_64/build/include".
2018-03-09T22:49:21.857+01:00| vthread-1| I125: Validating path "/lib/modules/3.10.0-693.21.1.el7.x86_64/build/include" for kernel release "3.10.0-693.21.1.el7.x86_64".
2018-03-09T22:49:21.857+01:00| vthread-1| I125: Failed to find /lib/modules/3.10.0-693.21.1.el7.x86_64/build/include/linux/version.h
2018-03-09T22:49:21.857+01:00| vthread-1| I125: /lib/modules/3.10.0-693.21.1.el7.x86_64/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2018-03-09T22:49:21.858+01:00| vthread-1| I125: using /usr/local/bin/gcc for preprocess check
2018-03-09T22:49:21.875+01:00| vthread-1| I125: Preprocessed UTS_RELEASE, got value "3.10.0-693.21.1.el7.x86_64".
2018-03-09T22:49:21.875+01:00| vthread-1| I125: The header path "/lib/modules/3.10.0-693.21.1.el7.x86_64/build/include" for the kernel "3.10.0-693.21.1.el7.x86_64" is valid. Whoohoo!
2018-03-09T22:49:22.211+01:00| vthread-1| I125: found symbol version file /lib/modules/3.10.0-693.21.1.el7.x86_64/build/Module.symvers
2018-03-09T22:49:22.211+01:00| vthread-1| I125: Reading symbol versions from /lib/modules/3.10.0-693.21.1.el7.x86_64/build/Module.symvers.
2018-03-09T22:49:22.229+01:00| vthread-1| I125: Read 16075 symbol versions
2018-03-09T22:49:22.229+01:00| vthread-1| I125: Invoking modinfo on "vmmon".
2018-03-09T22:49:22.236+01:00| vthread-1| I125: "/sbin/modinfo" exited with status 256.
2018-03-09T22:49:22.236+01:00| vthread-1| I125: Invoking modinfo on "vmnet".
2018-03-09T22:49:22.244+01:00| vthread-1| I125: "/sbin/modinfo" exited with status 256.
2018-03-09T22:49:22.348+01:00| vthread-1| I125: Setting destination path for vmmon to "/lib/modules/3.10.0-693.21.1.el7.x86_64/misc/vmmon.ko".
2018-03-09T22:49:22.348+01:00| vthread-1| I125: Extracting the vmmon source from "/usr/lib/vmware/modules/source/vmmon.tar".
2018-03-09T22:49:22.390+01:00| vthread-1| I125: Successfully extracted the vmmon source.
2018-03-09T22:49:22.390+01:00| vthread-1| I125: Building module with command "/usr/bin/make -j8 -C /tmp/modconfig-dgt1mf/vmmon-only auto-build HEADER_DIR=/lib/modules/3.10.0-693.21.1.el7.x86_64/build/include CC=/usr/local/bin/gcc IS_GCC_3=no"
2018-03-09T22:49:22.875+01:00| vthread-1| W115: Failed to build vmmon. Failed to execute the build command.
2018-03-09T22:49:22.884+01:00| vthread-1| I125: Setting destination path for vmnet to "/lib/modules/3.10.0-693.21.1.el7.x86_64/misc/vmnet.ko".
2018-03-09T22:49:22.884+01:00| vthread-1| I125: Extracting the vmnet source from "/usr/lib/vmware/modules/source/vmnet.tar".
2018-03-09T22:49:22.906+01:00| vthread-1| I125: Successfully extracted the vmnet source.
2018-03-09T22:49:22.907+01:00| vthread-1| I125: Building module with command "/usr/bin/make -j8 -C /tmp/modconfig-dgt1mf/vmnet-only auto-build HEADER_DIR=/lib/modules/3.10.0-693.21.1.el7.x86_64/build/include CC=/usr/local/bin/gcc IS_GCC_3=no"
2018-03-09T22:49:23.430+01:00| vthread-1| W115: Failed to build vmnet. Failed to execute the build command.
That was the try to patch Workstation 14 with the workstation 12 patch from Darius:
[root@localhost vmnet-fix]# patch -p0 < ~/Downloads/VMware-Workstation-12.5.7-vmnet-RHEL74.patch
patching file vmnet-only/compat_netdevice.h
Hunk #1 FAILED at 337.
1 out of 1 hunk FAILED -- saving rejects to file vmnet-only/compat_netdevice.h.rej
[root@localhost vmnet-fix]#
After that, I tried to install workstation pro 12 ,
but I also had had no success in patching it:
[root@localhost vmnet-fix]# cp /usr/lib/vmware/modules/source/vmnet.tar ./vmnet-12.5.7.tar
[root@localhost vmnet-fix]# tar xf vmnet-12.5.7.tar
[root@localhost vmnet-fix]# patch -p0 < ~/Downloads/VMware-Workstation-12.5.7-vmnet-RHEL74.patch
patching file vmnet-only/compat_netdevice.h
[root@localhost vmnet-fix]# tar cf vmnet.tar vmnet-only/
[root@localhost vmnet-fix]# cp vmnet.tar /usr/lib/vmware/modules/source/vmnet.tar
cp: overwrite ‘/usr/lib/vmware/modules/source/vmnet.tar’? y
[root@localhost vmnet-fix]# vmware-modconfig --console --install-all
Stopping vmware (via systemctl): [ OK ]
Using kernel build system.
make: Entering directory `/tmp/modconfig-sS7npk/vmmon-only'
/usr/bin/make -C /lib/modules/3.10.0-693.21.1.el7.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/kernels/3.10.0-693.21.1.el7.x86_64'
arch/x86/Makefile:166: *** CONFIG_RETPOLINE=y, but not supported by the compiler. Toolchain update recommended.. Stop.
make[1]: Leaving directory `/usr/src/kernels/3.10.0-693.21.1.el7.x86_64'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/modconfig-sS7npk/vmmon-only'
Using kernel build system.
make: Entering directory `/tmp/modconfig-sS7npk/vmnet-only'
/usr/bin/make -C /lib/modules/3.10.0-693.21.1.el7.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/kernels/3.10.0-693.21.1.el7.x86_64'
arch/x86/Makefile:166: *** CONFIG_RETPOLINE=y, but not supported by the compiler. Toolchain update recommended.. Stop.
make[1]: Leaving directory `/usr/src/kernels/3.10.0-693.21.1.el7.x86_64'
make: *** [vmnet.ko] Error 2
make: Leaving directory `/tmp/modconfig-sS7npk/vmnet-only'
Unable to install all modules. See log for details.
[root@localhost vmnet-fix]#
sudo vmware-modconfig --appname="VMware Workstation" --icon="vmware-workstation" --gcc=#PATH_TO_GCC_4.8.5#
Please replace #PATH_TO_GCC_4.8.5# with the path of gcc 4.8.5 in your disk.
In Workstation 14.1, please execute below command:
vmware-modconfig --console --install-all
Please paste console output here.
OK,
I installed Workstation Pro 14.1 newly
(I had removed it to try workstation player. Of cause, I uninstalled workstation player before installing workstation pro)
After that I did:
[root@localhost vmware]# vmware-modconfig --console --install-all
[AppLoader] GLib does not have GSettings support.
Stopping vmware (via systemctl): [ OK ]
Using kernel build system.
make: Entering directory `/tmp/modconfig-ZzMxwx/vmmon-only'
/usr/bin/make -C /lib/modules/3.10.0-693.21.1.el7.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/kernels/3.10.0-693.21.1.el7.x86_64'
arch/x86/Makefile:166: *** CONFIG_RETPOLINE=y, but not supported by the compiler. Toolchain update recommended.. Stop.
make[1]: Leaving directory `/usr/src/kernels/3.10.0-693.21.1.el7.x86_64'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/modconfig-ZzMxwx/vmmon-only'
Using kernel build system.
make: Entering directory `/tmp/modconfig-ZzMxwx/vmnet-only'
/usr/bin/make -C /lib/modules/3.10.0-693.21.1.el7.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/kernels/3.10.0-693.21.1.el7.x86_64'
arch/x86/Makefile:166: *** CONFIG_RETPOLINE=y, but not supported by the compiler. Toolchain update recommended.. Stop.
make[1]: Leaving directory `/usr/src/kernels/3.10.0-693.21.1.el7.x86_64'
make: *** [vmnet.ko] Error 2
make: Leaving directory `/tmp/modconfig-ZzMxwx/vmnet-only'
Unable to install all modules. See log for details.
[root@localhost vmware]#
The kernel you updates includes recent Intel patches. It needs latest gcc.
Please update gcc by "yum install gcc" or "yum upgrade gcc". And then the build passes.
Hello iRunner2016
gcc is up to date.
But this is an amd machine ....
Greetings from Germany, Holger
[root@localhost holger]# yum upgrade gcc
Loaded plugins: fastestmirror, langpacks, nvidia, replace
base | 3.6 kB 00:00
centos-sclo-rh | 3.0 kB 00:00
centos-sclo-sclo | 2.9 kB 00:00
elrepo | 2.9 kB 00:00
epel/x86_64/metalink | 27 kB 00:00
epel | 4.7 kB 00:00
extras | 3.4 kB 00:00
gcsfuse/signature | 454 B 00:00
gcsfuse/signature | 1.4 kB 00:00 !!!
google-chrome | 951 B 00:00
google-cloud-sdk/signature | 454 B 00:00
google-cloud-sdk/signature | 1.4 kB 00:00 !!!
google-earth | 951 B 00:00
google64 | 951 B 00:00
home_Alexx2000 | 1.3 kB 00:00
ius | 2.3 kB 00:00
rdieter-kde4 | 3.0 kB 00:00
remi-safe | 2.9 kB 00:00
updates | 3.4 kB 00:00
virtualbox/7/x86_64/signature | 181 B 00:00
virtualbox/7/x86_64/signature | 1.1 kB 00:00 !!!
(1/3): ius/x86_64/primary_db | 250 kB 00:00
(2/3): epel/x86_64/updateinfo | 902 kB 00:02
(3/3): epel/x86_64/primary_db | 6.3 MB 00:10
Loading mirror speeds from cached hostfile
* base: mirror.checkdomain.de
* elrepo: ftp.nluug.nl
* epel: mirror.de.leaseweb.net
* extras: centos.mirrors.as250.net
* ius: mirror.amsiohosting.net
* remi-safe: nl.mirror.babylon.network
* updates: mirror1.hs-esslingen.de
No packages marked for update
OK:
Now I did this, without success:
-installed devtools 7
[root@localhost ~]# gcc --version
gcc (GCC) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@localhost ~]# scl enable devtoolset-7 bash
[root@localhost ~]# gcc --version
gcc (GCC) 7.2.1 20170829 (Red Hat 7.2.1-1)
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@localhost ~]# vmware-modconfig --console --install-all
[AppLoader] GLib does not have GSettings support.
Failed to get gcc information.
[root@localhost ~]# vmware-modconfig --console --install-all
[AppLoader] GLib does not have GSettings support.
Failed to get gcc information.
[root@localhost ~]#
Building kernel modules requires gcc whose major version equivalent to the compiler to build the kernel. So, gcc 5.x/6.x/7.x should not be valid compilers.
I can reproduce exactly the same error log on my Intel machine. After I upgrade the gcc to 4.8.5-16.el7_4.2, the modules can be successfully built.
Could you please try again with the gcc above?
Btw, did you change the default source to obtain upgrades or software?
---------------------------
160 # Avoid indirect branches in kernel to deal with Spectre
161 ifdef CONFIG_RETPOLINE
162 RETPOLINE_CFLAGS += $(call cc-option,-mindirect-branch=thunk-extern -mindirect-branch-register)
163 ifneq ($(RETPOLINE_CFLAGS),)
164 KBUILD_CFLAGS += $(RETPOLINE_CFLAGS) -DRETPOLINE
165 else
166 $(error CONFIG_RETPOLINE=y, but not supported by the compiler. Toolchain update recommended.)
167 endif
168 endif
---------------------------
Hello iRunner2016,
thank you for your effort first.
Sorry, what must I do?
My default gcc version is 4.9.2.
Should I downgrade to 4.8.5 ?
How?
I did not change any default sources, I only added some repos to yum.
(I also does not know, how to......)
What shall I do with the scipting, which you attached?
Greetings,
Holger
I will be out of office next week,
so maybe, that I try the next hint initial next weekend.
The script comes from /usr/src/kernels/3.10.0-693.21.1.el7.x86_64/arch/x86/Makefile:166, where the error happens.
From the error log, to build your specified kernel, latest gcc is needed. Not mean the latest major version, but the latest maintenance release of 4.8.5.
If no special requirement, could you please remove current gcc 4.9.2, and then install gcc 4.8.5-16.el7_4.2 with the command below?
yum install gcc-4.8.5-16.el7_4.2.x86_64
Sorry:
I did it:
[root@localhost holger]# yum install gcc-4.8.5-16.el7_4.2.x86_64
Loaded plugins: fastestmirror, langpacks, nvidia, replace
Loading mirror speeds from cached hostfile
* base: centos.mirrors.as250.net
* elrepo: ftp.nluug.nl
* epel: ftp.fau.de
* extras: ftp.rrzn.uni-hannover.de
* ius: mirror.amsiohosting.net
* remi-safe: nl.mirror.babylon.network
* updates: mirror1.hs-esslingen.de
Package gcc-4.8.5-16.el7_4.2.x86_64 already installed and latest version
Nothing to do
[root@localhost holger]#
What must I do next?
Greetings,
H.Steffen
sudo vmware-modconfig --appname="VMware Workstation" --icon="vmware-workstation" --gcc=#PATH_TO_GCC_4.8.5#
Please replace #PATH_TO_GCC_4.8.5# with the path of gcc 4.8.5 in your disk.
Thank you very much, iRunner,
VMWare is running again.
I did it slightly different:
[root@localhost bin]# cd /usr/local/bin/
[root@localhost bin]# mv gcc frage_muell_ccg_frage_muell
[root@localhost bin]# ls -la gcc
ls: cannot access gcc: No such file or directory
[root@localhost ~]# gcc --version
bash: /usr/local/bin/gcc: No such file or directory
[root@localhost bin]# ls -l /usr/bin/gcc
-rwxr-xr-x. 2 root root 768608 Mar 6 21:35 /usr/bin/gcc
[root@localhost bin]# ls -l /bin/gcc
-rwxr-xr-x. 2 root root 768608 Mar 6 21:35 /bin/gcc
[root@localhost bin]# yum install gcc-4.8.5-16.el7_4.2.x86_64
Loaded plugins: fastestmirror, langpacks, nvidia, replace
.
.
.
Running transaction
Installing : gcc-4.8.5-16.el7_4.2.x86_64 1/1
Verifying : gcc-4.8.5-16.el7_4.2.x86_64 1/1
Installed:
gcc.x86_64 0:4.8.5-16.el7_4.2
Complete!
[root@localhost bin]# gcc --version
bash: /usr/local/bin/gcc: No such file or directory
[root@localhost ~]# ln -s /usr/bin/gcc /usr/local/bin/gcc
[root@localhost ~]# gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@localhost ~]# vmware-modconfig --appname="VMware Workstation" --icon="vmware-workstation"
Stopping vmware (via systemctl): [ OK ]
Using kernel build system.
.
.
.
It worked!!!!
Have a nice weekend!
Holger Steffen