diff --git a/easybuild/easyblocks/c/clang.py b/easybuild/easyblocks/c/clang.py index 021ff555299..e858de75693 100644 --- a/easybuild/easyblocks/c/clang.py +++ b/easybuild/easyblocks/c/clang.py @@ -120,6 +120,14 @@ def __init__(self, *args, **kwargs): """Initialize custom class variables for Clang.""" super().__init__(*args, **kwargs) + + if LooseVersion(self.version) >= LooseVersion('18.1.6'): + raise EasyBuildError( + "The Clang EasyBlock has been deprecated and does not support LLVM versions >= 18.1.6. " + "Please use the 'LLVM' EasyBlock instead, which supports building Clang as well " + "as other LLVM projects." + ) + self.llvm_src_dir = None self.llvm_obj_dir_stage1 = None self.llvm_obj_dir_stage2 = None