<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15004</bug_id>
          
          <creation_ts>2023-01-12 15:27:01 +0000</creation_ts>
          <short_desc>problematic interaction between buildtools and virgl</short_desc>
          <delta_ts>2023-01-19 15:50:03 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>Infrastructure</classification>
          <product>AutoBuilder</product>
          <component>autobuilder</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.2 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandre Belloni">alexandre.belloni</reporter>
          <assigned_to name="Alexander Kanavin">alex.kanavin</assigned_to>
          <cc>alexandre.belloni</cc>
    
    <cc>infras.ab.watcher</cc>
    
    <cc>Infras.watcher</cc>
    
    <cc>pidge</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>94691</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2023-01-12 15:27:01 +0000</bug_when>
    <thetext>Email from Richard:

We&apos;ve been seeing AB failures like:

https://autobuilder.yoctoproject.org/typhoon/#/builders/56/builds/2103

which looks like dri needs to be installed on the host but the problem
is in fact buildtools. Taking the opensuse154-ty-2 worker where this
failed:

rpurdie@opensuse154-ty-2:~&gt; pkg-config --variable=dridriverdir dri
/usr/lib64/dri

but using buildtools:

pokybuild@opensuse154-ty-2:~/yocto-worker/oe-selftest/build&gt; source buildtools/environment-setup-x86_64-pokysdk-linux
pokybuild@opensuse154-ty-2:~/yocto-worker/oe-selftest/build&gt; pkg-config --variable=dridriverdir dri
Package dri was not found in the pkg-config search path.
Perhaps you should add the directory containing `dri.pc&apos;
to the PKG_CONFIG_PATH environment variable
No package &apos;dri&apos; found
pokybuild@opensuse154-ty-2:~/yocto-worker/oe-selftest/build&gt; which pkg-config
/home/pokybuild/yocto-worker/oe-selftest/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/bin/pkg-config

which means the pkg-config from buildtools isn&apos;t falling back to host
pc files. We should be able to set PKG_CONFIG_PATH in the sdk to
account for this, e.g.:

pokybuild@opensuse154-ty-2:~/yocto-worker/oe-selftest/build&gt;
PKG_CONFIG_PATH=/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/lib/pkgconfig:/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/share/pkgconfig:/usr/lib64/pkgconfig/ pkg-config dri
--variable=dridriverdir
/usr/lib64/dri

the hard part is figuring out which paths the host pkg-config uses.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94692</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2023-01-12 15:28:20 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#builders/56/builds/2103/steps/15/logs/stdio
oe-selftest opensuse154-ty-2

https://autobuilder.yoctoproject.org/typhoon/#builders/56/builds/2094/steps/15/logs/stdio
oe-selftest opensuse154-ty-2


2023-01-12 02:10:06,477 - oe-selftest - INFO - FAIL: runtime_test.TestImage.test_testimage_virgl_headless (subunit.RemotedTestCase)
2023-01-12 02:10:06,478 - oe-selftest - INFO - ----------------------------------------------------------------------
2023-01-12 02:10:06,478 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/oe-selftest/build/meta/lib/oeqa/selftest/cases/runtime_test.py&quot;, line 271, in test_testimage_virgl_headless
    dripath = subprocess.check_output(&quot;pkg-config --variable=dridriverdir dri&quot;, shell=True)
  File &quot;/home/pokybuild/yocto-worker/oe-selftest/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.10/subprocess.py&quot;, line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File &quot;/home/pokybuild/yocto-worker/oe-selftest/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.10/subprocess.py&quot;, line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command &apos;pkg-config --variable=dridriverdir dri&apos; returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/oe-selftest/build/meta/lib/oeqa/core/decorator/__init__.py&quot;, line 35, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/home/pokybuild/yocto-worker/oe-selftest/build/meta/lib/oeqa/selftest/cases/runtime_test.py&quot;, line 273, in test_testimage_virgl_headless
    self.fail(&quot;Could not determine the path to dri drivers on the host via pkg-config.\nPlease install Mesa development files (particularly, dri.pc) on the host machine.&quot;)
  File &quot;/home/pokybuild/yocto-worker/oe-selftest/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.10/unittest/case.py&quot;, line 675, in fail
    raise self.failureException(msg)
AssertionError: Could not determine the path to dri drivers on the host via pkg-config.
Please install Mesa development files (particularly, dri.pc) on the host machine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94698</commentid>
    <comment_count>2</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2023-01-12 15:43:48 +0000</bug_when>
    <thetext>Patch:
https://lists.openembedded.org/g/openembedded-core/message/175802</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94720</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2023-01-13 14:33:03 +0000</bug_when>
    <thetext>I also filed https://bugzilla.yoctoproject.org/show_bug.cgi?id=15007 for the bug in nativesdk-pkgconfig</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94765</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2023-01-19 15:50:03 +0000</bug_when>
    <thetext>https://git.yoctoproject.org/poky/commit/?id=c7cbde198b92973e325c66247ef1d514a5e31eeb</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>