Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: VMPLAYER cannot be installed - GCC version mismatch?

  1. #11
    Join Date
    Sep 2008
    Location
    Montevideo, Uruguay
    Posts
    80

    Default Re: VMPLAYER cannot be installed - GCC version mismatch?

    Quote Originally Posted by gogalthorp View Post
    Do you actually have gcc installed??
    Hi! Yes, of course; I provided the version in my first email.

    Thanks!

  2. #12
    Join Date
    Sep 2008
    Location
    Montevideo, Uruguay
    Posts
    80

    Exclamation Re: VMPLAYER cannot be installed - GCC version mismatch?

    Quote Originally Posted by tsu2 View Post
    OK,

    First, let's get the package info for your existing gcc
    Code:
    zypper info gcc
    Also the package contents
    Code:
    rpm -ql gcc
    Just verifying that the gcc you're pointing to is actually what the VMware install is likely pointing to.
    Seems to me that if you are actually able to enter a path to the gcc the install wants, that should be sufficient even if the VMware install's default path to find the gcc is somehow incorrect.

    Consider also that although the VMware install might be asking for gcc 5.3.1, that version of gcc isn't actually compatible... That's what I found about a half(maybe slightly longer) year ago but don't know if that should still be the case today. My solution then was to compile with gcc46(installable from the TW repo).

    TSU
    Hi!

    I think you nailed it... gcc -v shows version 5.3.1, but zypper thinks otherwise:

    Code:
    # zypper info gcc
    Loading repository data...
    Reading installed packages...
    
    
    Information for package gcc:
    ----------------------------
    Repository: Tumbleweed OSS
    Name: gcc
    Version: 5-2.50
    Arch: x86_64
    Vendor: openSUSE
    Installed: Yes
    Status: up-to-date
    Installed Size: 0 B
    Summary: The system GNU C Compiler
    Description:  
      The system GNU C Compiler.
    Code:
    # rpm -ql gcc
    /usr/bin/cc
    /usr/bin/gcc
    /usr/bin/gcc-ar
    /usr/bin/gcc-nm
    /usr/bin/gcc-ranlib
    /usr/bin/gcov
    /usr/lib/bfd-plugins
    /usr/lib/bfd-plugins/liblto_plugin.so.0.0.0
    /usr/share/man/man1/cc.1.gz
    /usr/share/man/man1/gcc.1.gz
    /usr/share/man/man1/gcov.1.gz
    Code:
    
    # gcc -v
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/5/lto-wrapper
    Target: x86_64-suse-linux
    Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,o
    bj-c++,java,ada,go --enable-checking=release --with-gxx-include-dir=/usr/include/c++/5 --enable-ssp --disable-libssp --disable-libvtv --enable-libmpx --disable-plugin --with-bug
    url=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --d
    isable-libstdcxx-pch --enable-version-specific-runtime-libs --enable-linker-build-id --enable-linux-futex --program-suffix=-5 --without-system-libunwind --enable-multilib --with
    -arch-32=x86-64 --with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux
    Thread model: posix
    gcc version 5.3.1 20160412 [gcc-5-branch revision 234894] (SUSE Linux)
    So... how come gcc reports a different version? And how can I fix this?

    Best regards,
    FK

  3. #13
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    3,981

    Default AW: VMPLAYER cannot be installed - GCC version mismatch?


  4. #14
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,299
    Blog Entries
    2

    Default Re: VMPLAYER cannot be installed - GCC version mismatch?

    Taking a look on my test TW,
    I'm seeing the same gcc version mis-match you're seeing.
    Not sure what it means, and I don't do too much on this TW so not sure when this might have happened and what might be affected.

    Trying to remember what I did long ago to resolve installing VMware on this TW, I think I uninstalled gcc and simply installed gcc46 and things worked... But it looks like today gcc46 (and all gcc4x) has been fully deprecated and is no longer available... The only versions now are gcc5 and gcc6. Since the existing gcc links to gcc5, I'm suggesting the following (I can't test until I build another TW since I already have VMware installed on my existing TW). I recommend the following steps which install gcc6 and manually create a symbolic link between gcc and the gcc6 binary. Unfortunately, although you can install gcc versions side by side you can't switch between them easily except to explicitly name the gcc binary (I submitted a request for openSUSE to enable update-alternatives to manage gcc versions with no response yet), so the following are required to point gcc to something other than what is configured by the gcc package.

    - Uninstall gcc5. This will also remove gcc
    Code:
    zypper rm gcc5
    - Install gcc6 (this is just a try)
    Code:
    zypper in gcc6
    - Unfortunately installing gcc6 does not automatically link the gcc binary to gcc6, so the following creates the symbolic link <only> for the gcc binary (there are other parts to the gcc6 package that probably aren't necessary)
    Code:
    ln /usr/bin/gcc-6 /usr/bin/gcc
    Check your gcc version
    Code:
    gcc --version
    And now you can try running the VMware Player installer again.
    If it doesn't work, you can try installing only gcc5 (without the gcc package) and try creating a symbolic link to that the same way I described doing this for gcc6.

    As for the VMware discussion thread referenced by Saurland, I see two issues trying to be addressed in that thread...
    - The compiler being used to compile the VMware KLM is older than the compiler that might have been used to compile the kernel. My suggestion to try to step up to gcc6 should address that, the compiler used for compiling the VMware modules will be <newer> than what was used to compile the kernel. Although possible, I'm not necessarily convinced if this scenario exists that it should be a regular issue. Using different version compilers do not guarantee errors, only raises possibilities of errors so the problem seen in those versions a year ago won't necessarily be seen with today's versions.
    - A gtk error. It's only a warning that a particular theme won't be loaded. Should be non-critical, unless you want some control over appearance, IMO whatever default is used should be functional.

    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. #15
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,299
    Blog Entries
    2

    Default Re: VMPLAYER cannot be installed - GCC version mismatch?

    I built a new TW and took a look at this...

    First disregard the tries I suggest in the above post, they do not work.

    Despite the error displayed by VMware, the problem isn't likely a gcc version mis-match, the problem is likely a plain and simple situation that the VMware install code isn't supported by any leading/bleeding edge gcc.

    The complete description of the process is that the VMware Player installation does succeed initially, but fails trying to build KLM (Kernel Loadable Modules) when VMware Player is launched for the first time.

    When you try to launch VMware Player, it throws the "gcc 5.3.1 not found" error.
    The way to gain access to the install log which includes the errors and backtrace is to launch VMware Player from the command line with the "--help" flag as follows,
    Code:
    vmyer --help
    Inspecting the contents, there's nothing I can use to troubleshoot this problem further.

    @fkereki
    I recommend you raise an issue in the VMware Support Forums and include the install log I describe, it should include the necessary info for VMware to fix the problem.

    As always, although it's important for people with time to find these errors, for anyone who uses their machines for Productive Work to not use TW particularly as a virtualization Host (It's OK as a Guest). Today, LEAP or 13.2 should be your stable choices for a HostOS.

    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!

  6. #16
    Join Date
    Sep 2008
    Location
    Montevideo, Uruguay
    Posts
    80

    Thumbs up Re: VMPLAYER cannot be installed - GCC version mismatch?

    Inspecting the contents, there's nothing I can use to troubleshoot this problem further.

    @fkereki
    I recommend you raise an issue in the VMware Support Forums and include the install log I describe, it should include the necessary info for VMware to fix the problem.
    Thanks for the tip; I'll try this out. I also experimented un-installing and re-installing gcc, but it didn't work.

Page 2 of 2 FirstFirst 12

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
  •