Package Details: pocl 0.14-2

Git Clone URL: (read-only)
Package Base: pocl
Description: Portable OpenCL is an open-source implementation of OpenCL which can be easily adapted for new targets
Upstream URL:
Licenses: GPL
Submitter: leidola
Maintainer: spider-mario
Last Packager: spider-mario
Votes: 9
Popularity: 0.046479
First Submitted: 2015-10-27 17:27
Last Updated: 2017-04-12 20:40

Latest Comments

spider-mario commented on 2017-09-21 18:43

Thank you for reporting this. Unfortunately, it seems that the current version of pocl is not compatible with LLVM 5 (even after adjusting that version check) and that the fix is not trivial. I don’t think there is much more to do than to wait for an upstream release, unless you are yourself familiar enough with the LLVM API to provide a patch (I am not).

dariost commented on 2017-09-20 15:47

Build fails with:
-- The C compiler identification is GNU 7.2.0
-- The CXX compiler identification is GNU 7.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Checking for module 'hwloc'
-- Found hwloc, version 1.11.7
-- Found Hwloc: hwloc
-- Found hwloc 1.11.7 in :hwloc
-- Hwloc_VERSION 1.11.7
-- Hwloc_LDFLAGS -lhwloc
-- Hwloc_CFLAGS
-- Using llvm-config: /usr/bin/llvm-config
-- LLVM binaries suffix :
-- llvm-config's LLVM_PREFIX is: /usr
-- llvm-config's LLVM_VERSION_FULL is: 5.0.0
-- llvm-config's LLVM_CFLAGS is: -I/usr/include -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -fPIC -Werror=date-time -Wall -W -Wno-unused-parameter -Wwrite-strings -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-comment -ffunction-sections -fdata-sections -O3 -DNDEBUG -DLLVM_BUILD_GLOBAL_ISEL -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-- llvm-config's LLVM_CXXFLAGS is: -I/usr/include -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment -ffunction-sections -fdata-sections -O3 -DNDEBUG -fno-exceptions -DLLVM_BUILD_GLOBAL_ISEL -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-- llvm-config's LLVM_LDFLAGS is: -L/usr/lib
-- llvm-config's LLVM_BINDIR is: /usr/bin
-- llvm-config's LLVM_LIBDIR is: /usr/lib
-- llvm-config's LLVM_INCLUDEDIR is: /usr/include
-- llvm-config's LLVM_LIBS is: -lLLVM-5.0
-- llvm-config's LLVM_SRC_ROOT is: /build/llvm/src/llvm-5.0.0.src
-- llvm-config's LLVM_OBJ_ROOT is: /usr
-- llvm-config's LLVM_ALL_TARGETS is: AArch64 AMDGPU ARM BPF Hexagon Lanai Mips MSP430 NVPTX PowerPC Sparc SystemZ X86 XCore
-- llvm-config's LLVM_HOST_TARGET is: x86_64-unknown-linux-gnu
-- llvm-config's LLVM_BUILD_MODE is: Release
-- llvm-config's LLVM_ASSERTS_BUILD is: OFF
-- llvm-config's LLVM_SYSLIBS is:
CMake Error at cmake/LLVM.cmake:180 (message):
LLVM version 3.7+ required, found: 5.0
Call Stack (most recent call first):
CMakeLists.txt:225 (include)

-- Configuring incomplete, errors occurred!
See also "/tmp/yaourt-tmp-dariost/aur-pocl/src/build/CMakeFiles/CMakeOutput.log".

znmeb commented on 2017-05-09 05:05

It turns out that the absence of the '.icd' file is deliberate; see So if you want the installable client driver, after installing 'pocl', do

$ sudo mkdir -p /etc/OpenCL/vendors/
$ sudo cp /usr/etc/OpenCL/vendors/pocl.icd /etc/OpenCL/vendors/

znmeb commented on 2017-05-05 08:55

the current build is not placing a '.icd' file in '/etc/OpenCL/vendors'. The end result is you can install the package but OpenCL tools like 'clinfo' won't see that it's there.

spider-mario commented on 2017-02-06 23:32

I would very much like to update the dependency, but unfortunately, I cannot get the package to build with newer versions of LLVM. Let’s wait for an upstream update…

asamarin commented on 2017-01-26 16:39

+1 to the dep update request

spider-mario commented on 2016-12-23 12:22

Thanks for the comment (sorry for not seeing it sooner), I should be able to do it in approximately two weeks (I am currently on vacation without access to Arch).

Svenstaro commented on 2016-12-09 14:55

Please replace the dep on libcl with opencl-icd-loader.

spider-mario commented on 2016-06-29 21:09

The examples included seem to work for me, and the only mention of curses seems to be this (from the output of CMake):
-- system libs libpocl will be linked to (LLVM_SYSLIBS):
-- -lrt -ldl -lcurses -lpthread -lz -lm
(no reference to curses or tinfo in the code of pocl itself, except for an irrelevant match in android/

Are you sure that the problem is with pocl specifically? What is that code that you tried to run?

smradlev commented on 2016-06-28 22:03

When running a pocl compiled code, it segfaults because it cannot find To fix this, please add ncurses5-compat-libs as a dependency.

All comments