Installing VMware on 18.04: Failed to build vmmon
I am trying to install VMware with the instructions at https://help.ubuntu.com/community/VMware/Player
I get an error that tells me to look into a log file, which contains:
Extracting the vmmon source from "/usr/lib/vmware/modules/source/vmmon.tar".
Successfully extracted the vmmon source.
Building module with command "/usr/bin/make -j4 -C /tmp/modconfig-GoVdrH/vmmon-only auto-build HEADER_DIR=/lib/modules/4.15.0-22-generic/build/include CC=/usr/bin/gcc IS_GCC_3=no"
Failed to build vmmon. Failed to execute the build command.
To figure out what was wrong exactly, I ran vmware-modconfig --console --install-all
on the command line, and it revealed these errors:
./arch/x86/include/asm/processor-flags.h:39:0: note: this is the location of the previous definition
#define CR3_PCID_MASK 0xFFFull
^
/tmp/modconfig-3S1CBa/vmmon-only/linux/driver.c:256:12: error: ‘struct timer_list’ has no member named ‘data’
tscTimer.data = 0;
unsigned int lockedPages = global_page_state(NR_PAGETABLE) +
^~~~~~~~~~~~~~~~~
global_numa_state
/tmp/modconfig-3S1CBa/vmmon-only/linux/driver.c: In function ‘init_module’:
/tmp/modconfig-3S1CBa/vmmon-only/linux/driver.c:338:4: error: implicit declaration of function ‘init_timer’; did you mean ‘init_timers’? [-Werror=implicit-function-declaration]
init_timer(&tscTimer);
^~~~~~~~~~
init_timers
/tmp/modconfig-3S1CBa/vmmon-only/linux/hostif.c: In function ‘HostIF_InitUptime’:
init_timers
/tmp/modconfig-3S1CBa/vmmon-only/linux/hostif.c:1754:31: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
uptimeState.timer.function = HostIFUptimeResyncMono;
LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max - TSC min
^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/tmp/modconfig-3S1CBa/vmmon-only/linux/hostif.o' failed
make[2]: *** [/tmp/modconfig-3S1CBa/vmmon-only/linux/hostif.o] Error 1
Makefile:110: recipe for target 'vmmon.ko' failed
make: *** [vmmon.ko] Error 2
How to fix it, or make implicit-function-declaration and incompatible-pointer-types be not considered as errros?
Or any easier method to install the latest VMware on 18.04?
Note: Different error from VMWare Workstation Pro 12 on Ubuntu 16.04 cannot compile vmmon
18.04 vmware
add a comment |
I am trying to install VMware with the instructions at https://help.ubuntu.com/community/VMware/Player
I get an error that tells me to look into a log file, which contains:
Extracting the vmmon source from "/usr/lib/vmware/modules/source/vmmon.tar".
Successfully extracted the vmmon source.
Building module with command "/usr/bin/make -j4 -C /tmp/modconfig-GoVdrH/vmmon-only auto-build HEADER_DIR=/lib/modules/4.15.0-22-generic/build/include CC=/usr/bin/gcc IS_GCC_3=no"
Failed to build vmmon. Failed to execute the build command.
To figure out what was wrong exactly, I ran vmware-modconfig --console --install-all
on the command line, and it revealed these errors:
./arch/x86/include/asm/processor-flags.h:39:0: note: this is the location of the previous definition
#define CR3_PCID_MASK 0xFFFull
^
/tmp/modconfig-3S1CBa/vmmon-only/linux/driver.c:256:12: error: ‘struct timer_list’ has no member named ‘data’
tscTimer.data = 0;
unsigned int lockedPages = global_page_state(NR_PAGETABLE) +
^~~~~~~~~~~~~~~~~
global_numa_state
/tmp/modconfig-3S1CBa/vmmon-only/linux/driver.c: In function ‘init_module’:
/tmp/modconfig-3S1CBa/vmmon-only/linux/driver.c:338:4: error: implicit declaration of function ‘init_timer’; did you mean ‘init_timers’? [-Werror=implicit-function-declaration]
init_timer(&tscTimer);
^~~~~~~~~~
init_timers
/tmp/modconfig-3S1CBa/vmmon-only/linux/hostif.c: In function ‘HostIF_InitUptime’:
init_timers
/tmp/modconfig-3S1CBa/vmmon-only/linux/hostif.c:1754:31: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
uptimeState.timer.function = HostIFUptimeResyncMono;
LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max - TSC min
^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/tmp/modconfig-3S1CBa/vmmon-only/linux/hostif.o' failed
make[2]: *** [/tmp/modconfig-3S1CBa/vmmon-only/linux/hostif.o] Error 1
Makefile:110: recipe for target 'vmmon.ko' failed
make: *** [vmmon.ko] Error 2
How to fix it, or make implicit-function-declaration and incompatible-pointer-types be not considered as errros?
Or any easier method to install the latest VMware on 18.04?
Note: Different error from VMWare Workstation Pro 12 on Ubuntu 16.04 cannot compile vmmon
18.04 vmware
you could try the solutions here
– ptetteh227
May 31 '18 at 0:48
add a comment |
I am trying to install VMware with the instructions at https://help.ubuntu.com/community/VMware/Player
I get an error that tells me to look into a log file, which contains:
Extracting the vmmon source from "/usr/lib/vmware/modules/source/vmmon.tar".
Successfully extracted the vmmon source.
Building module with command "/usr/bin/make -j4 -C /tmp/modconfig-GoVdrH/vmmon-only auto-build HEADER_DIR=/lib/modules/4.15.0-22-generic/build/include CC=/usr/bin/gcc IS_GCC_3=no"
Failed to build vmmon. Failed to execute the build command.
To figure out what was wrong exactly, I ran vmware-modconfig --console --install-all
on the command line, and it revealed these errors:
./arch/x86/include/asm/processor-flags.h:39:0: note: this is the location of the previous definition
#define CR3_PCID_MASK 0xFFFull
^
/tmp/modconfig-3S1CBa/vmmon-only/linux/driver.c:256:12: error: ‘struct timer_list’ has no member named ‘data’
tscTimer.data = 0;
unsigned int lockedPages = global_page_state(NR_PAGETABLE) +
^~~~~~~~~~~~~~~~~
global_numa_state
/tmp/modconfig-3S1CBa/vmmon-only/linux/driver.c: In function ‘init_module’:
/tmp/modconfig-3S1CBa/vmmon-only/linux/driver.c:338:4: error: implicit declaration of function ‘init_timer’; did you mean ‘init_timers’? [-Werror=implicit-function-declaration]
init_timer(&tscTimer);
^~~~~~~~~~
init_timers
/tmp/modconfig-3S1CBa/vmmon-only/linux/hostif.c: In function ‘HostIF_InitUptime’:
init_timers
/tmp/modconfig-3S1CBa/vmmon-only/linux/hostif.c:1754:31: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
uptimeState.timer.function = HostIFUptimeResyncMono;
LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max - TSC min
^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/tmp/modconfig-3S1CBa/vmmon-only/linux/hostif.o' failed
make[2]: *** [/tmp/modconfig-3S1CBa/vmmon-only/linux/hostif.o] Error 1
Makefile:110: recipe for target 'vmmon.ko' failed
make: *** [vmmon.ko] Error 2
How to fix it, or make implicit-function-declaration and incompatible-pointer-types be not considered as errros?
Or any easier method to install the latest VMware on 18.04?
Note: Different error from VMWare Workstation Pro 12 on Ubuntu 16.04 cannot compile vmmon
18.04 vmware
I am trying to install VMware with the instructions at https://help.ubuntu.com/community/VMware/Player
I get an error that tells me to look into a log file, which contains:
Extracting the vmmon source from "/usr/lib/vmware/modules/source/vmmon.tar".
Successfully extracted the vmmon source.
Building module with command "/usr/bin/make -j4 -C /tmp/modconfig-GoVdrH/vmmon-only auto-build HEADER_DIR=/lib/modules/4.15.0-22-generic/build/include CC=/usr/bin/gcc IS_GCC_3=no"
Failed to build vmmon. Failed to execute the build command.
To figure out what was wrong exactly, I ran vmware-modconfig --console --install-all
on the command line, and it revealed these errors:
./arch/x86/include/asm/processor-flags.h:39:0: note: this is the location of the previous definition
#define CR3_PCID_MASK 0xFFFull
^
/tmp/modconfig-3S1CBa/vmmon-only/linux/driver.c:256:12: error: ‘struct timer_list’ has no member named ‘data’
tscTimer.data = 0;
unsigned int lockedPages = global_page_state(NR_PAGETABLE) +
^~~~~~~~~~~~~~~~~
global_numa_state
/tmp/modconfig-3S1CBa/vmmon-only/linux/driver.c: In function ‘init_module’:
/tmp/modconfig-3S1CBa/vmmon-only/linux/driver.c:338:4: error: implicit declaration of function ‘init_timer’; did you mean ‘init_timers’? [-Werror=implicit-function-declaration]
init_timer(&tscTimer);
^~~~~~~~~~
init_timers
/tmp/modconfig-3S1CBa/vmmon-only/linux/hostif.c: In function ‘HostIF_InitUptime’:
init_timers
/tmp/modconfig-3S1CBa/vmmon-only/linux/hostif.c:1754:31: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
uptimeState.timer.function = HostIFUptimeResyncMono;
LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max - TSC min
^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/tmp/modconfig-3S1CBa/vmmon-only/linux/hostif.o' failed
make[2]: *** [/tmp/modconfig-3S1CBa/vmmon-only/linux/hostif.o] Error 1
Makefile:110: recipe for target 'vmmon.ko' failed
make: *** [vmmon.ko] Error 2
How to fix it, or make implicit-function-declaration and incompatible-pointer-types be not considered as errros?
Or any easier method to install the latest VMware on 18.04?
Note: Different error from VMWare Workstation Pro 12 on Ubuntu 16.04 cannot compile vmmon
18.04 vmware
18.04 vmware
asked May 30 '18 at 10:16
Nicolas RaoulNicolas Raoul
5,0772064115
5,0772064115
you could try the solutions here
– ptetteh227
May 31 '18 at 0:48
add a comment |
you could try the solutions here
– ptetteh227
May 31 '18 at 0:48
you could try the solutions here
– ptetteh227
May 31 '18 at 0:48
you could try the solutions here
– ptetteh227
May 31 '18 at 0:48
add a comment |
2 Answers
2
active
oldest
votes
Install the latest version 14.1.2. The bug has been fixed. See here. Here is the download link.
add a comment |
I found a solution and create a script file based on mkucebek's github sources .
You must create a file with this content and run it each time it's needed (Usually when you install a new kernel) :
#!/bin/bash
VMWARE_VERSION=workstation-12.5.9
TMP_FOLDER=/tmp/patch-vmware
rm -fdr $TMP_FOLDER
mkdir -p $TMP_FOLDER
cd $TMP_FOLDER
git clone https://github.com/mkubecek/vmware-host-modules.git
cd $TMP_FOLDER/vmware-host-modules
git checkout $VMWARE_VERSION
git fetch
make
sudo make install
sudo rm /usr/lib/vmware/lib/libz.so.1/libz.so.1
sudo ln -s /lib/x86_64-linux-gnu/libz.so.1
/usr/lib/vmware/lib/libz.so.1/libz.so.1
sudo /etc/init.d/vmware restart
Then, you just have to launch VMware Workstation without building modules.
Hi Charly, welcome to askubuntu! Please add the links in your next post.
– abu_bua
Jul 4 '18 at 13:16
Version mismatch with vmmon module: expecting 329.0, got 309.0. You have an incorrect version of the 'vmmon' kernel module. Try reinstalling VMware Workstation.
– user1908202
Nov 1 '18 at 2:33
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1041912%2finstalling-vmware-on-18-04-failed-to-build-vmmon%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Install the latest version 14.1.2. The bug has been fixed. See here. Here is the download link.
add a comment |
Install the latest version 14.1.2. The bug has been fixed. See here. Here is the download link.
add a comment |
Install the latest version 14.1.2. The bug has been fixed. See here. Here is the download link.
Install the latest version 14.1.2. The bug has been fixed. See here. Here is the download link.
edited May 31 '18 at 12:06
answered May 31 '18 at 0:11
MichaelMichael
363110
363110
add a comment |
add a comment |
I found a solution and create a script file based on mkucebek's github sources .
You must create a file with this content and run it each time it's needed (Usually when you install a new kernel) :
#!/bin/bash
VMWARE_VERSION=workstation-12.5.9
TMP_FOLDER=/tmp/patch-vmware
rm -fdr $TMP_FOLDER
mkdir -p $TMP_FOLDER
cd $TMP_FOLDER
git clone https://github.com/mkubecek/vmware-host-modules.git
cd $TMP_FOLDER/vmware-host-modules
git checkout $VMWARE_VERSION
git fetch
make
sudo make install
sudo rm /usr/lib/vmware/lib/libz.so.1/libz.so.1
sudo ln -s /lib/x86_64-linux-gnu/libz.so.1
/usr/lib/vmware/lib/libz.so.1/libz.so.1
sudo /etc/init.d/vmware restart
Then, you just have to launch VMware Workstation without building modules.
Hi Charly, welcome to askubuntu! Please add the links in your next post.
– abu_bua
Jul 4 '18 at 13:16
Version mismatch with vmmon module: expecting 329.0, got 309.0. You have an incorrect version of the 'vmmon' kernel module. Try reinstalling VMware Workstation.
– user1908202
Nov 1 '18 at 2:33
add a comment |
I found a solution and create a script file based on mkucebek's github sources .
You must create a file with this content and run it each time it's needed (Usually when you install a new kernel) :
#!/bin/bash
VMWARE_VERSION=workstation-12.5.9
TMP_FOLDER=/tmp/patch-vmware
rm -fdr $TMP_FOLDER
mkdir -p $TMP_FOLDER
cd $TMP_FOLDER
git clone https://github.com/mkubecek/vmware-host-modules.git
cd $TMP_FOLDER/vmware-host-modules
git checkout $VMWARE_VERSION
git fetch
make
sudo make install
sudo rm /usr/lib/vmware/lib/libz.so.1/libz.so.1
sudo ln -s /lib/x86_64-linux-gnu/libz.so.1
/usr/lib/vmware/lib/libz.so.1/libz.so.1
sudo /etc/init.d/vmware restart
Then, you just have to launch VMware Workstation without building modules.
Hi Charly, welcome to askubuntu! Please add the links in your next post.
– abu_bua
Jul 4 '18 at 13:16
Version mismatch with vmmon module: expecting 329.0, got 309.0. You have an incorrect version of the 'vmmon' kernel module. Try reinstalling VMware Workstation.
– user1908202
Nov 1 '18 at 2:33
add a comment |
I found a solution and create a script file based on mkucebek's github sources .
You must create a file with this content and run it each time it's needed (Usually when you install a new kernel) :
#!/bin/bash
VMWARE_VERSION=workstation-12.5.9
TMP_FOLDER=/tmp/patch-vmware
rm -fdr $TMP_FOLDER
mkdir -p $TMP_FOLDER
cd $TMP_FOLDER
git clone https://github.com/mkubecek/vmware-host-modules.git
cd $TMP_FOLDER/vmware-host-modules
git checkout $VMWARE_VERSION
git fetch
make
sudo make install
sudo rm /usr/lib/vmware/lib/libz.so.1/libz.so.1
sudo ln -s /lib/x86_64-linux-gnu/libz.so.1
/usr/lib/vmware/lib/libz.so.1/libz.so.1
sudo /etc/init.d/vmware restart
Then, you just have to launch VMware Workstation without building modules.
I found a solution and create a script file based on mkucebek's github sources .
You must create a file with this content and run it each time it's needed (Usually when you install a new kernel) :
#!/bin/bash
VMWARE_VERSION=workstation-12.5.9
TMP_FOLDER=/tmp/patch-vmware
rm -fdr $TMP_FOLDER
mkdir -p $TMP_FOLDER
cd $TMP_FOLDER
git clone https://github.com/mkubecek/vmware-host-modules.git
cd $TMP_FOLDER/vmware-host-modules
git checkout $VMWARE_VERSION
git fetch
make
sudo make install
sudo rm /usr/lib/vmware/lib/libz.so.1/libz.so.1
sudo ln -s /lib/x86_64-linux-gnu/libz.so.1
/usr/lib/vmware/lib/libz.so.1/libz.so.1
sudo /etc/init.d/vmware restart
Then, you just have to launch VMware Workstation without building modules.
edited Jul 5 '18 at 6:21
abu_bua
3,55681328
3,55681328
answered Jul 4 '18 at 11:51
CharlyCharly
111
111
Hi Charly, welcome to askubuntu! Please add the links in your next post.
– abu_bua
Jul 4 '18 at 13:16
Version mismatch with vmmon module: expecting 329.0, got 309.0. You have an incorrect version of the 'vmmon' kernel module. Try reinstalling VMware Workstation.
– user1908202
Nov 1 '18 at 2:33
add a comment |
Hi Charly, welcome to askubuntu! Please add the links in your next post.
– abu_bua
Jul 4 '18 at 13:16
Version mismatch with vmmon module: expecting 329.0, got 309.0. You have an incorrect version of the 'vmmon' kernel module. Try reinstalling VMware Workstation.
– user1908202
Nov 1 '18 at 2:33
Hi Charly, welcome to askubuntu! Please add the links in your next post.
– abu_bua
Jul 4 '18 at 13:16
Hi Charly, welcome to askubuntu! Please add the links in your next post.
– abu_bua
Jul 4 '18 at 13:16
Version mismatch with vmmon module: expecting 329.0, got 309.0. You have an incorrect version of the 'vmmon' kernel module. Try reinstalling VMware Workstation.
– user1908202
Nov 1 '18 at 2:33
Version mismatch with vmmon module: expecting 329.0, got 309.0. You have an incorrect version of the 'vmmon' kernel module. Try reinstalling VMware Workstation.
– user1908202
Nov 1 '18 at 2:33
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1041912%2finstalling-vmware-on-18-04-failed-to-build-vmmon%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
you could try the solutions here
– ptetteh227
May 31 '18 at 0:48