From: Khem Raj <[email protected]> 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 <[email protected]> --- 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"
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#233833): https://lists.openembedded.org/g/openembedded-core/message/233833 Mute This Topic: https://lists.openembedded.org/mt/118493199/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
