'emerge -v1 xf86-video-virtualbox' fails with: ... gcc -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 -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Werror-implicit-function-declaration -Wno-variadic-macros -march=i586 -O2 -march=i686 -pipe -fno-omit-frame-pointer -fno-strict-aliasing -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -fPIC -std=c99 -Wno-conversion -Wno-unused-parameter -Wno-variadic-macros -include xorg-server.h -m32 -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.30/work/VirtualBox-5.1.30/src/VBox/Runtime/include -I/usr/include/x11 -I/usr/include/xorg -I/usr/include/pixman-1 -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.30/work/VirtualBox-5.1.30/out/linux.x86/release/obj/vboxvideo_drv_system/dtrace -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.30/work/VirtualBox-5.1.30/include -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.30/work/VirtualBox-5.1.30/out/linux.x86/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_X86 -D__X86__ -DVBOX_WITH_DEBUGGER -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/opt/VirtualBox\" -DRTPATH_APP_PRIVATE_ARCH=\"/opt/VirtualBox\" -DRTPATH_SHARED_LIBS=\"/opt/VirtualBox\" -DRTPATH_APP_DOCS=\"/opt/VirtualBox\" -DIN_RING3 -DVBOX_WITH_DTRACE -DVBOX_WITH_DTRACE_R3 -DIN_GUEST -DIN_GUEST_R3 -DIN_RT_R3 -DGC_ARCH_BITS=64 -DPIC -DVBOX_GUESTR3XORGMOD -DRTMEM_NO_WRAP_TO_EF_APIS -DIN_MODULE -DXORG_7X -DRENDER=1 -DIN_RT_STATIC -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DVBOXVIDEO_13 -DNO_ANSIC -DPCIACCESS -DXSERVER_LIBPCIACCESS -DLOG_USE_C99 -DRT_WITHOUT_EXEC_ALLOC -Wp,-MD,/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.30/work/VirtualBox-5.1.30/out/linux.x86/release/obj/vboxvideo_drv_system/helpers.o.dep -Wp,-MT,/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.30/work/VirtualBox-5.1.30/out/linux.x86/release/obj/vboxvideo_drv_system/helpers.o -Wp,-MP -o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.30/work/VirtualBox-5.1.30/out/linux.x86/release/obj/vboxvideo_drv_system/helpers.o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.30/work/VirtualBox-5.1.30/src/VBox/Additions/x11/vboxvideo/helpers.c In file included from /var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.30/work/VirtualBox-5.1.30/src/VBox/Additions/x11/vboxvideo/getmode.c:18:0/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.30/work/VirtualBox-5.1.30/src/VBox/Additions/x11/vboxvideo/vboxvideo.h:56:10: fatal error: bits/sigset.h: No such file or directory #include bits/sigset.h> ~~~~~~~~~~~~~~ compilation terminated. Portage 2.3.16 (python 2.7.14-final-0, default/linux/x86/13.0, gcc-7.2.0, glibc-2.26-r3, 4.14.1-gentoo i686) ================================================================= System Settings ================================================================= System uname: Linux-4.14.1-gentoo-i686-Intel-R-_Core-TM-_i7-3630QM_CPU_@_2.40GHz-with-gentoo-2.4.1 KiB Mem: 1921096 total, 685188 free KiB Swap: 4194300 total, 4194300 free Timestamp of repository gentoo: Thu, 23 Nov 2017 07:00:01 +0000 Head commit of repository gentoo: fdf4679de7e3eaf1819be35ef5f0dfddc6dcbd2e Head commit of repository masterzorag: ab526205b11db8868c633b5f257852de782af186 sh bash 4.4_p12 ld GNU ld (Gentoo 2.29.1 p3) 2.29.1 app-shells/bash: 4.4_p12::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.26.1-r1::gentoo dev-lang/python: 2.7.14-r1::gentoo, 3.4.6-r1::gentoo dev-util/cmake: 3.10.0::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1-r2::gentoo sys-apps/openrc: 0.34.9::gentoo sys-apps/sandbox: 2.12::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.11.6-r2::gentoo, 1.15.1-r1::gentoo sys-devel/binutils: 2.29.1-r1::gentoo sys-devel/gcc: 7.2.0::gentoo sys-devel/gcc-config: 1.9.0::gentoo sys-devel/libtool: 2.4.6-r4::gentoo sys-devel/make: 4.2.1-r1::gentoo sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers) sys-libs/glibc: 2.26-r3::gentoo Repositories: gentoo location: /usr/portage_lynxvirt sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: masterzorag location: /usr/local/portage2 sync-type: git sync-uri: https://github.com/masterzorag/gentoo-overlay.git masters: gentoo x-portage location: /usr/local/portage masters: gentoo priority: 0 ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="* -@EULA PUEL" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/chromium/policies/managed/chrome-gnome-shell.json /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/opt/chrome/policies/managed/chrome-gnome-shell.json /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -march=i686 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -march=i686 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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="R X acl admin alsa apng automount bash-completion berkdb boost bzip2 cairo cdda clang cli cmake cracklib crypt cups curl cxx dbus djvu doc dot dri eds egl emacs evdev exif extra extras fftw fontconfig fortran fpx fuse gd gdbm gif gimp git gmp gnome gnome-keyring gnuplot gnutls gpm graphics graphtft graphviz gstreamer gtk gudev hdf hdf5 hdri hwdb iconv icu imagemagick introspection ipv6 ithreads jadetex jbig jpeg jpeg2k kerberos latex lcms ldap lensfun libkms lzma lzo mercurial modules motif mp3 mp4 ncurses netpbm network nls nptl ntp ogg opencv openexr opengl openmp pam pango pcre pdf pdl pdl2 perl plotutils plplot png policykit postscript preview-latex pulseaudio python q32 qemu qt5 raw readline samba seccomp session sockets sound sqlite ssl subversion svg systemd tcl tcpd tex theora threads tiff tk truetype udev udisks unicode usb vala valgrind webkit wmf x86 xa xattr xemacs xetex xml xpm yaml zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="nss" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" L10N="de en fr ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en fr ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="virtualbox" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= x11-drivers/xf86-video-virtualbox-5.1.30::gentoo was built with the following: USE="dri" PYTHON_TARGETS="python2_7"
Created attachment 507948 [details, diff] Fix sigset include path Builds with the patch, did not try to run it though.
This also happens with x11-drivers/xf86-video-virtualbox-5.1.32 : gcc -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 -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Werror-implicit-function-declaration -Wno-variadic-macros -O2 -pipe -mpclmul -mpopcnt -march=native -ftree-vectorize -fno-omit-frame-pointer -fno-strict-aliasing -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -fPIC -std=c99 -Wno-conversion -Wno-unused-parameter -Wno-variadic-macros -include xorg-server.h -m64 -I/scratch/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.32/work/VirtualBox-5.1.32/src/VBox/Runtime/include -I/usr/include/x11 -I/usr/include/xorg -I/usr/include/pixman-1 -I/scratch/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.32/work/VirtualBox-5.1.32/out/linux.amd64/release/obj/vboxvideo_drv_system/dtrace -I/scratch/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.32/work/VirtualBox-5.1.32/include -I/scratch/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.32/work/VirtualBox-5.1.32/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=\"/opt/VirtualBox\" -DRTPATH_APP_PRIVATE_ARCH=\"/opt/VirtualBox\" -DRTPATH_SHARED_LIBS=\"/opt/VirtualBox\" -DRTPATH_APP_DOCS=\"/opt/VirtualBox\" -DIN_RING3 -DVBOX_WITH_DTRACE -DVBOX_WITH_DTRACE_R3 -DIN_GUEST -DIN_GUEST_R3 -DIN_RT_R3 -DGC_ARCH_BITS=64 -DPIC -DVBOX_GUESTR3XORGMOD -DRTMEM_NO_WRAP_TO_EF_APIS -D_XSERVER64 -DIN_MODULE -DXORG_7X -DRENDER=1 -DIN_RT_STATIC -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DVBOXVIDEO_13 -DNO_ANSIC -DPCIACCESS -DXSERVER_LIBPCIACCESS -DLOG_USE_C99 -DRT_WITHOUT_EXEC_ALLOC -Wp,-MD,/scratch/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.32/work/VirtualBox-5.1.32/out/linux.amd64/release/obj/vboxvideo_drv_system/helpers.o.dep -Wp,-MT,/scratch/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.32/work/VirtualBox-5.1.32/out/linux.amd64/release/obj/vboxvideo_drv_system/helpers.o -Wp,-MP -o /scratch/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.32/work/VirtualBox-5.1.32/out/linux.amd64/release/obj/vboxvideo_drv_system/helpers.o /scratch/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.32/work/VirtualBox-5.1.32/src/VBox/Additions/x11/vboxvideo/helpers.c In file included from /scratch/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.32/work/VirtualBox-5.1.32/src/VBox/Additions/x11/vboxvideo/getmode.c:18:0: /scratch/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.32/work/VirtualBox-5.1.32/src/VBox/Additions/x11/vboxvideo/vboxvideo.h:56:25: fatal error: bits/sigset.h: No such file or directory #include <bits/sigset.h> ^ compilation terminated. kmk: *** [/scratch/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.32/work/VirtualBox-5.1.32/out/linux.amd64/release/obj/vboxvideo_drv_system/getmode.o] Error 1 kmk: *** Waiting for unfinished jobs.... In file included from /scratch/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.32/work/VirtualBox-5.1.32/src/VBox/Additions/x11/vboxvideo/helpers.c:23:0: /scratch/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.32/work/VirtualBox-5.1.32/src/VBox/Additions/x11/vboxvideo/vboxvideo.h:56:25: fatal error: bits/sigset.h: No such file or directory #include <bits/sigset.h> ^ compilation terminated. kmk: *** [/scratch/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.32/work/VirtualBox-5.1.32/out/linux.amd64/release/obj/vboxvideo_drv_system/helpers.o] Error 1 kmk: *** Exiting with status 2 * ERROR: x11-drivers/xf86-video-virtualbox-5.1.32::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=x11-drivers/xf86-video-virtualbox-5.1.32::gentoo'`, * the complete build log and the output of `emerge -pqv '=x11-drivers/xf86-video-virtualbox-5.1.32::gentoo'`. * The complete build log is located at '/scratch/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.32/temp/build.log'. * The ebuild environment file is located at '/scratch/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.32/temp/environment'. * Working directory: '/scratch/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.32/work/VirtualBox-5.1.32/src/VBox/Additions/x11/vboxvideo' * S: '/scratch/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.32/work/VirtualBox-5.1.32' The patch does not apply to 3 files, whcih have changed meanwhile: >>> Preparing source in /scratch/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.32/work/VirtualBox-5.1.32 ... * Applying xf86-video-virtualbox-5.1.24-Makefile.module.kms.patch ... [ ok ] * Applying xf86-video-virtualbox-5.1.32-sigset_h.patch ... 1 out of 1 hunk FAILED -- saving rejects to file src/VBox/Additions/x11/vboxvideo/edid.c.rej 1 out of 1 hunk FAILED -- saving rejects to file src/VBox/Additions/x11/vboxvideo/pointer.c.rej 1 out of 1 hunk FAILED -- saving rejects to file src/VBox/Additions/x11/vboxvideo/vboxvideo.h.rej [ !! ] * ERROR: x11-drivers/xf86-video-virtualbox-5.1.32::gentoo failed (prepare phase): * patch -p1 failed with /scratch/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.1.32/files/xf86-video-virtualbox-5.1.32-sigset_h.patch
Still happens with x11-drivers/xf86-video-virtualbox-5.1.36:0/0::gentoo
I attached an updated ebuild, I'm sorry i don't know if a diff would have been prefferd but this is not a patch to apply it is another src_prepare patch using sed to swap the incorrect sigset.h reference. for folks who may find this and aren't aware like I wasn't if you modify or otherwise use this ebuild for 5.1.36 driver, make sure to run ebuid "modifiedfilenameandpath.ebuild" digest or emerge will reject this as being improperly sized. my comment here might have mangled the code. I was going to make it more generic to find all references in the tree, but i opted for simpler process on the files i found in my initial search given it was so few. Compiles fine, using the driver now to cross compile for my rpi3b I added this to src_prepare() # fix sigset.h include mess, could be made more generic if depth exceeds three files below #638548 local each targets=( edid.c pointer.c vboxvideo.h ) for each in ${targets[@]}; do sed -i -e 's/#include <bits\/sigset.h>/#include <bits\/types\/__sigset_t.h>/g' "${WORKDIR}/VirtualBox-${PVR}/src/VBox/Additions/x11/vboxvideo/${each}" || die done
Created attachment 545574 [details] proposed replacement for xf86-video-virtualbox-5.1.36.ebuild possibly generically applicable for all builds, could be expanded to automatically find the files referencing sigset.h, but felt unnecessarily obscure for the three files involved.
(In reply to Martin Mokrejš from comment #3) > Still happens with x11-drivers/xf86-video-virtualbox-5.1.36:0/0::gentoo SOLVED
Please reopen if this still affects 5.2.x
There is no x11-drivers/xf86-video-virtualbox anymore?
(In reply to Martin Mokrejš from comment #8) > There is no x11-drivers/xf86-video-virtualbox anymore? It was replaced by x11-drivers/xf86-video-vboxvideo
Ah, thanks. The new one compiles fine against linux-4.18.16 sources but I obviously hit a file collision on: * x11-drivers/xf86-video-virtualbox-5.1.30:0::gentoo * /usr/lib64/xorg/modules/drivers/vboxvideo_drv.so So I will uninstall x11-drivers/xf86-video-virtualbox but you may wantto add a blocker.