8 Replies Latest reply on Sep 13, 2017 4:18 AM by Matthias Hehnen

    Fedora 26: gcc not found

    VMwareCA Lurker

      (vmware-modconfig:3228): GLib-CRITICAL **: g_file_test: assertion 'filename != NULL' failed

       

      VMware Kernel Module Updater can't detect gcc 7.1.1 in /usr/bin.  Which is strange.  I came up with the error and couldn't resolve it, so I cancelled it and VMware Preview was actually running but couldn't start a VM.  I rebooted and I get the gcc error, but I can't run the Tech Preview at all now.

       

      Also strange because the tech preview lists support for Fedora 26.

       

      017-08-21T18:56:39.667-07:00| vthread-1| I125: The header path "/lib/modules/4.12.5-300.fc26.x86_64/build/include" for the kernel "4.12.5-300.fc26.x86_64" is valid.  Whoohoo!

      2017-08-21T18:56:39.668-07:00| vthread-1| I125: Looking up gcc.  Got result "/usr/bin/gcc".

      2017-08-21T18:56:39.668-07:00| vthread-1| I125: Found compiler at "/usr/bin/gcc"

      2017-08-21T18:56:39.670-07:00| vthread-1| I125: Got gcc version "7".

      2017-08-21T18:56:39.670-07:00| vthread-1| I125: Unable to parse gcc version

      2017-08-21T18:56:39.670-07:00| vthread-1| I125: User supplied gcc at "" is not executable.

      2017-08-21T18:56:39.670-07:00| vthread-1| I125: Trying to find a suitable PBM set for kernel "4.12.5-300.fc26.x86_64".

      2017-08-21T18:56:39.670-07:00| vthread-1| I125: No matching PBM set was found for kernel "4.12.5-300.fc26.x86_64".

      2017-08-21T18:56:44.588-07:00| vthread-1| I125: User supplied gcc at "" is not executable.

      2017-08-21T18:56:45.014-07:00| vthread-1| I125: User supplied gcc at "" is not executable.

      2017-08-21T18:56:45.181-07:00| vthread-1| I125: User supplied gcc at "" is not executable.

      2017-08-21T18:56:57.111-07:00| vthread-1| I125: Using user supplied compiler "/usr/bin/gcc".

      2017-08-21T18:56:57.118-07:00| vthread-1| I125: Got gcc version "7".

      2017-08-21T18:56:57.118-07:00| vthread-1| I125: Unable to parse gcc version

        • 1. Re: Fedora 26: gcc not found
          Zongmin Enthusiast
          VMware Employees

          Hi VMwareCA,

          Thank you for trying this Workstation Tech Preview.  Our developer team are working on a fix for this issue. Pls stay tuned for the fix! Thanks!

          • 2. Re: Fedora 26: gcc not found
            torehl Lurker

            Seeing the same issue with vmware workstation 11.1.4 after upgrading from FC25.  Workaround?

            • 3. Re: Fedora 26: gcc not found
              VijayNehaOm Novice

              Here is what i have done so far!

               

              dnf install elfutils-libelf-devel

              cp -r /usr/lib/vmware-installer/2.1.0/lib/lib/libexpat.so.0 /usr/lib/vmware/lib
              cd /usr/lib/vmware/lib/libz.so.1
              mv -i libz.so.1 libz.so.1.old
              ln -s /usr/lib64/libz.so.1 .

              mkdir -p /lib/modules/`uname -r`/misc

              tar -xvf /usr/lib/vmware/modules/source/vmmon.tar --directory /usr/lib/vmware/modules/source

              tar -xvf /usr/lib/vmware/modules/source/vmnet.tar --directory /usr/lib/vmware/modules/source

              cd /usr/lib/vmware/modules/source/vmmon-only ; make

              cd /usr/lib/vmware/modules/source/vmnet-only ; make

              mkdir -p /lib/modules/`uname -r`/misc

               

              I was able to power up my VM! 

               

              Vijay

              • 4. Re: Fedora 26: gcc not found
                VMwareCA Lurker

                Gave this a try, but my sys still wasn't able to detect gcc.

                • 5. Re: Fedora 26: gcc not found
                  VijayNehaOm Novice

                  Try this after the above:

                   

                  depmod -a

                  modprobe vmmon

                  modprobe vmnet

                  /etc/init.d/vmware restart

                  • 6. Re: Fedora 26: gcc not found
                    VMwareCA Lurker

                    [user]#  modprobe vmmon

                    modprobe: FATAL: Module vmmon not found in directory /lib/modules/4.12.9-300.fc26.x86_64

                    [user]# modprobe vmmon

                    modprobe: FATAL: Module vmmon not found in directory /lib/modules/4.12.9-300.fc26.x86_64

                     

                    Is there a step missing?  in the first bit of instructions you created misc twice "mkdir -p /lib/modules/`uname -r`/misc"

                    Is the last line supposed to be copying modules in to misc?

                    • 7. Re: Fedora 26: gcc not found
                      VMwareCA Lurker

                      Okay, workstation is running after copying vmmon.ko and vmnet.ko to misc then doing the depmod. :-D

                      • 8. Re: Fedora 26: gcc not found
                        Matthias Hehnen Novice
                        VMware Employees

                        Hi all

                         

                        That's - unfortunately - a known issue - also with WS 12 on Fedora 26.

                        Everytime a new kernel update is installed I need to run the following sequence:

                         

                        cd /usr/lib/vmware/modules/source/

                         

                        # clean up

                        rm -r -f vmmon-only

                        rm -r -f vmnet-only

                        rm vmmon.o

                        rm vmnet.o

                         

                        # untar vmmon and vmnet + compile them

                        tar xf vmmon.tar

                        tar xf vmnet.tar

                        cd vmmon-only/

                        make

                        cd ..

                        cd vmnet-only/

                        make

                        cd ..

                         

                        #

                        mkdir /lib/modules/<latest kernel version>/misc

                        cp vmmon-only/vmmon.ko /lib/modules/4.12.5-300.fc26.x86_64/misc/

                        cp vmnet-only/vmnet.ko /lib/modules/4.12.5-300.fc26.x86_64/misc/

                        depmod -a

                         

                        #

                        systemctl start vmware-workstation-server.service