Skip to contentSkip to conversation

problematic interaction between buildtools and virgl

DISCUSSION Richard Purdie 1 participant 1 message Jan 12, 2023

lore
Share & tools
lore
#0 lore raw

We'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:~> pkg-config --variable=dridriverdir dri /usr/lib64/dri

but using buildtools:

pokybuild@opensuse154-ty-2:~/yocto-worker/oe-selftest/build> source buildtools/environment-setup-x86_64-pokysdk-linux pokybuild@opensuse154-ty-2:~/yocto-worker/oe-selftest/build> 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'
to the PKG_CONFIG_PATH environment variable
No package 'dri' found
pokybuild@opensuse154-ty-2:~/yocto-worker/oe-selftest/build> 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'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> 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.

Cheers,

Richard