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"