From 265a70d7d07477c29a2b4ac5878f39bd46ba1095 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 18 Oct 2021 16:15:10 +0200 Subject: [PATCH] Disable the build of libclc on old Ubuntu (Groovy & focal) as llvm-spir is too old on these version. See bug #52200 --- debian/changelog | 5 ++++- debian/rules | 7 ++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 8445a941..3889fb14 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,9 @@ llvm-toolchain-13 (1:13.0.1-8) UNRELEASED; urgency=medium - * New changelog + [ Sylvestre Ledru ] + * Disable the build of libclc on old Ubuntu (Groovy & focal) + as llvm-spir is too old on these version. + See bug #52200 -- Jordan Justen Wed, 26 Oct 2022 10:13:59 -0700 diff --git a/debian/rules b/debian/rules index e5d8cc21..cce08fec 100755 --- a/debian/rules +++ b/debian/rules @@ -217,7 +217,12 @@ endif ifeq ($(shell command -v llvm-spirv),) LLVM_SPIRV_INSTALLED = no else -LLVM_SPIRV_INSTALLED = yes + ifeq ($(shell dpkg --compare-versions $(shell dpkg-query -W -f '$${Version}' llvm-spirv) ge 10.0.0 ; echo $$?),0) +# Too old llvm-spirv version are failing. See #52200 + LLVM_SPIRV_INSTALLED = yes + else + LLVM_SPIRV_INSTALLED = no + endif endif LIBCLC_TARGETS_TO_BUILD="amdgcn--;amdgcn--amdhsa;amdgcn-mesa-mesa3d;r600--;nvptx--;nvptx64--;nvptx--nvidiacl;nvptx64--nvidiacl"