Created attachment 471828 [details] VirtualBox-5.1.22-gcc_version_check_remove.patch app-emulation/virtualbox, app-emulation/virtualbox-guest-additions and x11-drivers/xf86-video-virtualbox are using VirtualBox-x.x.xx-tar.bz2, with configure script that suppory only gcc 4.x, 5.x or 6.x (confirmed with VirtualBox-5.1.22). After remove gcc version check, this programs are working with gcc-7.1. This command: sed -e "/\s*-o\s*\\\(\s*\$cc_maj\s*-eq\s*[5-9]\s*-a\s*\$cc_min\s*-gt\s*[0-5]\s*\\\)\s*\\\/d" -i configure || die that is in src_prepare seems not working.
commit f25c3154912b085e9caf70f77dada0e6a5ea0d92 (HEAD -> master, origin/master, origin/HEAD) Author: Lars Wendler <polynomial-c@gentoo.org> Date: Mon May 8 17:34:30 2017 virtualbox packages: Don't even call useless gcc version check. Package-Manager: Portage-2.3.5, Repoman-2.3.2