From: Khem Raj <raj.khem@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Khem Raj <raj.khem@gmail.com>
Subject: [PATCH 5/5] libclc: Do not use spir libclc targets
Date: Tue, 24 Mar 2026 16:08:35 -0700 [thread overview]
Message-ID: <20260324230835.2363568-5-khem.raj@oss.qualcomm.com> (raw)
In-Reply-To: <20260324230835.2363568-1-khem.raj@oss.qualcomm.com>
From: Khem Raj <raj.khem@gmail.com>
These targets do not exist in llvm22 onwards we should use
spirv targets spirv-mesa3d- and/or spirv64-mesa3d-
Fixes
WARNING: failed to create target machine for 'spir64-unknown-unknown': unable to get target for 'spir64-unknown-unknown', see --version and --triple.
Disable all targets except spirv, they do not build
ends up error like
| cd /mnt/b/yoe/master/sources/openembedded-core/build/tmp/work/x86_64-nativesdk-oesdk-linux/nativesdk-libclc/22.0.0/build && -o /mnt/b/yoe/master/sources/openembedded-core/build/tmp/work/x86_64-nativesdk-oesdk-linux/nativesdk-libclc/22.0.0/build/tahiti-amdgcn-mesa-mesa3d.bc /mnt/b/yoe/master/sources/openembedded-core/build/tmp/work/x86_64-nativesdk-oesdk-linux/nativesdk-libclc/22.0.0/build/obj.libclc.dir/tahiti-amdgcn-mesa-mesa3d/builtins.opt.tahiti-amdgcn-mesa-mesa3d.bc
| /bin/sh: line 1: -o: command not found
| ninja: build stopped: subcommand failed.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
meta/recipes-devtools/clang/libclc_git.bb | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-devtools/clang/libclc_git.bb b/meta/recipes-devtools/clang/libclc_git.bb
index db846d59a8..89262cf314 100644
--- a/meta/recipes-devtools/clang/libclc_git.bb
+++ b/meta/recipes-devtools/clang/libclc_git.bb
@@ -19,7 +19,10 @@ OECMAKE_SOURCEPATH = "${S}/libclc"
B_NATIVE = "${B}-native"
# Semicolon-separated list of targets to build
-LIBCLC_TARGETS ?= "all"
+LIBCLC_TARGETS ?= "spirv-mesa3d-;spirv64-mesa3d-"
+# opt tool does not support all targets
+LIBCLC_TARGETS:class-nativesdk = "spirv-mesa3d-;spirv64-mesa3d-"
+LIBCLC_TARGETS:class-target = "spirv-mesa3d-;spirv64-mesa3d-"
EXTRA_OECMAKE += "-DLIBCLC_TARGETS_TO_BUILD='${LIBCLC_TARGETS}'"
EXTRA_OECMAKE:append:class-target = " -DPREPARE_BUILTINS=${B_NATIVE}/utils/prepare_builtins"
next prev parent reply other threads:[~2026-03-24 23:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-24 23:08 [PATCH 1/5] clang/llvm: Upgrade to 22.x major release Khem Raj
2026-03-24 23:08 ` [PATCH 2/5] clang: Do not package clang-offload-packager Khem Raj
2026-03-24 23:08 ` [PATCH 3/5] spirv-llvm-translation: Upgrade to 22.0 Khem Raj
2026-03-24 23:08 ` [PATCH 4/5] libclc: Adjust path to prepare_builtins utility Khem Raj
2026-03-24 23:08 ` Khem Raj [this message]
2026-03-25 9:30 ` [OE-core] [PATCH 1/5] clang/llvm: Upgrade to 22.x major release Richard Purdie
2026-03-25 9:47 ` Varatharajan, Deepesh
2026-03-26 2:11 ` [OE-core] " Khem Raj
2026-03-26 2:14 ` Khem Raj
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=20260324230835.2363568-5-khem.raj@oss.qualcomm.com \
--to=raj.khem@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/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