Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 663418 - media-libs/mesa-18.2.0_rc2 : meson.build:611:4: ERROR: Problem encountered: The nine state tracker requires at least on non-swrast gallium driver.
Summary: media-libs/mesa-18.2.0_rc2 : meson.build:611:4: ERROR: Problem encountered: T...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 663476 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-08-12 08:28 UTC by Toralf Förster
Modified: 2018-08-18 04:53 UTC (History)
14 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.12 KB, text/plain)
2018-08-12 08:28 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,34.84 KB, text/plain)
2018-08-12 08:28 UTC, Toralf Förster
Details
environment (environment,141.07 KB, text/plain)
2018-08-12 08:28 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.20 KB, application/x-bzip)
2018-08-12 08:28 UTC, Toralf Förster
Details
media-libs:mesa-18.2.0_rc2:20180812-021649.log (media-libs:mesa-18.2.0_rc2:20180812-021649.log,4.27 KB, text/plain)
2018-08-12 08:28 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,26.48 KB, application/x-bzip)
2018-08-12 08:28 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-08-12 08:28:00 UTC
Program pkg-config found: YES (/usr/bin/pkg-config)

meson.build:611:4: ERROR:  Problem encountered: The nine state tracker requires at least on non-swrast gallium driver.

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_64.amd64/meson-logs/meson-log.txt
 * ERROR: media-libs/mesa-18.2.0_rc2::gentoo failed (configure phase):

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-no-multilib-hardened_libressl_20180811-094711

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems) *



emerge -qpv media-libs/mesa
[ebuild  N    ] media-libs/mesa-18.2.0_rc2  USE="classic d3d9 dri3 egl gallium gbm llvm -debug -gles1 -gles2 -lm_sensors -opencl -openmax -osmesa -pax_kernel -pic (-selinux) -test -unwind -vaapi -valgrind -vdpau -vulkan -wayland -xa -xvmc" VIDEO_CARDS="(-freedreno) -i915 -i965 (-imx) -intel -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi (-vc4) -virgl (-vivante) -vmware"
Comment 1 Toralf Förster gentoo-dev 2018-08-12 08:28:03 UTC
Created attachment 543150 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-08-12 08:28:06 UTC
Created attachment 543152 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-08-12 08:28:09 UTC
Created attachment 543154 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-08-12 08:28:12 UTC
Created attachment 543156 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-08-12 08:28:15 UTC
Created attachment 543158 [details]
media-libs:mesa-18.2.0_rc2:20180812-021649.log
Comment 6 Toralf Förster gentoo-dev 2018-08-12 08:28:18 UTC
Created attachment 543160 [details]
temp.tbz2
Comment 7 Ingo Brunberg 2018-08-12 08:55:34 UTC
I encountered another closely related problem:

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

This is with VIDEO_CARDS="i965 intel".
Comment 8 email200202 2018-08-12 09:01:10 UTC
In my case the error message:

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

VIDEO_CARDS="nvidia" and the driver is x11-drivers/nvidia-drivers-390.77
Comment 9 Klaus Kusche 2018-08-12 12:33:18 UTC
In my case (building only radeon and radeonsi):

meson.build:593:4: ERROR:  Problem encountered: XA state tracker requires at least one of the following gallium drivers: nouveau, freedreno, i915, svga.
Comment 10 Viktor Levin 2018-08-12 14:14:23 UTC
In my case:

meson.build:401:4: ERROR:  Problem encountered: VDPAU state tracker requires at least one of the following gallium drivers: r300, r600, radeonsi, nouveau.
Comment 11 faminebadger 2018-08-12 16:37:53 UTC
And I had:

roblem encountered: XA state tracker requires at least one of the following gallium drivers: nouveau, freedreno, i915, svga.

Using VIDEO_CARDS="radeon radeonsi".

This new version looks awful, given the number of different but related problems it's caused.
Comment 12 Joe Kappus 2018-08-12 18:19:59 UTC
By the looks of it, for intel GPU systems, there must be USE="-vaapi -vdpau -xa" to build.
Comment 13 Brian Evans (RETIRED) gentoo-dev 2018-08-12 23:44:40 UTC
*** Bug 663476 has been marked as a duplicate of this bug. ***
Comment 14 email200202 2018-08-13 07:32:17 UTC
I think it will take time to resolve this bug, I masked this version for now.
Comment 15 Ingo Brunberg 2018-08-13 08:41:17 UTC
(In reply to Joe Kappus from comment #12)
> By the looks of it, for intel GPU systems, there must be USE="-vaapi -vdpau
> -xa" to build.

Shouldn't the gallium use flag be dropped instead?
I think some expert knowledge (upstream) is necessary to correctly sort out dependencies and resolve this bug.
Comment 16 N. Andrew Walsh 2018-08-14 18:58:15 UTC
the gallium flag is required with USE="llvm". How necessary is that flag?
Comment 17 Dennis Schridde 2018-08-15 08:27:35 UTC
In addition to REQUIRED_USE="
  vaapi? ( gallium || ( video_cards_{r600,radeon,nouveau} ) )
  d3d9? ( gallium || (video_cards_{i915,r300,r600,radeonsi,nouveau} ) )
  vdpau? ( gallium || ( video_cards_{r300,r600,radeonsi,nouveau} ) )"

We also need REQUIRED_USE="...
  xvmc? ( gallium || ( video_cards_{r600,nouveau} ) )
  xa? ( gallium || ( video_cards_{i915,freedreno,nouveau} ) )
  omx? ( gallium || ( video_cards_{r600,radeonsi,nouveau} ) )

See-Also: https://bugs.gentoo.org/663470
See-Also: https://bugs.gentoo.org/663418
See-Also: https://bugs.gentoo.org/663546
See-Also: https://bugs.gentoo.org/663660
Comment 18 Klaus Kusche 2018-08-15 08:53:39 UTC
(In reply to Dennis Schridde from comment #17)
> In addition to REQUIRED_USE="
>   vaapi? ( gallium || ( video_cards_{r600,radeon,nouveau} ) )
>   d3d9? ( gallium || (video_cards_{i915,r300,r600,radeonsi,nouveau} ) )
>   vdpau? ( gallium || ( video_cards_{r300,r600,radeonsi,nouveau} ) )"
> 
> We also need REQUIRED_USE="...
>   xvmc? ( gallium || ( video_cards_{r600,nouveau} ) )
>   xa? ( gallium || ( video_cards_{i915,freedreno,nouveau} ) )
>   omx? ( gallium || ( video_cards_{r600,radeonsi,nouveau} ) )
> 
> See-Also: https://bugs.gentoo.org/663470
> See-Also: https://bugs.gentoo.org/663418
> See-Also: https://bugs.gentoo.org/663546
> See-Also: https://bugs.gentoo.org/663660

But I have the gallium flag set and still get the error message (for XA),
so the REQUIRED_USE above does not cover all cases.
Comment 19 Dennis Schridde 2018-08-15 12:46:52 UTC
(In reply to Klaus Kusche from comment #18)
> (In reply to Dennis Schridde from comment #17)
> > In addition to REQUIRED_USE="
> >   d3d9? ( gallium || (video_cards_{i915,r300,r600,radeonsi,nouveau} ) )
> 
> But I have the gallium flag set and still get the error message (for XA),
> so the REQUIRED_USE above does not cover all cases.

Do you also have one of the abovementioned drivers in your VIDEO_CARDS list?
Comment 20 Klaus Kusche 2018-08-15 12:58:17 UTC
(In reply to Dennis Schridde from comment #19)
> (In reply to Klaus Kusche from comment #18)
> > (In reply to Dennis Schridde from comment #17)
> > > In addition to REQUIRED_USE="
> > >   d3d9? ( gallium || (video_cards_{i915,r300,r600,radeonsi,nouveau} ) )
> > 
> > But I have the gallium flag set and still get the error message (for XA),
> > so the REQUIRED_USE above does not cover all cases.
> 
> Do you also have one of the abovementioned drivers in your VIDEO_CARDS list?

I'm not talking about d3d9, I'm talking about XA.
My drivers are radeon and radeonsi.
Comment 21 Dennis Schridde 2018-08-15 16:59:02 UTC
(In reply to Klaus Kusche from comment #20)
> (In reply to Dennis Schridde from comment #19)
> > (In reply to Klaus Kusche from comment #18)
> > > (In reply to Dennis Schridde from comment #17)
> > > > In addition to REQUIRED_USE="
> > > >   d3d9? ( gallium || (video_cards_{i915,r300,r600,radeonsi,nouveau} ) )
> > > 
> > > But I have the gallium flag set and still get the error message (for XA),
> > > so the REQUIRED_USE above does not cover all cases.
> > 
> > Do you also have one of the abovementioned drivers in your VIDEO_CARDS list?
> 
> I'm not talking about d3d9, I'm talking about XA.
> My drivers are radeon and radeonsi.

In that case you have to satisfy this:
>   xa? ( gallium || ( video_cards_{i915,freedreno,nouveau} ) )

Since radeon and radeonsi are not i915, freedreno or nouveau, XA is not supported on your cards.
Comment 22 Brian Evans (RETIRED) gentoo-dev 2018-08-15 19:32:38 UTC
(In reply to Dennis Schridde from comment #17)
> In addition to REQUIRED_USE="
>   vaapi? ( gallium || ( video_cards_{r600,radeon,nouveau} ) )
>   d3d9? ( gallium || (video_cards_{i915,r300,r600,radeonsi,nouveau} ) )
>   vdpau? ( gallium || ( video_cards_{r300,r600,radeonsi,nouveau} ) )"
> 
> We also need REQUIRED_USE="...
>   xvmc? ( gallium || ( video_cards_{r600,nouveau} ) )
>   xa? ( gallium || ( video_cards_{i915,freedreno,nouveau} ) )
>   omx? ( gallium || ( video_cards_{r600,radeonsi,nouveau} ) )
> 
> See-Also: https://bugs.gentoo.org/663470
> See-Also: https://bugs.gentoo.org/663418
> See-Also: https://bugs.gentoo.org/663546
> See-Also: https://bugs.gentoo.org/663660

Due to the resolution to bug 639400, i915 won't build gallium if classic is set.

So your d3d9 and xa may not satisfy now.  It was rare that a user would set i915 (as a correct intention) anyway as it is for pre-"Core 2" graphics processors.
Comment 23 Brian Evans (RETIRED) gentoo-dev 2018-08-15 19:33:27 UTC
Oops, make that bug 663400
Comment 24 Larry the Git Cow gentoo-dev 2018-08-18 04:53:31 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0ece8925e0d757751a9b9d26eeae2796f5aa4b8

commit a0ece8925e0d757751a9b9d26eeae2796f5aa4b8
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2018-08-18 04:36:07 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2018-08-18 04:53:17 +0000

    media-libs/mesa: Replace REQUIRED_USE with ewarns
    
    Mesa has a lot of configuration options and many of them are only
    meaningful when specific Gallium drivers are enabled. Previously we
    attempted to specify all of those dependencies with REQUIRED_USE logic
    which was tedious for users to configure but ensured they knew what they
    were getting.
    
    With the transition to Meson, some configuration combinations that had
    not been specified in REQUIRED_USE (and with autotools were silently
    ignored) began producing configuration errors. Rather than extend
    REQUIRED_USE instead provide a warning in pkg_prepare().
    
    Closes: https://bugs.gentoo.org/658892
    Closes: https://bugs.gentoo.org/658938
    Closes: https://bugs.gentoo.org/663418
    Closes: https://bugs.gentoo.org/663470
    Closes: https://bugs.gentoo.org/663660

 media-libs/mesa/mesa-9999.ebuild | 126 ++++++++++++++++++++++++++++++++++-----
 1 file changed, 111 insertions(+), 15 deletions(-)