Results 1 to 5 of 5

Thread: Cannot compile VMware WS 12.5.2 on latest Tumbleweed build

  1. #1

    Default Cannot compile VMware WS 12.5.2 on latest Tumbleweed build

    Hi:

    I'm running into errors trying to compile VMware WS 12.5.2 on TW with kernel 4.9.10-1-default. So far non of the suggestions are working. Here's one example output
    ------------------------------------------------------------------------------------------------------------------------------------------------

    marty@openSUSE:/tmp/vmware/source/vmnet-only> sudo make
    Using kernel build system.
    make -C /lib/modules/4.9.10-1-default/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
    MODULEBUILDDIR= modules
    make[1]: Entering directory '/usr/src/linux-4.9.10-1-obj/x86_64/default'
    CC [M] /tmp/vmware/source/vmnet-only/userif.o
    /tmp/vmware/source/vmnet-only/userif.c: In function ‘UserifLockPage’:
    /tmp/vmware/source/vmnet-only/userif.c:117:43: error: passing argument 5 of ‘get_user_pages’ from incompatible pointer type [-Werror=incompatible-pointer-types]
    retval = get_user_pages(addr, 1, 1, 0, &page, NULL);
    ^
    In file included from /usr/src/linux-4.9.10-1/include/linux/highmem.h:7:0,
    from /tmp/vmware/source/vmnet-only/userif.c:26:
    /usr/src/linux-4.9.10-1/include/linux/mm.h:1280:6: note: expected ‘struct vm_area_struct **’ but argument is of type ‘struct page **’
    long get_user_pages(unsigned long start, unsigned long nr_pages,
    ^~~~~~~~~~~~~~
    /tmp/vmware/source/vmnet-only/userif.c:117:13: error: too many arguments to function ‘get_user_pages’
    retval = get_user_pages(addr, 1, 1, 0, &page, NULL);
    ^~~~~~~~~~~~~~
    In file included from /usr/src/linux-4.9.10-1/include/linux/highmem.h:7:0,
    from /tmp/vmware/source/vmnet-only/userif.c:26:
    /usr/src/linux-4.9.10-1/include/linux/mm.h:1280:6: note: declared here
    long get_user_pages(unsigned long start, unsigned long nr_pages,
    ^~~~~~~~~~~~~~
    cc1: some warnings being treated as errors
    make[4]: *** [/usr/src/linux-4.9.10-1/scripts/Makefile.build:295: /tmp/vmware/source/vmnet-only/userif.o] Error 1
    make[3]: *** [/usr/src/linux-4.9.10-1/Makefile:1500: _module_/tmp/vmware/source/vmnet-only] Error 2
    make[2]: *** [Makefile:150: sub-make] Error 2
    make[1]: *** [Makefile:24: __sub-make] Error 2
    make[1]: Leaving directory '/usr/src/linux-4.9.10-1-obj/x86_64/default'
    make: *** [Makefile:120: vmnet.ko] Error 2

    -------------------------------------------------------------------------------

    If anyone has installed VMware WS on TW using kernel 4.9.10 (or perhaps an earlier 4.9 I appreciate ideas on how make WS work.

    TIA

  2. #2

  3. #3

    Default Re: AW: Cannot compile VMware WS 12.5.2 on latest Tumbleweed build

    Thanks for the reply. I have tried the first two links (they are the same). That patch did not work for me and I have emailed the author with the output from the script. Have not received a reply yet but hope to as that seems to be the latest - just a month ago or so.

    I do have a license for the Windows version and I have Windows 10 & Windows Server 2016 in a triple boot with openSUSE but would much prefer to install on openSUSE Linux. It works perfectly on Leap but since I've upgraded to TW I'd rather stay with it for some time.

  4. #4
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,952
    Blog Entries
    2

    Default Re: Cannot compile VMware WS 12.5.2 on latest Tumbleweed build

    If you can do it,
    It makes a lot more sense to run LEAP as your multi-boot OS and then TW in a Guest.
    Be aware that as long as TW is your HostOS, you'll likely continue to run into these kinds of problems.

    IMO,
    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  5. #5

    Default Re: Cannot compile VMware WS 12.5.2 on latest Tumbleweed build

    Yes I absolutely realize that. So I upgraded Leap to TW directly using zypper viz

    --------------------------------------------------------------------------------------------------

    Step 1: First of all make a backup of the current Leap repositories by creating a new folder “old” and moving the Leap repos into that folder. You will have to run all the commands as root user

    su -
    mkdir /etc/zypp/repos.d/old
    mv /etc/zypp/repos.d/*.repo /etc/zypp/repos.d/leap

    Step 2: Add the new Official repositories, Tumbleweed repositories.

    zypper ar -f -c http://download.opensuse.org/tumbleweed/repo/oss repo-oss
    zypper ar -f -c http://download.opensuse.org/tumbleweed/repo/non-oss repo-non-oss
    zypper ar -f -c http://download.opensuse.org/tumbleweed/repo/debug repo-debug
    zypper ar -f -c http://download.opensuse.org/update/tumbleweed/ repo-update

    Step 3: Check the installed repositories by running the command:

    zypper lr -u

    This will list all the available repositories that you have added to your system.

    Step 4: Refresh the repositories accept the new gpg keys.

    zypper --gpg-auto-import-keys ref

    Step 5: Upgrade the system:

    sudo zypper dup

    --------------------------------------------

    Now I also mkdir /etc/zypp/repos.d/tumbleweed and copy all the TW to this subdir. Now if I wish I can rm /etc/zypp/repos.d/*.repo and then use zypper to add all the leap repos and perform a rollback to Leap. I haven't tried this yet because I would rather see some of the openSUSE wizards get around to compiling Workstation on the 4.10 kernel. Indeed since I am tripling booting with Windows 10 Insider and Windows Server 2016 I can and will install Workstation for Windows on Windows 10 and still have my Hyper-V machines on Windows Server. I two 1TB drives avaialble to install Windows and Linux VMs.

    I just love openSUSE. And I have lots of fun

    Cheers

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •