Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 883557 - =media-libs/libva-intel-media-driver-22.6.3 ddi_vp_functions.cpp:26:10: fatal error: va/va_dricommon.h: No such file or directory
Summary: =media-libs/libva-intel-media-driver-22.6.3 ddi_vp_functions.cpp:26:10: fatal...
Status: RESOLVED DUPLICATE of bug 882139
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: VA-API Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-29 07:54 UTC by Milos Ivanovic
Modified: 2023-01-20 23:57 UTC (History)
1 user (show)

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


Attachments
build log for =media-libs/libva-intel-media-driver-22.6.3 (build.log.xz,19.97 KB, application/x-xz)
2022-12-01 08:29 UTC, Milos Ivanovic
Details
emerge --info (emerge-info.txt,5.65 KB, text/plain)
2022-12-01 08:29 UTC, Milos Ivanovic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milos Ivanovic 2022-11-29 07:54:37 UTC
Hi team,

I'm trying to compile libva-intel-media-driver with USE="-X" (since this is a headless server), but I am getting:

/var/tmp/portage/media-libs/libva-intel-media-driver-22.6.3/work/media-driver-intel-media-22.6.3/media_softlet/linux/common/vp/ddi/ddi_vp_functions.cpp:26:10: fatal error: va/va_dricommon.h: No such file or directory
   26 | #include <va/va_dricommon.h>
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.

This is similar to bug 670152 which is a duplicate of 743625.

Is it possible to build libva and libva-intel-media-driver without X? If so, then there might be a bug because that's currently not working despite being allowed by portage.

The ultimage goal is to use ffmpeg with VAAPI for hardware-accelerated encoding/decoding.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-01 06:53:17 UTC
Thanks! Please always attach the full build.log & emerge --info.
Comment 2 Milos Ivanovic 2022-12-01 08:29:22 UTC
Created attachment 838649 [details]
build log for =media-libs/libva-intel-media-driver-22.6.3
Comment 3 Milos Ivanovic 2022-12-01 08:29:37 UTC
Created attachment 838651 [details]
emerge --info
Comment 4 Milos Ivanovic 2022-12-01 08:30:09 UTC
Thanks for the heads up. I've attached the requested information.
Comment 5 setun.90 2022-12-06 22:00:31 UTC
Possible duplicate of bug 882139?
Comment 6 Milos Ivanovic 2022-12-07 07:31:24 UTC
I do not wish to pull in all the x11 libs on this headless machine.

comet ~ # emerge -av media-libs/libva

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] sys-devel/llvm-common-15.0.6::gentoo  USE="-verify-sig" 109,448 KiB
[ebuild  N     ] sys-libs/binutils-libs-2.39-r4:0/2.39::gentoo  USE="nls -64-bit-bfd (-cet) -multitarget -static-libs" 24,659 KiB
[ebuild  N     ] x11-base/xorg-proto-2022.2::gentoo  USE="-test" 740 KiB
[ebuild  N     ] x11-libs/xtrans-1.4.0::gentoo  USE="-doc" 182 KiB
[ebuild  N     ] x11-libs/libXau-1.0.10::gentoo  USE="-doc" 266 KiB
[ebuild  N     ] x11-libs/libXdmcp-1.1.4-r1::gentoo  USE="-doc" 289 KiB
[ebuild  N     ] x11-base/xcb-proto-1.15.2::gentoo  PYTHON_TARGETS="python3_10 -python3_8 -python3_9 -python3_11" 145 KiB
[ebuild  N     ] x11-libs/libxshmfence-1.3.1::gentoo  252 KiB
[ebuild  N     ] x11-libs/libxcb-1.15-r1:0/1.12::gentoo  USE="xkb -doc (-selinux) -test" 437 KiB
[ebuild  N     ] x11-misc/compose-tables-1.8.2::gentoo  1,781 KiB
[ebuild  N     ] x11-libs/libX11-1.8.2-r1::gentoo  USE="-doc -test" 0 KiB
[ebuild  N     ] x11-libs/libXext-1.3.5::gentoo  USE="-doc" 333 KiB
[ebuild  N     ] x11-libs/libXfixes-6.0.0::gentoo  USE="-doc" 291 KiB
[ebuild  N     ] x11-libs/libXrender-0.9.11::gentoo  296 KiB
[ebuild  N     ] media-libs/libglvnd-1.6.0::gentoo  USE="X -test" 552 KiB
[ebuild  N     ] x11-libs/libXxf86vm-1.1.5::gentoo  USE="-doc" 260 KiB
[ebuild  N     ] x11-libs/libXrandr-1.5.3::gentoo  USE="-doc" 276 KiB
[ebuild  N     ] dev-python/mako-1.2.4::gentoo  USE="-doc -test" PYTHON_TARGETS="python3_10 -pypy3 -python3_8 -python3_9 -python3_11" 486 KiB
[ebuild  N     ] sys-devel/llvm-15.0.6:15::gentoo  USE="binutils-plugin libffi ncurses -debug -doc -exegesis -libedit -test -verify-sig -xar -xml -z3 -zstd" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) (-ARC) (-CSKY) (-DirectX) (-LoongArch) (-M68k) (-SPIRV)" 240 KiB
[ebuild  N     ] sys-devel/llvm-toolchain-symlinks-15-r1:15::gentoo  USE="native-symlinks -multilib-symlinks" 0 KiB
[ebuild  N     ] sys-devel/llvmgold-15::gentoo  0 KiB
[ebuild  N     ] media-libs/mesa-22.3.0::gentoo  USE="X gles2 llvm proprietary-codecs vaapi zstd -d3d9 -debug -gles1 -lm-sensors -opencl -osmesa (-selinux) -test -unwind -valgrind -vdpau -vulkan -vulkan-overlay -wayland -xa -zink" CPU_FLAGS_X86="sse2" VIDEO_CARDS="intel nouveau radeon radeonsi -d3d12 (-freedreno) (-lima) (-panfrost) -r300 -r600 (-v3d) (-vc4) -virgl (-vivante) -vmware" 16,484 KiB
[ebuild  N     ] virtual/opengl-7.0-r2::gentoo  0 KiB
[ebuild   R    ] media-libs/libva-2.16.0:0/2::gentoo  USE="X* -opengl -wayland" 262 KiB

Total: 24 packages (23 new, 1 reinstall), Size of downloads: 157,668 KiB

The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by virtual/opengl-7.0-r2::gentoo
# required by media-libs/libva-2.16.0::gentoo[X]
# required by media-libs/libva (argument)
>=media-libs/mesa-22.3.0 X
# required by media-libs/mesa-22.3.0::gentoo
# required by virtual/opengl-7.0-r2::gentoo
# required by media-libs/libva-2.16.0::gentoo[X]
# required by media-libs/libva (argument)
>=media-libs/libglvnd-1.6.0 X

Would you like to add these changes to your config files? [Yes/No]
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-07 10:05:16 UTC
Nobody has said your bug is invalid, but nobody has had a chance to look into it yet.
Comment 8 Conrad Kostecki gentoo-dev 2022-12-30 23:33:26 UTC

*** This bug has been marked as a duplicate of bug 882139 ***
Comment 9 Milos Ivanovic 2023-01-20 23:46:11 UTC
(In reply to Conrad Kostecki from comment #8)
> *** This bug has been marked as a duplicate of ***
I don't understand why my bug was marked as a duplicate. bug 882139 talks about the issue being solved by doing USE="X", but I do not want to set USE="X" because this is a headless machine and has no X server or need for X libs. This is what I referred to in my last emerge comment - I was responding to:

(In reply to setun.90 from comment #5)
> Possible duplicate of bug 882139?
which I disagree with. I do not wish to pull in all the X libs.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-20 23:57:33 UTC
(In reply to Milos Ivanovic from comment #9)
> (In reply to Conrad Kostecki from comment #8)
> > *** This bug has been marked as a duplicate of ***
> I don't understand why my bug was marked as a duplicate. bug 882139 talks
> about the issue being solved by doing USE="X", but I do not want to set
> USE="X" because this is a headless machine and has no X server or need for X
> libs. This is what I referred to in my last emerge comment - I was
> responding to:
> 

No, it talks about a workaround being USE=X. Your error is identical, you just have a different perspective on what you want the solution to be, which is fine - the other bug is still open.

*** This bug has been marked as a duplicate of bug 882139 ***