Package Details: libclc-minimal-git 23.0.0_r579902.d6f6cdaddadb-1

Git Clone URL: https://aur.archlinux.org/libclc-minimal-git.git (read-only, click to copy)
Package Base: libclc-minimal-git
Description: companion package to llvm-minimal-git, Library requirements of the OpenCL C programming language
Upstream URL: https://libclc.llvm.org/
Licenses: MIT
Conflicts: libclc
Provides: libclc
Submitter: Lone_Wolf
Maintainer: Lone_Wolf
Last Packager: Lone_Wolf
Votes: 0
Popularity: 0.000000
First Submitted: 2022-11-16 21:34 (UTC)
Last Updated: 2026-05-10 11:34 (UTC)

Required by (32)

Sources (3)

Latest Comments

1 2 3 Next › Last »

Lone_Wolf commented on 2026-05-10 11:36 (UTC)

The error message was unclear, it was caused by the change from clspv target to spirv64-unknown-vulkan .

new version uploaded.

TIMW commented on 2026-05-10 06:30 (UTC)

Updated .patch --- llvm-project/libclc/CMakeLists.txt 2026-05-10 08:14:39.912150917 +0200 +++ llvm-project/libclc/CMakeLists.txt.new 2026-05-10 08:24:56.920188369 +0200 @@ -135,6 +135,10 @@ add_custom_target( libclc-opencl-builtins COMMENT "Build libclc OpenCL builtins" ) add_dependencies( libclc libclc-opencl-builtins )

+configure_file( libclc.pc.in libclc.pc @ONLY ) +install( FILES ${CMAKE_CURRENT_BINARY_DIR}/libclc.pc + DESTINATION "${CMAKE_INSTALL_DATADIR}/pkgconfig" ) + # Determine the clang target triple. Vulkan and SPIR-V backend targets use the # triple directly; other SPIR-V targets fall back to the legacy SPIR target. set(clang_triple ${LIBCLC_TARGET}) --- /dev/null 2026-03-25 22:25:31.553301380 +0100 +++ llvm-project/libclc/libclc.pc.in 2026-03-25 22:54:04.980754698 +0100 @@ -0,0 +1,6 @@ +libexecdir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_DATADIR@/clc + +Name: libclc +Description: Library requirements of the OpenCL C programming language +Version: @PROJECT_VERSION@ +Libs: -L${libexecdir} \ No newline at end of file

TIMW commented on 2026-05-10 06:10 (UTC) (edited on 2026-05-10 06:16 (UTC) by TIMW)

my bad i wrongly understand maybe this commit https://github.com/llvm/llvm-project/commit/e7164d42243b8cac55c6c1f91a507608c414c361 EDIT: targets=( amdgcn-amd-amdhsa nvptx64-nvidia-cuda spirv-mesa-mesa3d spirv64-mesa-mesa3d )

Lone_Wolf commented on 2026-05-09 20:43 (UTC) (edited on 2026-05-09 21:28 (UTC) by Lone_Wolf)

With the new targets I get

CMake Error at CMakeLists.txt:101 (list):
  list index: 2 out of range (-1, 0)


CMake Error at cmake/modules/AddLibclc.cmake:115 (list):
  list index: 2 out of range (-1, 0)
Call Stack (most recent call first):
  cmake/modules/AddLibclc.cmake:181 (link_libclc_builtin_library)
  CMakeLists.txt:249 (add_libclc_library)

the statement on line 101 is list(GET TRIPLE 2 OS) .

TIMW commented on 2026-05-08 20:17 (UTC) (edited on 2026-05-10 06:08 (UTC) by TIMW)

EDIT: targets=( amdgcn-amd-amdhsa nvptx64-nvidia-cuda spirv-mesa-mesa3d spirv64-mesa-mesa3d )

TIMW commented on 2026-04-25 21:10 (UTC) (edited on 2026-04-25 21:13 (UTC) by TIMW)

Yeah i know but i forget update it here ;D For mesa no issue with config what i use with mine variant what i post in mesa-minimal thread:D

Lone_Wolf commented on 2026-04-25 13:20 (UTC) (edited on 2026-04-25 13:20 (UTC) by Lone_Wolf)

upstream changed to LLVM_DEFAULT_TARGET_TRIPLE in commit #6c7d16c, otherwise your code works and I updated the PKGBUILD + patch.

Now we have to see what changes mesa needs to use it.

TIMW commented on 2026-04-19 06:35 (UTC) (edited on 2026-04-19 09:33 (UTC) by TIMW)

Over night i find it too with success only by one by one :D maybe they choose to force user one by one ...maybe is for some reason whitch we dont see :D

TIMW commented on 2026-04-19 06:32 (UTC)

targets=( amdgcn-amd-amdhsa-llvm clspv-- clspv64-- nvptx64-- nvptx64--nvidiacl nvptx64-nvidia-cuda spirv-mesa3d- spirv64-mesa3d- )

build() { for t in "${targets[@]}"; do cmake \ -B "_build-$t" \ -S "$srcdir"/llvm-project/libclc \ -G Ninja \ -D CMAKE_BUILD_TYPE=Release \ -D CMAKE_INSTALL_PREFIX=/usr \ -D LLVM_RUNTIMES_TARGET="$t" \ -Wno-dev ninja $NINJAFLAGS -C "_build-$t" done }

package() { provides=('libclc') conflicts=('libclc') for t in "${targets[@]}"; do DESTDIR="${pkgdir}" ninja $NINJAFLAGS -C "_build-$t" install done }