Summary: | x11-drivers/xf86-video-virtualbox-5.1.30 - fatal error: bits/sigset.h: No such file or directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | Current packages | Assignee: | Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | bkohler, eras, grafi, masterzorag, mmokrejs, pbatishchev |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Fix sigset include path
proposed replacement for xf86-video-virtualbox-5.1.36.ebuild |
Description
Juergen Rose
2017-11-23 09:00:44 UTC
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. |