Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Aug 2024 23:58:10 +0000
From:      bugzilla-noreply@freebsd.org
To:        x11@FreeBSD.org
Subject:   [Bug 280957] lang/clover: Remove llvm:max=16 restriction
Message-ID:  <bug-280957-7141-ggM2uNbi7m@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-280957-7141@https.bugs.freebsd.org/bugzilla/>
References:  <bug-280957-7141@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280957

--- Comment #3 from Jan Beich <jbeich@FreeBSD.org> ---
Comment on attachment 252966
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D252966
Remove LLVM version restriction and fix LIB_DEPENDS syntax

> -		libLLVMSPIRVLib.so.${LLVM_VERSION}:devel/spirv-llvm-translator@${LLVM_=
PORT:T} \
> +		libLLVMSPIRVLib.so:devel/spirv-llvm-translator@${LLVM_PORT:T} \

When multiple ports provide the same library not specifying SOVERSION would
introduce build conflict if an undesired version is installed. However, this
port doesn't actually use spirv-llvm-translator because Intel GPU support is
disabled (unlike in mesa-devel, runtime-gated via IRIS_ENABLE_CLOVER=3D1).

> does not install libLLVMSPIRVLib.so.${LLVM_VERSION} in the first place.

>From devel/spirv-llvm-translator/Makefile

  SOVERSION=3D    ${${FLAVOR:S/llvm//}<18:?${DISTVERSION:R:R}:${DISTVERSION=
:R}}

$ pkg info -xl spirv-llvm-translator | fgrep .so.
        /usr/local/llvm11/lib/libLLVMSPIRVLib.so.11
        /usr/local/llvm12/lib/libLLVMSPIRVLib.so.12
        /usr/local/llvm13/lib/libLLVMSPIRVLib.so.13
        /usr/local/llvm14/lib/libLLVMSPIRVLib.so.14
        /usr/local/llvm15/lib/libLLVMSPIRVLib.so.15
        /usr/local/llvm16/lib/libLLVMSPIRVLib.so.16
        /usr/local/llvm18/lib/libLLVMSPIRVLib.so.18.1

See also https://github.com/llvm/llvm-project/commit/91a384621e5b
(spirv-llvm-translator uses add_llvm_tool() from AddLLVM.cmake)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-280957-7141-ggM2uNbi7m>