deval/libclc with llvm20 (was: : graphics/mesa-dri won't build due to libclc not accepting llvm20)
Xavier Humbert <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.ports |
|---|---|
| Message-ID | <[email protected]> |
Le 03/11/2025 20:26, Xavier Humbert a écrit : > Is there a plan to upgrade devel/libclc to build with llvm20 ? I'm > actually not skilled enough to try by myself (and i did give a try) Actually a release is here https://github.com/llvm/llvm-project/releases/download/llvmorg-20.1.8/libclc-20.1.8.src.tar.xz I'm trying this patch (attached, with the llvm20 distinfo file) Build succeeds, but install fails : ==================================================================================================== [root@numenor libclc]# make FLAVOR=llvm20 install ===> Installing for libclc-llvm20-20.1.8 ===> Checking if libclc-llvm20 is already installed ===> Registering installation for libclc-llvm20-20.1.8 pkg-static: Unable to access file /usr/ports/devel/libclc/work-llvm20/stage/usr/local/llvm20/include/clc/clcfunc.h:No such file or directory pkg-static: Unable to access file /usr/ports/devel/libclc/work-llvm20/stage/usr/local/llvm20/include/clc/clctypes.h:No such file or directory pkg-static: Unable to access file /usr/ports/devel/libclc/work-llvm20/stage/usr/local/llvm20/include/clc/geometric/floatn.inc:No such file or directory pkg-static: Unable to access file /usr/ports/devel/libclc/work-llvm20/stage/usr/local/llvm20/include/clc/integer/gentype.inc:No such file or directory pkg-static: Unable to access file /usr/ports/devel/libclc/work-llvm20/stage/usr/local/llvm20/include/clc/math/binary_decl.inc:No such file or directory pkg-static: Unable to access file /usr/ports/devel/libclc/work-llvm20/stage/usr/local/llvm20/include/clc/math/gentype.inc:No such file or directory pkg-static: Unable to access file /usr/ports/devel/libclc/work-llvm20/stage/usr/local/llvm20/include/clc/math/ternary_decl.inc:No such file or directory pkg-static: Unable to access file /usr/ports/devel/libclc/work-llvm20/stage/usr/local/llvm20/include/clc/math/unary_decl.inc:No such file or directory pkg-static: Unable to access file /usr/ports/devel/libclc/work-llvm20/stage/usr/local/llvm20/include/clc/relational/binary_decl.inc:No such file or directory pkg-static: Unable to access file /usr/ports/devel/libclc/work-llvm20/stage/usr/local/llvm20/include/clc/relational/floatn.inc:No such file or directory pkg-static: Unable to access file /usr/ports/devel/libclc/work-llvm20/stage/usr/local/llvm20/include/clc/relational/select.inc:No such file or directory pkg-static: Unable to access file /usr/ports/devel/libclc/work-llvm20/stage/usr/local/llvm20/include/clc/relational/unary_decl.inc:No such file or directory *** Error code 1 ==================================================================================================== Any help appreciated. I submit a PR tomorrow. Xavier -- Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Engineer https://www.amdh.fr
distinfo.llvm20
(text/plain, 165 B)
TIMESTAMP = 1762199865 SHA256 (libclc-20.1.8.src.tar.xz) = ecd83a52859742f71f4c332538f8bee54a6743374a233b5a85017de22d75c227 SIZE (libclc-20.1.8.src.tar.xz) = 136336
git.diff
(text/x-patch, 883 B)
diff --git a/devel/libclc/Makefile b/devel/libclc/Makefile
index b3bdd2cb8c0e..ab2df15e7c47 100644
--- a/devel/libclc/Makefile
+++ b/devel/libclc/Makefile
@@ -1,5 +1,6 @@
PORTNAME= libclc
DISTVERSION= ${DISTVERSION_${FLAVOR}}
+DISTVERSION_llvm20= 20.1.8
DISTVERSION_llvm19= 19.1.3
DISTVERSION_llvm18= 18.1.8
DISTVERSION_llvm17= 17.0.6
@@ -22,7 +23,7 @@ LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
BUILD_DEPENDS= spirv-llvm-translator-${FLAVOR}>0:devel/spirv-llvm-translator@${FLAVOR} \
libedit>=0:devel/libedit
-FLAVORS= ${15 16 17 18 19:L:S/^/llvm/}
+FLAVORS= ${15 16 17 18 19 20:L:S/^/llvm/}
USES= cmake compiler:c++11-lib llvm:${FLAVOR:S/llvm//},build python:build tar:xz
USE_LDCONFIG= ${PREFIX}/${FLAVOR}/lib
@@ -46,4 +47,3 @@ PLIST_SUB+= ${i:S/^/llvm/:tu}="@comment "
PLIST_SUB+= LLVM_VERSION=${FLAVOR}
.include <bsd.port.post.mk>
-