Dear all I tried to install virtual box on a kernel 4.6.2, I get the following error during the VirtualBox kernel modules. It looks like that my kernel does not support it. Does it require to rebuild my kernel with the mentioned settings or is this a known bug which may get fixed in upcoming releases of VirtualBox?
vboxdrv.sh: Building VirtualBox kernel modules.
make KBUILD_VERBOSE=1 SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 CONFIG_MODULE_SIG= -C /lib/modules/4.6.2-040602-generic/build -j4 modules
Makefile:673: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
make[1]: warning: -jN forced in submake: disabling jobserver mode.
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
/bin/false)
regards
Mark
Install Error on kernel 4.6 -CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Install Error on kernel 4.6 -CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not suppo
I would update GCC if it were me.
Re: Install Error on kernel 4.6 -CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not suppo
Thank you
I verified and i had two different gcc compilers on my machine and the default one was referring to an older version v4.8.5 so I used a symbolic link to refer to the newer version 5.3.1:
sudo ln -s gcc-5 gcc
after that I could install the virtual box and kernel modules got compiled without an error.
I verified and i had two different gcc compilers on my machine and the default one was referring to an older version v4.8.5 so I used a symbolic link to refer to the newer version 5.3.1:
sudo ln -s gcc-5 gcc
after that I could install the virtual box and kernel modules got compiled without an error.
Last edited by megloff on 19. Jun 2016, 16:47, edited 1 time in total.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Install Error on kernel 4.6 -CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not suppo
I would be more interested in seeing gcc -v to make sure it was actually being used. I would also like to see the results of VBoxManage -v
Also allow us to know the distro and exact release number.
Also allow us to know the distro and exact release number.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Install Error on kernel 4.6 -CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not suppo
I see you figured it out.