Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Mathieu Dubois-Briand" <mathieu.dubois-briand@bootlin.com>
To: <dmitry.baryshkov@oss.qualcomm.com>,
	<openembedded-core@lists.openembedded.org>
Cc: "Khem Raj" <raj.khem@gmail.com>
Subject: Re: [OE-core] [PATCH v2 0/7] mesa: upgrade to 25.0.2
Date: Fri, 28 Mar 2025 10:18:05 +0100	[thread overview]
Message-ID: <D8RSC82XXPV4.1NJ347ZPRD6V1@bootlin.com> (raw)
In-Reply-To: <20250327221807.2551544-1-dmitry.baryshkov@oss.qualcomm.com>

On Thu Mar 27, 2025 at 11:18 PM CET, Dmitry Baryshkov via lists.openembedded.org wrote:
> libclc is required in order to build Intel drivers in Mesa 24.1 and
> later. Thus OE-Core is currently locked to the 24.0.x branch, which is
> no longer maintained, having last release in June 2024.
>
> A clean solution is to package Clang, then use it to build libclc and
> SPIRV-LLVM-Translator (required for Mesa OpenCL support). However
> creating proper recipes for Clang is a long process (ongoing by Khem
> Raj).
>
> This patchset attempts to solve the issue in a simpler way: by building
> libclc and SPIRV-LLVM-Translator together with the LLVM. This way we
> don't have to create target Clang recipes, there is no extra toolchain
> to support, etc. Clang binaries are creted as a part of the build
> process (in order to support building target packages), however it only
> hits the LLVM sysroot-native and is only used by the LLVM target build.
>
> Future work by Khem (once Clang is properly supported in OE-Core) should
> allow us to create proper recipes for libclc and spirv-llvm-translator
> and drop them from the llvm / clang recipe.
>
> I think this approach provides a good balance between OE-Core being
> stuck with the outdated Mesa release and being able to upgrade it,
> bringing support for new hardware.
>
> Last two patches of the series bring in RustiCL support, a new OpenCL
> implementation within Mesa. They are optional for the sake of the
> upgrade and can be dropped if there is any issue with those. RustiCL
> support is mostly compile-tested at this point.
>
> Changes since v1:
> - Dropped YOCTO_ALTERNATE_LIBDIR patch
> - Reworked mesa / LLVM integration to always use get_option('libdir')
> - Reenabled AMD Vulkan driver (got disabled because of c&p error)
> - Moved mesa-clc options to the libclc PACKAGECONFIG to fix several
>   build errors
>
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>

Hi,

Thanks for the v2, but it looks like we still have some issues on the
autobuilder:

ERROR: nativesdk-mesa-2_25.0.2-r0 do_package_qa: QA Issue: File /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/lib/dri/libdril_dri.so in package nativesdk-mesa-megadriver contains reference to TMPDIR [buildpaths]
ERROR: nativesdk-mesa-2_25.0.2-r0 do_package_qa: QA Issue: nativesdk-mesa-megadriver: /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/lib/dri/libdril_dri.so contains bad RPATH /srv/pokybuild/yocto-worker/meta-intel/build/build/tmp/work/x86_64-linux/llvm-native/20.1.0/recipe-sysroot-native/usr/lib:/srv/pokybuild/yocto-worker/meta-intel/build/build/tmp/work/x86_64-linux/llvm-native/20.1.0/recipe-sysroot-native/lib [rpaths]
ERROR: nativesdk-mesa-2_25.0.2-r0 do_package_qa: QA Issue: File /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/lib/libgallium-25.0.2.so in package nativesdk-libgallium contains reference to TMPDIR [buildpaths]
ERROR: nativesdk-mesa-2_25.0.2-r0 do_package_qa: QA Issue: nativesdk-libgallium: /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/lib/libgallium-25.0.2.so contains bad RPATH /srv/pokybuild/yocto-worker/meta-intel/build/build/tmp/work/x86_64-linux/llvm-native/20.1.0/recipe-sysroot-native/usr/lib:/srv/pokybuild/yocto-worker/meta-intel/build/build/tmp/work/x86_64-linux/llvm-native/20.1.0/recipe-sysroot-native/lib [rpaths]
ERROR: nativesdk-mesa-2_25.0.2-r0 do_package_qa: Fatal QA errors were found, failing task.

https://autobuilder.yoctoproject.org/valkyrie/#/builders/4/builds/1288
https://autobuilder.yoctoproject.org/valkyrie/#/builders/2/builds/1289

-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



  parent reply	other threads:[~2025-03-28  9:18 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-27 22:18 [PATCH v2 0/7] mesa: upgrade to 25.0.2 Dmitry Baryshkov
2025-03-27 22:18 ` [PATCH v2 1/7] llvm: move libLLVM.so.N.M to llvm-libllvm package Dmitry Baryshkov
2025-03-27 22:18 ` [PATCH v2 2/7] llvm: use OECMAKE_SOURCEPATH to specify cmake dir Dmitry Baryshkov
2025-03-27 22:18 ` [PATCH v2 3/7] llvm: support building libclc Dmitry Baryshkov
2025-03-28  9:35   ` [OE-core] " Alexander Kanavin
2025-03-28 10:55     ` Dmitry Baryshkov
2025-03-28 11:00       ` Alexander Kanavin
2025-03-27 22:18 ` [PATCH v2 4/7] llvm: add SPIRV-LLVM-Translator support Dmitry Baryshkov
2025-03-28  9:42   ` [OE-core] " Alexander Kanavin
2025-03-27 22:18 ` [PATCH v2 5/7] mesa: upgrade 24.0.7 -> 25.0.2 Dmitry Baryshkov
2025-03-28  9:57   ` [OE-core] " Alexander Kanavin
2025-03-27 22:18 ` [PATCH v2 6/7] bindgen-cli: a tool to generate Rust bindings Dmitry Baryshkov
2025-03-27 22:18 ` [PATCH v2 7/7] mesa: add support for RustiCL under PACKAGECONFIG "opencl" Dmitry Baryshkov
2025-03-28  9:59   ` [OE-core] " Alexander Kanavin
2025-03-28  4:33 ` [PATCH v2 0/7] mesa: upgrade to 25.0.2 Khem Raj
2025-03-28 11:01   ` Dmitry Baryshkov
2025-03-28 11:03     ` [OE-core] " Alexander Kanavin
2025-03-28 11:20       ` Dmitry Baryshkov
2025-03-28  9:18 ` Mathieu Dubois-Briand [this message]
2025-03-28 10:56   ` Dmitry Baryshkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=D8RSC82XXPV4.1NJ347ZPRD6V1@bootlin.com \
    --to=mathieu.dubois-briand@bootlin.com \
    --cc=dmitry.baryshkov@oss.qualcomm.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=raj.khem@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox