Skip to contentSkip to conversation

spirv-llvm-translator: Upgrade to 21.1.0

PATCH In review Khem Raj 3 participants 4 messages Aug 15, 2025 – Aug 18, 2025

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 spirv-llvm-translator: Upgrade to 21.1.0

---
 ...-translator_20.1.4.bb => spirv-llvm-translator_21.1.0.bb} | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
 rename meta/recipes-graphics/spir/{spirv-llvm-translator_20.1.4.bb => spirv-llvm-translator_21.1.0.bb} (88%)
meta/recipes-graphics/spir/spirv-llvm-translator_21.1.0.bb renamed from meta/recipes-graphics/spir/spirv-llvm-translator_20.1.4.bb +3 -2
similarity index 88%
rename from meta/recipes-graphics/spir/spirv-llvm-translator_20.1.4.bb
rename to meta/recipes-graphics/spir/spirv-llvm-translator_21.1.0.bb
index 64a73ce55aa..6a6c6ac77c4 100644
@@ -6,9 +6,9 @@ LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=47e311aa9caedd1b3abf098bd7814d1d"
 
 # pattern: llvm_branch_200, currently there are no minor releases, so, no llvm_branch_201
 SPIRV_BRANCH = "llvm_release_${@oe.utils.trim_version('${PV}', 1).replace('.', '')}0"
-SRCREV = "74843f2186bb63b6802758222084da17fcbe603c"
+SRCREV = "acb023b63a4bafd53d0ba6a1a452b1f0e5671458"
 SRC_URI = " \
-    git://github.com/KhronosGroup/SPIRV-LLVM-Translator;protocol=https;tag=v${PV};branch=${SPIRV_BRANCH} \
+    git://github.com/KhronosGroup/SPIRV-LLVM-Translator;protocol=https;branch=${SPIRV_BRANCH} \
 "
 
 UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
@@ -20,6 +20,7 @@ inherit cmake pkgconfig python3native
 # Specify any options you want to pass to cmake using EXTRA_OECMAKE:
 # for CMAKE_SHARED_LIBS=OFF see https://github.com/KhronosGroup/SPIRV-LLVM-Translator/issues/1868
 EXTRA_OECMAKE = "\
+    -DBASE_LLVM_VERSION='${@oe.utils.trim_version('${PV}', 3)}' \
     -DBUILD_SHARED_LIBS=ON \
     -DCMAKE_BUILD_TYPE=Release \
     -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
#1 lore raw

Patchtest results for [PATCH] spirv-llvm-translator: Upgrade to 21.1.0

Thank you for your submission. Patchtest identified one or more issues with the patch. Please see the log below for more information:

---
Testing patch /home/patchtest/share/mboxes/spirv-llvm-translator-Upgrade-to-21.1.0.patch

FAIL: test commit message presence: Please include a commit message on your patch explaining the change (test_mbox.TestMbox.test_commit_message_presence)

PASS: pretest src uri left files (test_metadata.TestMetadata.pretest_src_uri_left_files)
PASS: test CVE check ignore (test_metadata.TestMetadata.test_cve_check_ignore)
PASS: test Signed-off-by presence (test_mbox.TestMbox.test_signed_off_by_presence)
PASS: test author valid (test_mbox.TestMbox.test_author_valid)
PASS: test commit message user tags (test_mbox.TestMbox.test_commit_message_user_tags)
PASS: test lic files chksum modified not mentioned (test_metadata.TestMetadata.test_lic_files_chksum_modified_not_mentioned)
PASS: test max line length (test_metadata.TestMetadata.test_max_line_length)
PASS: test mbox format (test_mbox.TestMbox.test_mbox_format)
PASS: test non-AUH upgrade (test_mbox.TestMbox.test_non_auh_upgrade)
PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format)
PASS: test shortlog length (test_mbox.TestMbox.test_shortlog_length)
PASS: test src uri left files (test_metadata.TestMetadata.test_src_uri_left_files)
PASS: test target mailing list (test_mbox.TestMbox.test_target_mailing_list)

SKIP: pretest pylint: No python related patches, skipping test (test_python_pylint.PyLint.pretest_pylint)
SKIP: test CVE tag format: No new CVE patches introduced (test_patch.TestPatch.test_cve_tag_format)
SKIP: test Signed-off-by presence: No new CVE patches introduced (test_patch.TestPatch.test_signed_off_by_presence)
SKIP: test Upstream-Status presence: No new CVE patches introduced (test_patch.TestPatch.test_upstream_status_presence_format)
SKIP: test bugzilla entry format: No bug ID found (test_mbox.TestMbox.test_bugzilla_entry_format)
SKIP: test lic files chksum presence: No added recipes, skipping test (test_metadata.TestMetadata.test_lic_files_chksum_presence)
SKIP: test license presence: No added recipes, skipping test (test_metadata.TestMetadata.test_license_presence)
SKIP: test pylint: No python related patches, skipping test (test_python_pylint.PyLint.test_pylint)
SKIP: test series merge on head: Merge test is disabled for now (test_mbox.TestMbox.test_series_merge_on_head)
SKIP: test summary presence: No added recipes, skipping test (test_metadata.TestMetadata.test_summary_presence)

---

Please address the issues identified and
submit a new revision of the patch, or alternatively, reply to this email with an explanation of why the patch should be accepted. If you believe these results are due to an error in patchtest, please submit a bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category under 'Yocto Project Subprojects'). For more information on specific failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank you!

#2 lore raw
In reply to Khem Raj
Quoted 2 lines · Khem Raj via lists.openembedded.org

---

Hi Khem,

It looks like this is breaking the build:

ERROR: spirv-llvm-translator-native-21.1.0-r0 do_configure: Execution of '/srv/pokybuild/yocto-worker/qemux86-64-x32/build/build/tmp/work/x86_64-linux/spirv-llvm-translator-native/21.1.0/temp/run.do_configure.97313' failed with exit code 1
...

| CMake Error at CMakeLists.txt:82 (find_package):
|   Could not find a configuration file for package "LLVM" that is compatible
|   with requested version "21.1.0".
|
|   The following configuration files were considered but not accepted:
| 
|     /srv/pokybuild/yocto-worker/qemux86-64-x32/build/build/tmp/work/x86_64-linux/spirv-llvm-translator-native/21.1.0/recipe-sysroot-native/usr/lib/cmake/llvm/LLVMConfig.cmake, version: 20.1.8

https://autobuilder.yoctoproject.org/valkyrie/#/builders/11/builds/2207
https://autobuilder.yoctoproject.org/valkyrie/#/builders/50/builds/2253
https://autobuilder.yoctoproject.org/valkyrie/#/builders/63/builds/2058

Can you have a look at this please?

Best regards,
Mathieu

Signature · 3 lines
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
author
#3 lore raw
Quoted 19 lines · Mathieu Dubois-Briand
Quoted 2 lines · Khem Raj via lists.openembedded.org

---

Hi Khem,

It looks like this is breaking the build:

ERROR: spirv-llvm-translator-native-21.1.0-r0 do_configure: Execution of '/srv/pokybuild/yocto-worker/qemux86-64-x32/build/build/tmp/work/x86_64-linux/spirv-llvm-translator-native/21.1.0/temp/run.do_configure.97313' failed with exit code 1
...

| CMake Error at CMakeLists.txt:82 (find_package):
|   Could not find a configuration file for package "LLVM" that is compatible
|   with requested version "21.1.0".
|
|   The following configuration files were considered but not accepted:
|
|     /srv/pokybuild/yocto-worker/qemux86-64-x32/build/build/tmp/work/x86_64-linux/spirv-llvm-translator-native/21.1.0/recipe-sysroot-native/usr/lib/cmake/llvm/LLVMConfig.cmake, version: 20.1.8
Quoted 5 lines

https://autobuilder.yoctoproject.org/valkyrie/#/builders/11/builds/2207
https://autobuilder.yoctoproject.org/valkyrie/#/builders/50/builds/2253
https://autobuilder.yoctoproject.org/valkyrie/#/builders/63/builds/2058

Can you have a look at this please?

Let's wait for it. I will send it when LLVM 21.1 releases, it just makes sense to
send them in lockstep.

Quoted 9 lines

Best regards,
Mathieu

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