LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   DKMS Error, I am unable to rebuild the kernel, VirturaBox 4.3.14 (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/dkms-error-i-am-unable-to-rebuild-the-kernel-virturabox-4-3-14-a-4175517599/)

dictatorofmyownworld 09-06-2014 10:19 AM

DKMS Error, I am unable to rebuild the kernel, VirturaBox 4.3.14
 
I can open VirtualBox but when I start a virtual machine I get, "Kernel driver not installed (rc=-1908)"... The error tells me to run '/etc/init.d/vboxdrv setup'
When I do I get:
Code:

linux-gsly:/home/eric # /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules                                                                                                                                                                      done
Uninstalling old VirtualBox DKMS kernel modules                                                                                                                                                        done
Trying to register the VirtualBox kernel modules using DKMSError! Bad return status for module build on kernel: 3.16.1-8.g2ab6585-pae (i686)
Consult /var/lib/dkms/vboxhost/4.3.14/build/make.log for more information.
                                                                                                                                                                                                        failed
  (Failed, trying without DKMS)
Recompiling VirtualBox kernel modules                                                                                                                                                                  failed
  (Look at /var/log/vbox-install.log to find out what went wrong)

When I open the make.log for more information I get:
Quote:

DKMS make.log for vboxhost-4.3.14 for kernel 3.16.1-8.g2ab6585-pae (i686)
Sat Sep 6 10:44:37 EDT 2014
make: Entering directory `/usr/src/linux-3.16.1-8.g2ab6585-obj/i386/pae'
make[1]: Entering directory `/usr/src/linux-3.16.1-8.g2ab6585-obj/i386/pae'
/usr/src/linux-3.16.1-8.g2ab6585/scripts/gcc-version.sh: line 25: gcc: command not found
/usr/src/linux-3.16.1-8.g2ab6585/scripts/gcc-version.sh: line 26: gcc: command not found
/usr/src/linux-3.16.1-8.g2ab6585/arch/x86/Makefile:121: stack-protector enabled but compiler support broken
/usr/src/linux-3.16.1-8.g2ab6585/Makefile:663: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
make[2]: gcc: Command not found
LD /var/lib/dkms/vboxhost/4.3.14/build/built-in.o
LD /var/lib/dkms/vboxhost/4.3.14/build/vboxdrv/built-in.o
CC [M] /var/lib/dkms/vboxhost/4.3.14/build/vboxdrv/linux/SUPDrv-linux.o
/bin/sh: gcc: command not found
make[4]: *** [/var/lib/dkms/vboxhost/4.3.14/build/vboxdrv/linux/SUPDrv-linux.o] Error 127
make[3]: *** [/var/lib/dkms/vboxhost/4.3.14/build/vboxdrv] Error 2
make[2]: *** [_module_/var/lib/dkms/vboxhost/4.3.14/build] Error 2
make[1]: *** [sub-make] Error 2
make: *** [__sub-make] Error 2
make: Leaving directory `/usr/src/linux-3.16.1-8.g2ab6585-obj/i386/pae'
Looking closer at the first error
Quote:

/usr/src/linux-3.16.1-8.g2ab6585/scripts/gcc-version.sh: line 25: gcc: command not found
That folder does not exist.
I'm not sure what is supposed to generate that folder and it's contents, but I seem to be missing something.
Thanks in advance for any help.

EDDY1 09-06-2014 04:42 PM

What OS is host
Is gcc installed?

dictatorofmyownworld 09-06-2014 05:05 PM

Nice. Opened YaST, searched gcc, installed gcc and it's dependencies now it works! I didn't know that gcc was something that I needed to install. Thanks again, that's 2 for 2.

EDDY1 09-06-2014 06:26 PM

You're welcome
Glad.I could. Be of help


All times are GMT -5. The time now is 07:23 AM.