Hi Quentin,

On Thu, Mar 26, 2026 at 12:10:07PM +0100, Quentin Schulz wrote:
> Hi Ernest,
> 
> On 3/20/26 4:57 PM, Quentin Schulz via lists.openembedded.org wrote:
> > Hi Ernest,
> > 
> > On 3/20/26 4:26 PM, Ernest Van Hoecke wrote:
> > > Hi Quentin,
> > > 
> > > Recently our do_configure task of mesa started failing with the
> > > following error:
> > > 
> > > | Program pco_clc found: NO
> > > |
> > > |
> > > ../sources/mesa-26.0.1/src/imagination/pco/uscgen/meson.build:7:17:
> > > ERROR: Program 'pco_clc' not found or not executable
> > > |
> > > | A full log can be found at
> > > /var/home/vhe/build/tdxref/master-extint/
> > > build/tmp/work/aarch64-tdx-linux/mesa/26.0.1/build/meson-logs/meson-
> > > log.txt
> > > |
> > > | Last 10 lines of meson-log.txt:
> > > | int i;
> > > |
> > > | Cached compiler stdout:
> > > |
> > > | Cached compiler stderr:
> > > |
> > > | Compiler for C supports arguments -Werror=pointer-arith: YES (cached)
> > > | Program pco_clc found: NO
> > > |
> > > |
> > > ../sources/mesa-26.0.1/src/imagination/pco/uscgen/meson.build:7:17:
> > > ERROR: Program 'pco_clc' not found or not executable
> > > |
> > > | ERROR: meson setup failed
> > > | WARNING: /var/home/vhe/build/tdxref/master-extint/build/tmp/work/
> > > aarch64-tdx-linux/mesa/26.0.1/temp/run.do_configure.144042:173 exit
> > > 1 from 'exit 1'
> > > 
> > > Reverting this patch fixes the issue, but it does not seem to be the
> > > commit that introduced the problem. It only started later, presumably
> > > something changed in pulling in libclc or a similar issue.
> > > 
> > > I can bisect it more later but already wanted to ask if you or someone
> > > else had any ideas. Thanks!
> > > 
> > 
> > I suspect you need
> > 
> > diff --git a/meta/recipes-graphics/mesa/mesa-tools-native.bb b/meta/
> > recipes-graphics/mesa/mesa-tools-native.bb
> > index 50d2f5cbb0..0fff6ef1dd 100644
> > --- a/meta/recipes-graphics/mesa/mesa-tools-native.bb
> > +++ b/meta/recipes-graphics/mesa/mesa-tools-native.bb
> > @@ -3,7 +3,7 @@ inherit_defer native
> > 
> >   SUMMARY += " (tools only)"
> > 
> > -PACKAGECONFIG = "tools asahi panfrost"
> > +PACKAGECONFIG = "tools asahi imagination panfrost"
> >   # llvm required for libclc
> >   PACKAGECONFIG += "gallium-llvm"
> >   # Doesn't compile without wayland-scanner if PLATFORMS has wayland in,
> > and,
> > 
> > and possibly
> > 
> > diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-
> > graphics/mesa/mesa.inc
> > index 14dc7b6c51..44d3d17a52 100644
> > --- a/meta/recipes-graphics/mesa/mesa.inc
> > +++ b/meta/recipes-graphics/mesa/mesa.inc
> > @@ -137,7 +137,7 @@ VULKAN_DRIVERS .=
> > "${@bb.utils.contains('PACKAGECONFIG', 'asahi libclc gallium-l
> >   VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'broadcom',
> > ',broadcom', '', d)}"
> >   VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'freedreno',
> > ',freedreno', '', d)}"
> >   VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'virtio',
> > ',gfxstream', '', d)}"
> > -VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'imagination',
> > ',imagination', '', d)}"
> > +VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'imagination
> > libclc', ',imagination', '', d)}"
> >   VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'intel libclc
> > gallium-llvm', ',intel', '', d)}"
> >   VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'intel
> > libclc', ',intel_hasvk', '', d)}"
> >   VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'panfrost
> > libclc', ',panfrost', '', d)}"
> > 
> > 
> > It would help if you could provide the PACKAGECONFIG you're using and
> > ideally a minimal reproducer so we can look this up more in depth on our
> > side.
> > 
> 
> I've been able to reproduce and provide a patch for it, see 
> https://lore.kernel.org/openembedded-core/[email protected]/
> can you please confirm this works as expected? I only build tested it. A
> Tested-by (provided you have tested it :) ) as an answer to the patch would
> be most welcome, thanks!
> 
> Thanks for the report!
> Quentin
> 

Thanks a lot for your work here! Apologies for my late reply, I was
traveling for a few days and kept getting distracted by long build times
before figuring out the extra information you needed.

I checked out openembedded-core commit cf91b8b5d405
("meson: upgrade 1.10.1 -> 1.10.2") and applied your patch series on
top, and I can confirm that this fixes the build for me.

Sadly I'm hitting another unrelated build issue for more recent commits,
but I'll do my best to get a decent build running on the AM69 tomorrow
to provide the Tested-by tag on the new thread.

Thanks again and kind regards,
Ernest
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#234053): 
https://lists.openembedded.org/g/openembedded-core/message/234053
Mute This Topic: https://lists.openembedded.org/mt/117675192/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to