Page 1 of 1

Install Error on kernel 4.6 -CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported

Posted: 19. Jun 2016, 12:47
by megloff
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

Re: Install Error on kernel 4.6 -CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not suppo

Posted: 19. Jun 2016, 14:07
by Perryg
I would update GCC if it were me.

Re: Install Error on kernel 4.6 -CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not suppo

Posted: 19. Jun 2016, 16:38
by megloff
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.

Re: Install Error on kernel 4.6 -CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not suppo

Posted: 19. Jun 2016, 16:47
by Perryg
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.

Re: Install Error on kernel 4.6 -CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not suppo

Posted: 19. Jun 2016, 16:49
by Perryg
I see you figured it out.