x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../.. -Wall -fstack-protector -I../../../common -I../../../vendor/intel/sfcsample -O2 -pipe -march=native -c -o TestMain.o TestMain.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../.. -Wall -fstack-protector -I../../../common -I../../../vendor/intel/sfcsample -O2 -pipe -march=native -c -o VDecAccelVA.o VDecAccelVA.cpp VDecAccelVA.cpp:45:10: fatal error: va/va_x11.h: No such file or directory #include <va/va_x11.h> ^~~~~~~~~~~~~ compilation terminated. ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1-hardened_libressl-abi32+64_20190220-112352 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-8.2.0 * Available Python interpreters, in order of preference: [1] python3.7 [2] python3.6 [3] python2.7 (fallback) Available Ruby profiles: [1] ruby24 (with Rubygems) * [2] ruby25 (with Rubygems) [3] ruby26 (with Rubygems) emerge -qpvO media-video/libva-utils [ebuild N ] media-video/libva-utils-2.4.0 USE="drm -X -test -wayland"
Created attachment 566016 [details] emerge-info.txt
Created attachment 566018 [details] emerge-history.txt
Created attachment 566020 [details] environment
Created attachment 566022 [details] etc.portage.tbz2
Created attachment 566024 [details] logs.tbz2
Created attachment 566026 [details] media-video:libva-utils-2.4.0:20190221-181040.log
Created attachment 566028 [details] temp.tbz2
I have a similar error when trying to compile libva-utils-2.4.0 without X: [ebuild U ] media-video/libva-utils-2.4.0::gentoo [2.3.0::gentoo] USE="drm -X -test -wayland" 0 KiB ... In file included from TestMain.cpp:25: VDecAccelVA.h:42:10: fatal error: X11/Xlib.h: No such file or directory 42 | #include <X11/Xlib.h> | ^~~~~~~~~~~~ compilation terminated. make[2]: *** [Makefile:476: TestMain.o] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from VDecAccelVA.cpp:42: VDecAccelVA.h:42:10: fatal error: X11/Xlib.h: No such file or directory 42 | #include <X11/Xlib.h> | ^~~~~~~~~~~~ compilation terminated. ... libva-utils-2.3.0 compiles fine with the same USE flags
Created attachment 824505 [details, diff] Patch to avoid this compilation issue, at least for my machines (Copied to previously submited as #822951: https://bugs.gentoo.org/show_bug.cgi?id=822951) I can check that vaapi is then usable on this computer: # vainfo libva info: VA-API version 1.12.0 libva info: Trying to open /usr/lib64/va/drivers/r600_drv_video.so libva info: Found init function __vaDriverInit_1_12 libva info: va_openDriver() returns 0 vainfo: VA-API version: 1.12 (libva 2.12.0) vainfo: Driver version: Mesa Gallium driver 21.1.7 for AMD RS780 (DRM 2.50.0 / 5.10.61-gentoo, LLVM 12.0.1) vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointVLD VAProfileNone : VAEntrypointVideoProc
*** Bug 822951 has been marked as a duplicate of this bug. ***