Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 678522 - media-video/libva-utils-2.4.0 : VDecAccelVA.cpp:45:10: fatal error: va/va_x11.h: No such file or directory
Summary: media-video/libva-utils-2.4.0 : VDecAccelVA.cpp:45:10: fatal error: va/va_x11...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 2 votes (vote)
Assignee: VA-API Project
URL: https://github.com/intel/libva-utils/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-21 19:23 UTC by Toralf Förster
Modified: 2023-04-26 16:28 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.24 KB, text/plain)
2019-02-21 19:23 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,73.66 KB, text/plain)
2019-02-21 19:23 UTC, Toralf Förster
Details
environment (environment,60.82 KB, text/plain)
2019-02-21 19:23 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.96 KB, application/x-bzip)
2019-02-21 19:23 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,7.92 KB, application/x-bzip)
2019-02-21 19:23 UTC, Toralf Förster
Details
media-video:libva-utils-2.4.0:20190221-181040.log (media-video:libva-utils-2.4.0:20190221-181040.log,24.39 KB, text/plain)
2019-02-21 19:23 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,21.23 KB, application/x-bzip)
2019-02-21 19:23 UTC, Toralf Förster
Details
Patch to avoid this compilation issue, at least for my machines (file_678522.txt,572 bytes, patch)
2022-10-17 07:05 UTC, Jocelyn Mayer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-02-21 19:23:38 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2019-02-21 19:23:40 UTC
Created attachment 566016 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-02-21 19:23:43 UTC
Created attachment 566018 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-02-21 19:23:46 UTC
Created attachment 566020 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-02-21 19:23:49 UTC
Created attachment 566022 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-02-21 19:23:52 UTC
Created attachment 566024 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-02-21 19:23:56 UTC
Created attachment 566026 [details]
media-video:libva-utils-2.4.0:20190221-181040.log
Comment 7 Toralf Förster gentoo-dev 2019-02-21 19:23:59 UTC
Created attachment 566028 [details]
temp.tbz2
Comment 8 James Chew 2020-05-13 02:47:23 UTC
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
Comment 9 Jocelyn Mayer 2022-10-17 07:05:36 UTC
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
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-17 07:09:38 UTC
*** Bug 822951 has been marked as a duplicate of this bug. ***