CentOS 7 with kernel 5.12(elrepo)
gcc version:9.3.1 with i type this command:scl enable devtoolset-9
type this command :/sbin/sbin/vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong.
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root. If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.
cat /var/log/vbox-setup.log and see:
how can i fix this problem? thanks to you.gcc: error: unrecognized command line option ‘-mrecord-mcount’