Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 663546 - media-libs/mesa-18.2.0_rc2: VA state tracker requirements not checked
Summary: media-libs/mesa-18.2.0_rc2: VA state tracker requirements not checked
Status: RESOLVED DUPLICATE of bug 663470
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-13 22:17 UTC by Ilia Mirkin
Modified: 2018-08-15 23:09 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ilia Mirkin 2018-08-13 22:17:49 UTC
Use flags:

[ebuild     U ~] media-libs/mesa-18.2.0_rc2::gentoo [18.1.5::gentoo] USE="classic dri3 egl gallium gbm gles1 gles2 llvm vaapi vulkan -d3d9 -debug -lm_sensors% -opencl -openmax -osmesa -pax_kernel -pic (-selinux) {-test%} -unwind -valgrind -vdpau -wayland -xa -xvmc (-bindist%) (-nptl%*)" ABI_X86="32 (64) (-x32)" VIDEO_CARDS="i965 intel (-freedreno) -i915 (-imx) -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi (-vc4) -virgl (-vivante) -vmware" 0 KiB

Error:

>>> Emerging (11 of 11) media-libs/mesa-18.2.0_rc2::gentoo
 * mesa-18.2.0-rc2.tar.xz BLAKE2B SHA512 size ;-) ...                    [ ok ]
>>> Unpacking source...
>>> Unpacking mesa-18.2.0-rc2.tar.xz to /var/tmp/portage/media-libs/mesa-18.2.0_rc2/work
>>> Source unpacked in /var/tmp/portage/media-libs/mesa-18.2.0_rc2/work
>>> Preparing source in /var/tmp/portage/media-libs/mesa-18.2.0_rc2/work/mesa-18.2.0-rc2 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-libs/mesa-18.2.0_rc2/work/mesa-18.2.0-rc2 ...
 * abi_x86_32.x86: running multilib-minimal_abi_src_configure
meson --buildtype plain --libdir lib32 --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload --cross-file /var/tmp/portage/media-libs/mesa-18.2.0_rc2/temp/meson.i686-pc-linux-gnu.x86 -Dplatforms=x11,surfaceless,drm -Dgallium-nine=false -Dllvm=true -Dgallium-omx=disabled -Dgallium-va=true -Dgallium-vdpau=false -Dgallium-xa=false -Dgallium-xvmc=false -Dva-libs-path=/usr/lib32/va/drivers -Dglx-read-only-text=false -Dosmesa=none -Dbuild-tests=false -Dglx=dri -Dshared-glapi=true -Ddri3=true -Degl=true -Dgbm=true -Dgles1=true -Dgles2=true -Dselinux=false -Dlibunwind=false -Dlmsensors=false -Dvalgrind=false -Ddri-drivers=i965 -Dgallium-drivers=swrast -Dvulkan-drivers=intel --buildtype plain /var/tmp/portage/media-libs/mesa-18.2.0_rc2/work/mesa-18.2.0-rc2 /var/tmp/portage/media-libs/mesa-18.2.0_rc2/work/mesa-18.2.0-rc2-abi_x86_32.x86
The Meson build system
Version: 0.46.1
Source dir: /var/tmp/portage/media-libs/mesa-18.2.0_rc2/work/mesa-18.2.0-rc2
Build dir: /var/tmp/portage/media-libs/mesa-18.2.0_rc2/work/mesa-18.2.0-rc2-abi_x86_32.x86
Build type: cross build
Program python found: YES (/var/tmp/portage/media-libs/mesa-18.2.0_rc2/temp/python2.7/bin/python)
Project name: mesa
Native C compiler: x86_64-pc-linux-gnu-gcc -m32 (gcc 7.3.0 "x86_64-pc-linux-gnu-gcc (Gentoo 7.3.0-r3 p1.4) 7.3.0")
Appending CFLAGS from environment: '-march=skylake -O2 -pipe'
Appending LDFLAGS from environment: '-Wl,-O1 -Wl,--as-needed'
Cross C compiler: x86_64-pc-linux-gnu-gcc -m32 (gcc 7.3.0)
Native C++ compiler: x86_64-pc-linux-gnu-g++ -m32 (gcc 7.3.0 "x86_64-pc-linux-gnu-g++ (Gentoo 7.3.0-r3 p1.4) 7.3.0")
Appending CXXFLAGS from environment: '-march=skylake -O2 -pipe'
Appending LDFLAGS from environment: '-Wl,-O1 -Wl,--as-needed'
Cross C++ compiler: x86_64-pc-linux-gnu-g++ -m32 (gcc 7.3.0)
Host machine cpu family: x86
Host machine cpu: i686
Target machine cpu family: x86
Target machine cpu: i686
Build machine cpu family: x86
Build machine cpu: i686
Program pkg-config found: YES (/usr/bin/pkg-config)

meson.build:559:4: ERROR:  Problem encountered: VA state tracker requires at least one of the following gallium drivers: r600, radeonsi, nouveau.

A full log can be found at /var/tmp/portage/media-libs/mesa-18.2.0_rc2/work/mesa-18.2.0-rc2-abi_x86_32.x86/meson-logs/meson-log.txt

-----

The problem here isn't the error that comes up at build-time, but rather the fact that the ebuild doesn't check for this condition. Either it should know to disable vaapi even though there's a use-flag, or it should highlight the condition earlier. Note that the former is highly preferable at first glance, since otherwise one can't have a USE=vaapi globally without a special exception for mesa.

This same configuration worked OK with the autotools mesa build -- it just doesn't complain about the condition.
Comment 1 Dennis Schridde 2018-08-15 08:22:28 UTC
Duplicate of bug #663470
Comment 2 Ilia Mirkin 2018-08-15 20:59:48 UTC
I suspect the right approach is to mask (? not sure of the term) the vaapi enable if none of the appropriate drivers have been selected. Not 100% sure how one does that.
Comment 3 Matt Turner gentoo-dev 2018-08-15 23:09:51 UTC

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