vmware vmplayer unable to install all modules ubuntu

While installing the vmplayer 16.1.2 in ubuntu 20.04 the installation failed with the error message

The logs indicated that the issue with the installation of the module vmmon. One of the workaround that worked was to download the source file from

After downloading, unzip the files and go to the folder vmmon-only/include . Open the file vm_asm_x86.h and comment out a part of the code a shown in the figure below.

Now rebuild the new modules and install using the follwing set of commands, running them inside the new folder that was downloaded from the above link.

Now launch the vmplayer, it should open with out any errors. Please note that the solution has been verified on the specific version mentioned so it might or might not work on all versions.