Virtualbox fails to build in headless setup (needs opengl).. Building fails with: 6.0.24/src/VBox/Devices/Graphics/DevVGA-SVGA3d-glLdr.h:61:11: fatal error: GL/glx.h: No such file or directory 61 | # include <GL/glx.h> | ^~~~~~~~~~ Missing file is provided by: (looking on a system that does build virtualbox in headless mode) $ locate GL/gl.h /usr/include/GL/gl.h $ equery b /usr/include/GL/gl.h * Searching for /usr/include/GL/gl.h ... media-libs/libglvnd-1.3.2 (/usr/include/GL/gl.h) app-emulation/virtualbox-6.0.24 [5.2.40] USE="alsa headless java lvm opengl opus%* pam python sdk udev vboxwebsrv vnc -debug -doc -dtrace -libressl -pax_kernel -pulseaudio -qt5" PYTHON_SINGLE_TARGET="python3_7 -python3_6 -python3_8" Reproducible: Always Steps to Reproduce: 1.emerge virtualbox # on a system without X, opengl etc.... 2. 3. Actual Results: .... x86_64-pc-linux-gnu-g++ -c -O2 -g -pipe -pedantic -Wshadow -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -Wno-unused-parameter -Wlogical-op -Wno-variadic-macros -Wno-long-long -Wunused-variable -Wunused-function -Wunused-label -Wunused-parameter -Wno-overloaded-virtual -Wno-array-bounds -Wno-ignored-qualifiers -Wno-variadic-macros -O2 -pipe -fno-omit-frame-pointer -fno-strict-aliasing -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -fvisibility-inlines-hidden -fPIC -m64 -I/var/tmp/portage/app-emulation/virtualbox-6.0.24/work/VirtualBox-6.0.24/src/VBox/Devices/build -I/var/tmp/portage/app-emulation/virtualbox-6.0.24/work/VirtualBox-6.0.24/src/VBox/Devices/Network/slirp -I/var/tmp/portage/app-emulation/virtualbox-6.0.24/work/VirtualBox-6.0.24/include/VBox/Graphics -I/var/tmp/portage/app-emulation/virtualbox-6.0.24/work/VirtualBox-6.0.24/src/VBox/Devices/Network -I/var/tmp/portage/app-emulation/virtualbox-6.0.24/work/VirtualBox-6.0.24/src/VBox/Devices/Network/lwip-new/src/include -I/var/tmp/portage/app-emulation/virtualbox-6.0.24/work/VirtualBox-6.0.24/src/VBox/Devices/Network/lwip-new/src/include/ipv4 -I/var/tmp/portage/app-emulation/virtualbox-6.0.24/work/VirtualBox-6.0.24/src/VBox/Devices/Network/lwip-new/src/include/ipv6 -I/var/tmp/portage/app-emulation/virtualbox-6.0.24/work/VirtualBox-6.0.24/src/VBox/Devices/Network/lwip-new/vbox/include -I/var/tmp/portage/app-emulation/virtualbox-6.0.24/work/VirtualBox-6.0.24/src/VBox/Devices/Network/lwip-new/vbox -I/var/tmp/portage/app-emulation/virtualbox-6.0.24/work/VirtualBox-6.0.24/out/linux.amd64/release/obj/VBoxDD/dtrace -I/var/tmp/portage/app-emulation/virtualbox-6.0.24/work/VirtualBox-6.0.24/out/linux.amd64/release/obj/VBoxDD/dtrace -I/var/tmp/portage/app-emulation/virtualbox-6.0.24/work/VirtualBox-6.0.24/include -I/var/tmp/portage/app-emulation/virtualbox-6.0.24/work/VirtualBox-6.0.24/out/linux.amd64/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_REM -DVBOX_WITH_RAW_MODE -DRT_OS_LINUX -D_FILE_OFFSET_BITS=64 -DRT_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_DEBUGGER -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\" -DRTPATH_APP_PRIVATE_ARCH=\"/usr/lib64/virtualbox\" -DRTPATH_SHARED_LIBS=\"/usr/lib64/virtualbox\" -DRTPATH_APP_DOCS=\"\" -DIN_RING3 -DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64 -DVBOX_WITH_DTRACE -DVBOX_WITH_DTRACE_R3 -DPIC -DVBOX_ACPI -DVBOX_HGCM_HOST_CODE -DVBOX_WITH_HGCM -DVBOX_WITH_DMI_CHASSIS -DVBOX_WITH_DMI_OEMSTRINGS -DVBOX_WITH_NEW_LPC_DEVICE -DVBOX_WITH_DTRACE -DVBOXWDDM_WITH_VBVA -DVBOX_WITH_HGSMI -DVBOX_WITH_WDDM -DVBOX_WITH_VMSVGA -DVBOX_WITH_VMSVGA3D -DVMSVGA3D_OPENGL -DVMSVGA3D_DYNAMIC_LOAD -DVBOX_WITH_VDMA -DVBOX_WITH_PXE_ROM -DVBOX_WITH_USB -DVBOX_WITH_VUSB -DVBOX_WITH_INIP -DVBOX_WITH_E1000 -DVBOX_WITH_VIRTIO -DVBOX_WITH_UDPTUNNEL -DVBOX_WITH_VDE -DVBOX_WITH_NETSHAPER -DVBOX_WITH_AHCI -DIN_AHCI_R3 -DVBOX_WITH_BUSLOGIC -DVBOX_WITH_LSILOGIC -DVBOX_WITH_PDM_ASYNC_COMPLETION -DVBOX_WITH_SCSI -DVBOX_WITH_DRV_DISK_INTEGRITY -DVBOX_WITH_EFI -DVBOX_WITH_MSI_DEVICES -DVBOX_WITH_AUDIO_ENUM -DVBOX_WITH_AUDIO_CALLBACKS -DVBOX_WITH_INTEL_HDA -DVBOX_WITH_AUDIO_HDA_ASYNC_IO -DVBOX_WITH_AUDIO_DEBUG -DVBOX_WITH_AUDIO_OSS -DVBOX_WITH_AUDIO_ALSA -DVBOX_WITH_NETFLT -DVUSB_HAVE_USBPROXY_DEVICE -DVBOX_USB_WITH_SYSFS -Wp,-MD,/var/tmp/portage/app-emulation/virtualbox-6.0.24/work/VirtualBox-6.0.24/out/linux.amd64/release/obj/VBoxDD/Graphics/DevVGA-SVGA3d.o.dep -Wp,-MT,/var/tmp/portage/app-emulation/virtualbox-6.0.24/work/VirtualBox-6.0.24/out/linux.amd64/release/obj/VBoxDD/Graphics/DevVGA-SVGA3d.o -Wp,-MP -o /var/tmp/portage/app-emulation/virtualbox-6.0.24/work/VirtualBox-6.0.24/out/linux.amd64/release/obj/VBoxDD/Graphics/DevVGA-SVGA3d.o /var/tmp/portage/app-emulation/virtualbox-6.0.24/work/VirtualBox-6.0.24/src/VBox/Devices/Graphics/DevVGA-SVGA3d.cpp In file included from /var/tmp/portage/app-emulation/virtualbox-6.0.24/work/VirtualBox-6.0.24/src/VBox/Devices/Graphics/DevVGA-SVGA3d-internal.h:45, from /var/tmp/portage/app-emulation/virtualbox-6.0.24/work/VirtualBox-6.0.24/src/VBox/Devices/Graphics/DevVGA-SVGA3d.cpp:39: /var/tmp/portage/app-emulation/virtualbox-6.0.24/work/VirtualBox-6.0.24/src/VBox/Devices/Graphics/DevVGA-SVGA3d-glLdr.h:61:11: fatal error: GL/glx.h: No such file or directory 61 | # include <GL/glx.h> | ^~~~~~~~~~ compilation terminated. kmk: *** [/usr/share/kBuild/footer-pass2-compiling-targets.kmk:226: /var/tmp/portage/app-emulation/virtualbox-6.0.24/work/VirtualBox-6.0.24/out/linux.amd64/release/obj/VBoxDD/Graphics/DevVGA-SVGA3d.o] Error 1 ... Expected Results: Building virtualbox. $ emerge --info virtualbox Portage 3.0.4 (python 3.6.11-final-0, default/linux/amd64/17.1, gcc-9.2.0, glibc-2.31-r6, 5.4.48-gentoo-x86_64 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.4.48-gentoo-x86_64-x86_64-AMD_Phenom-tm-_II_X4_810_Processor-with-gentoo-2.7 KiB Mem: 7902360 total, 462604 free KiB Swap: 3919848 total, 3497288 free Timestamp of repository gentoo: Tue, 08 Sep 2020 10:05:30 +0000 Head commit of repository gentoo: 8ee8c827d24103fff75a89608576ea8214b94cb1 Head commit of repository matrix: 5101fe5d33066c6d892f6b9a6110880071983216 sh bash 5.0_p18 ld GNU ld (Gentoo 2.33.1 p2) 2.33.1 distcc 3.3.3 x86_64-pc-linux-gnu [disabled] ccache version 3.7.11 [disabled] app-shells/bash: 5.0_p18::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.30.3::gentoo dev-lang/python: 2.7.18-r1::gentoo, 3.6.11-r2::gentoo, 3.7.8-r2::gentoo, 3.8.5::gentoo dev-util/ccache: 3.7.11::gentoo dev-util/cmake: 3.16.5::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.18::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.16.1-r1::gentoo sys-devel/binutils: 2.33.1-r1::gentoo sys-devel/gcc: 9.2.0-r2::gentoo, 9.3.0-r1::gentoo sys-devel/gcc-config: 2.3.1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.31-r6::gentoo Repositories: gentoo location: /usr/portage sync-type: git sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git priority: -1000 local location: /usr/local/portage masters: gentoo priority: 0 noci location: /usr/local/portage-noci masters: gentoo priority: 1 gamerlay location: /var/lib/layman/gamerlay masters: gentoo priority: 50 matrix location: /var/lib/layman/matrix sync-type: git sync-uri: https://anongit.gentoo.org/git/repo/proj/matrix.git masters: gentoo priority: 50 ruby location: /var/lib/layman/ruby masters: gentoo priority: 50 voyageur location: /var/lib/layman/voyageur masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE PUEL dlj-1.1 gSOAP" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe " CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/apache2-php7.3/ext-active/ /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe " DISTDIR="/data/distdir" EMERGE_DEFAULT_OPTS="--autounmask-write --keep-going --quiet --with-bdeps=y --tree --backtrack=15 --complete-graph" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.netcologne.de/gentoo/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--exclude ChangeLog --delete-excluded" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="aac aalib acl acpi ads aio alsa amd64 amr apm audit avahi bash-completion berkdb bookmarks bzip2 caps cli crypt cups curl dbus dga directfb dri elogind encode exif expat fam fax fbcon ffmpeg flac fltk foomaticdb fortran gamin gd gdbm ggi gif gmp graphviz gstreamer iconv idn ipv6 ithreads java jbig jpeg jpeg2k kerberos lcms ldap ldb libcaca libglvnd libsamplerate libtirpc lm_sensors lzma mad mariadb mikmod mmap mng mp3 multilib mysql ncurses network nforce2 nls nptl nvidia odbc ogg openexr openldap openmp pam pcre pdf php plotutils png policykit ppds radius readline real sdl seccomp skey slang sndfile snmp speex spell split-usr sqlite ssl subversion syslog tcpd theora tiff tls truetype unicode usb vde vim-syntax vorbis xattr xfs xml zeroconf zip zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="usb-audio hda-intel cs4232 intel8x0 wavefront" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif so speling status unique_id userdir usertrack vhost_alias authn_alias authn_core authz_core unixd socache_shmcb" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-GB en-US nl-NL nl en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python3_6 python3_7" QEMU_SOFTMMU_TARGETS="arm i386 x86_64 alpha" QEMU_USER_TARGETS="none" RUBY_TARGETS="ruby25" SANE_BACKENDS="net v4l hpaio" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="account chaos condition delude dhcpmac dnetmap echo fuzzy geoip gradm iface ipmark ipp2p ipset ipv4options length2 logmark lscan pknock psd quota2 steal tarpit tee" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS ================================================================= Package Settings ================================================================= app-emulation/virtualbox-5.2.40::gentoo was built with the following: USE="alsa headless java lvm opengl pam python sdk udev vboxwebsrv vnc -debug -doc -dtrace -libressl -pax_kernel -pulseaudio -qt5" ABI_X86="(64)" PYTHON_SINGLE_TARGET="python3_7 -python3_6 -python3_8" $ emerge -pqv '=app-emulation/virtualbox-6.0.24::gentoo' [ebuild U ] app-emulation/virtualbox-6.0.24 [5.2.40] USE="alsa headless java lvm opengl opus%* pam python sdk udev vboxwebsrv vnc -debug -doc -dtrace -libressl -pax_kernel -pulseaudio -qt5" PYTHON_SINGLE_TARGET="python3_7 -python3_6 -python3_8"
Created attachment 659196 [details] Virtualbox buildlog.
virtualbox does build if USE=X emerge libglvnd has been installed.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=104e5e6efc66d47a0bbbfa0f131a74b038d149a5 commit 104e5e6efc66d47a0bbbfa0f131a74b038d149a5 Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2020-09-09 07:21:35 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2020-09-09 08:10:13 +0000 app-emulation/virtualbox: Fixed USE="opengl" dependency Thanks-to: Nico Baggus <mlspamcb@noci.work> Closes: https://bugs.gentoo.org/741172 Package-Manager: Portage-3.0.6, Repoman-3.0.1 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> app-emulation/virtualbox/virtualbox-6.0.24.ebuild | 2 +- app-emulation/virtualbox/virtualbox-6.1.12a.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)