Comment 5 for bug 1521734

Revision history for this message
Ville Nummela (ville-nummela) wrote : Re: virtualbox-dkms 5.0.10-dfsg-2ubuntu1: virtualbox kernel module failed to build [gcc: error: unrecognized command line option ‘-fstack-protector-strong’]

Building kernel drivers for newer kernels requires gcc 4.9. Workaround steps:

apt-get install gcc-4.9
rm /usr/bin/gcc
ln -s /usr/bin/gcc-4.9 /usr/bin/gcc
dpkg-reconfigure virtualbox-dkms